mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
add opt-in githook to config
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -5,3 +5,5 @@
|
||||
lodash.compat.min.js
|
||||
coverage
|
||||
node_modules
|
||||
.opt-in
|
||||
.opt-out
|
||||
|
||||
10
package.json
10
package.json
@@ -15,11 +15,13 @@
|
||||
"dojo": "^1.11.0",
|
||||
"ecstatic": "^1.4.0",
|
||||
"fs-extra": "~0.26.7",
|
||||
"ghooks": "1.0.3",
|
||||
"glob": "^7.0.3",
|
||||
"istanbul": "0.4.2",
|
||||
"jquery": "^2.2.2",
|
||||
"jscs": "^2.11.0",
|
||||
"lodash": "4.5.0",
|
||||
"opt-cli": "1.1.1",
|
||||
"platform": "^1.3.1",
|
||||
"qunit-extras": "^1.5.0",
|
||||
"qunitjs": "~1.22.0",
|
||||
@@ -46,6 +48,12 @@
|
||||
"style:test": "jscs test/*.js test/**/*.js",
|
||||
"test": "npm run test:main && npm run test:fp",
|
||||
"test:fp": "node test/test-fp",
|
||||
"test:main": "node test/test"
|
||||
"test:main": "node test/test",
|
||||
"validate": "npm run style & npm run test"
|
||||
},
|
||||
"config": {
|
||||
"ghooks": {
|
||||
"pre-push": "opt --in pre-push --exec \"npm run validate\""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user