forked from qiu8310/mora-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
80 lines (80 loc) · 2.42 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
{
"name": "mora-scripts",
"version": "1.6.41",
"description": "Some collection scripts by myself",
"scripts": {
"postinstall": "node hooks/scripts/install",
"postuninstall": "node hooks/scripts/install --reverse",
"release": "cli/run npm version patch -m 'chore: bump patch version'",
"preversion": "npm run lint && npm run test:check-coverage",
"version": "cli/puts '%cyou can run build and add build file to git in here' cyan",
"postversion": "git push --follow-tags && snpm publish && cli/run cnpm sync pkg.name",
"lint": "eslint libs/ hooks/ cli/puts cli/remove-all cli/run cli/commit-msg-help cli/createscript cli/inject cli/sync-taobao",
"test:watch": "mocha -R dot --watch **/__*.js",
"test": "nyc -r html _mocha -R dot **/__*.js",
"test:check-coverage": "nyc _mocha -R dot **/__*.js && nyc check-coverage",
"report": "nyc report --reporter html --report-dir externals/coverage && rm -rf coverage",
"test:istanbul": "istanbul cover --report html --dir externals/coverage _mocha **/__*.js",
"test:report": "npm run test && npm run report",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"docs": "jsdoc -c ./jsdoc.json"
},
"bin": {
"inject": "cli/inject",
"run": "cli/run",
"run-node": "hooks/scripts/run-node",
"puts": "cli/puts",
"sync-taobao": "cli/sync-taobao",
"remove-all": "cli/remove-all",
"commit-msg-help": "cli/commit-msg-help"
},
"config": {
"hooks": {
"commit-msg": true,
"post-merge": true,
"pre-push": "npm run lint && npm run test:check-coverage"
}
},
"keywords": [
"mora",
"scripts",
"collection"
],
"author": "Mora <qiuzhongleiabc@126.com>",
"repository": {
"type": "git",
"url": "https://github.com/qiu8310/mora-scripts"
},
"license": "MIT",
"dependencies": {
"cross-spawn": "5.1.0",
"semver-regex": "1.0.0"
},
"devDependencies": {
"codecov": "^2.0.0",
"docdash": "web-build-hub/docdash",
"eslint": "^3.16.1",
"mocha": "^3.2.0",
"nyc": "^10.0.0",
"proxyquire": "1.8.0",
"rewire": "^2.5.2",
"sinon": "^2.0.0",
"standard": "^10.0.0"
},
"nyc": {
"check-coverage": false,
"lines": 100,
"functions": 100,
"branches": 100,
"include": [
"cli/*",
"hooks/**/*.js",
"libs/**/*.js"
],
"exclude": [
"externals/**",
"**/__*.js",
"test/**/*.*"
]
}
}