add config.js

This commit is contained in:
liaosy 2020-03-02 22:19:39 +08:00
parent a16ac28245
commit 0c004b7be4
3 changed files with 31 additions and 0 deletions

6
config/config.js Normal file
View File

@ -0,0 +1,6 @@
export default {
routes: [{
path: '/',
component: './HelloWorld',
}],
}

22
package.json Normal file
View File

@ -0,0 +1,22 @@
{
"name": "logging-center",
"version": "1.0.0",
"description": "INFINI Logging Center",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "umi dev",
"build": "umi build"
},
"repository": {
"type": "git",
"url": "ssh://git@git.infini.ltd:64221/infini/logging-center.git"
},
"keywords": [],
"author": "INFINI",
"license": "ISC",
"devDependencies": {
"umi": "^3.0.1",
"@umijs/preset-react": "^1.2.2"
}
}

3
src/pages/HelloWorld.js Normal file
View File

@ -0,0 +1,3 @@
export default () => {
return <div>hello world</div>;
}