add pre-commit

This commit is contained in:
infeng 2016-10-15 15:23:37 +08:00
parent 3fc737dd4c
commit 457aaa8178

View File

@ -5,7 +5,8 @@
"main": "dist/ViewerWrap",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "dora --port 8001 --plugins \"webpack,webpack-hmr,browser-history?index=/demo/index.html\""
"start": "dora --port 8001 --plugins \"webpack,webpack-hmr,browser-history?index=/demo/index.html\"",
"lint": "tslint -c tslint.json src/**/*.ts src/**/*.tsx"
},
"repository": {
"type": "git",
@ -33,11 +34,15 @@
"dora-plugin-webpack-hmr": "^0.2.1",
"html-loader": "^0.4.4",
"html-webpack-plugin": "^2.22.0",
"pre-commit": "^1.1.3",
"react": "^15.3.2",
"react-dom": "^15.3.2",
"tslint": "^3.15.1",
"typescript": "^2.0.3",
"webpack": "^1.13.2"
},
"dependencies": {}
"dependencies": {},
"pre-commit": [
"lint"
]
}