mirror of
https://github.com/infeng/react-viewer.git
synced 2025-12-08 17:36:40 +00:00
add pre-commit
This commit is contained in:
parent
3fc737dd4c
commit
457aaa8178
@ -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"
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user