Add basic pre-commit hook to make sure tests pass

This commit is contained in:
Timothy Farrell 2018-07-18 05:19:15 -05:00
parent 62bfa12550
commit 797b0960e6
5 changed files with 14 additions and 4 deletions

View File

@ -2,6 +2,12 @@
"devDependencies": { "devDependencies": {
"chrome-launcher": "^0.10.2", "chrome-launcher": "^0.10.2",
"chrome-remote-interface": "^0.25.5", "chrome-remote-interface": "^0.25.5",
"husky": "1.0.0-rc.13",
"lerna": "2.0.0-beta.32" "lerna": "2.0.0-beta.32"
},
"husky": {
"hooks": {
"pre-commit": "lerna run pre-commit"
}
} }
} }

View File

@ -5,7 +5,8 @@
"main": "src/index.js", "main": "src/index.js",
"files": ["src"], "files": ["src"],
"scripts": { "scripts": {
"test": "node ../../bin/runTests.js ./" "test": "node ../../bin/runTests.js ./",
"pre-commit": "npm run test"
}, },
"keywords": ["reactive"], "keywords": ["reactive"],
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)", "author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",

View File

@ -5,7 +5,8 @@
"main": "src/index.js", "main": "src/index.js",
"files": ["src"], "files": ["src"],
"scripts": { "scripts": {
"test": "node ../../bin/runTests.js ./" "test": "node ../../bin/runTests.js ./",
"pre-commit": "npm run test"
}, },
"keywords": ["worker", "webworker"], "keywords": ["worker", "webworker"],
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)", "author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",

View File

@ -5,7 +5,8 @@
"main": "src/index.js", "main": "src/index.js",
"files": ["dist", "lib", "src"], "files": ["dist", "lib", "src"],
"scripts": { "scripts": {
"test": "node ../../bin/runTests.js ./" "test": "node ../../bin/runTests.js ./",
"pre-commit": "npm run test"
}, },
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)", "author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",
"license": "Apache-2.0", "license": "Apache-2.0",

View File

@ -5,7 +5,8 @@
"main": "src/index.js", "main": "src/index.js",
"files": ["src"], "files": ["src"],
"scripts": { "scripts": {
"test": "node ../../bin/runTests.js ./" "test": "node ../../bin/runTests.js ./",
"pre-commit": "npm run test"
}, },
"keywords": ["router"], "keywords": ["router"],
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)", "author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",