add pre-commit
Showing
... | ... | @@ -12,8 +12,7 @@ |
"build:prod": "cross-env NODE_ENV=production env_config=prod node build/build.js", | ||
"build:sit": "cross-env NODE_ENV=production env_config=sit node build/build.js", | ||
"lint": "eslint --ext .js,.vue src", | ||
"test": "npm run lint", | ||
"postinstall": "cp .hooks/* .git/hooks/" | ||
"test": "npm run lint" | ||
}, | ||
"dependencies": { | ||
"axios": "0.17.1", | ||
... | ... | @@ -46,6 +45,9 @@ |
"vuex": "3.0.1", | ||
"xlsx": "^0.11.16" | ||
}, | ||
"pre-commit": { | ||
"run": ["lint"] | ||
}, | ||
"devDependencies": { | ||
"autoprefixer": "7.2.3", | ||
"babel-core": "6.26.0", | ||
... | ... | @@ -78,6 +80,7 @@ |
"postcss-import": "11.0.0", | ||
"postcss-loader": "2.0.9", | ||
"postcss-url": "7.3.0", | ||
"pre-commit": "^1.2.2", | ||
"pushstate-server": "3.0.1", | ||
"rimraf": "2.6.2", | ||
"sass-loader": "6.0.6", | ||
... | ... |
Please register or sign in to comment