forked from ghooks-org/ghooks
/
package.json
90 lines (90 loc) · 2.5 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"name": "bytedance-i18n-ghooks",
"description": "Simple git hooks",
"version": "1.0.6",
"main": "./dist/runner.js",
"keywords": [
"git",
"hooks",
"hook"
],
"author": "wuwei <dlutwuwei@qq.com>",
"homepage": "https://github.com/dlutwuwei/ghooks",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/dlutwuwei/ghooks.git"
},
"bugs": {
"url": "https://github.com/dlutwuwei/ghooks/issues"
},
"scripts": {
"prebuild": "rm -rf dist && mkdir dist",
"build": "babel lib --out-dir dist && babel lib/hook.template.raw --out-file dist/hook.template.raw",
"lint": "eslint bin/* lib/* test/",
"test:unit": "mocha --compilers js:babel-register",
"test": "npm run lint && npm run coverage",
"coverage": "nyc --require babel-register --reporter=lcov --reporter=text mocha",
"check-coverage": "nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100",
"report-coverage": "cat ./coverage/lcov.info | node_modules/.bin/codecov",
"validate": "npm t && npm run check-coverage",
"commit": "git-cz",
"install": "node ./bin/module-install",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"dependencies": {
"execa": "^0.4.0",
"findup": "0.1.5",
"lodash.clone": "4.3.2",
"manage-path": "2.0.0",
"opt-cli": "1.5.1",
"path-exists": "^2.0.0",
"spawn-command": "0.0.2"
},
"devDependencies": {
"babel-cli": "^6.6.5",
"babel-preset-es2015": "^6.14.0",
"babel-register": "^6.4.3",
"chai": "^3.5.0",
"chai-string": "1.2.0",
"codecov": "^1.0.1",
"commitizen": "2.8.1",
"cz-conventional-changelog": "1.2.0",
"eslint": "^2.13.1",
"eslint-config-kentcdodds": "^6.2.1",
"eslint-plugin-import": "^1.8.0",
"eslint-plugin-mocha": "^4.3.0",
"ghooks": "*",
"mocha": "^3.0.0",
"mock-fs": "^3.0.0",
"nyc": "^7.1.0",
"proxyquire": "^1.3.1",
"semantic-release": "^4.3.5",
"sinon": "^1.12.2",
"sinon-chai": "^2.8.0",
"travis-after-all": "^1.4.4",
"validate-commit-msg": "2.6.1"
},
"babel": {
"presets": [
"es2015"
]
},
"nyc": {
"extension": [
".raw"
],
"include": [
"lib/**"
]
},
"config": {
"ghooks": {
"pre-commit": "opt --in pre-commit --exec \"npm run validate\"",
"commit-msg": "opt --in commit-msg --exec validate-commit-msg"
},
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
}
}