2018-08-29 20:24:59 +08:00
|
|
|
{
|
|
|
|
"private": true,
|
2018-11-14 19:38:13 +08:00
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "lint-staged"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lint-staged": {
|
|
|
|
"*.js": [
|
|
|
|
"eslint --fix",
|
|
|
|
"git add"
|
|
|
|
]
|
|
|
|
},
|
2018-08-29 20:24:59 +08:00
|
|
|
"scripts": {
|
2018-09-12 15:15:29 +08:00
|
|
|
"start": "roadhog dev",
|
2018-09-20 20:15:23 +08:00
|
|
|
"build": "node build.js",
|
|
|
|
"dist": "roadhog build",
|
2018-11-14 19:38:13 +08:00
|
|
|
"eslint": "eslint --ext .js src/",
|
|
|
|
"eslint-fix": "eslint --ext .js --fix src/"
|
2018-08-29 20:24:59 +08:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2018-08-30 21:10:41 +08:00
|
|
|
"@alifd/next": "^1.7.6",
|
2018-08-29 20:24:59 +08:00
|
|
|
"dva": "^2.3.1",
|
|
|
|
"jquery": "^3.3.1",
|
|
|
|
"moment": "^2.22.2",
|
|
|
|
"prop-types": "^15.6.2",
|
|
|
|
"react": "^16.2.0",
|
|
|
|
"react-dom": "^16.2.0"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"babel-core": "^6.26.3",
|
2018-11-14 19:38:13 +08:00
|
|
|
"babel-eslint": "^10.0.1",
|
2018-08-29 20:24:59 +08:00
|
|
|
"babel-plugin-dva-hmr": "^0.3.2",
|
2018-11-14 19:38:13 +08:00
|
|
|
"babel-plugin-transform-decorators-legacy": "^1.3.5",
|
2018-08-29 20:24:59 +08:00
|
|
|
"babel-preset-es2015": "^6.24.1",
|
|
|
|
"babel-preset-react": "^6.24.1",
|
|
|
|
"babel-preset-stage-2": "^6.24.1",
|
2018-11-14 19:38:13 +08:00
|
|
|
"eslint": "^5.9.0",
|
|
|
|
"eslint-config-ali": "^4.0.0",
|
|
|
|
"eslint-config-prettier": "^3.3.0",
|
|
|
|
"eslint-plugin-import": "^2.14.0",
|
|
|
|
"eslint-plugin-prettier": "^3.0.0",
|
|
|
|
"eslint-plugin-react": "^7.11.1",
|
2018-08-29 20:24:59 +08:00
|
|
|
"husky": "^0.12.0",
|
2018-08-30 22:39:36 +08:00
|
|
|
"roadhog": "^2.0.0"
|
2018-08-29 20:24:59 +08:00
|
|
|
}
|
2018-11-02 10:38:43 +08:00
|
|
|
}
|