forked from joeybaker/styleguide-js
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
55 lines (54 loc) · 2.25 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
{
"version": "0.0.0",
"name": "styleguide-js",
"description": "A detailed, enforceable, and common approach to JavaScript.",
"author": {
"name": "Joey Baker",
"email": "[email protected]",
"url": "https://byjoeybaker.com"
},
"repository": "joeybaker/styleguide-js",
"license": "Artistic 2.0",
"directories": {
"test": "test"
},
"keywords": [
"styleguide-js",
"styleguide",
"documentation"
],
"scripts": {
"start": "node index.js",
"note1": "we can't have nice things. prepublish also runs on npm install https://github.com/npm/npm/issues/6394 in-publish hacks around this",
"prepublish": "in-publish && source ./scripts.sh && npm prune && npm run gitPush || in-install",
"lint": "eslint .",
"requireGitClean": "source ./scripts.sh && git_require_clean_work_tree",
"nsp": "nsp audit-package",
"note2": "--no-verify skips the commit hook",
"dmn": "dmn gen -f . && if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != '' ]]; then git add .npmignore && git commit --no-verify -m'update npmignore'; fi",
"doctoc": "doctoc README.md --maxlevel 3 && if [ -f CONTRIBUTING.md ]; then doctoc CONTRIBUTING.md; fi && if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != '' ]]; then git add README.md CONTRIBUTING.md && git commit --no-verify -m'table of contents update'; fi",
"gitPull": "git pull --rebase origin master",
"gitPush": "git push --follow-tags --no-verify && git push --tags --no-verify",
"release": "source ./scripts.sh && npm run requireGitClean && npm run gitPull && npm run dmn && npm run doctoc && npm_release $@"
},
"config": {
"notes": "important to correct the path of npm so that the git hook doesn't error",
"ghooks": {
"pre-commit": "PATH=$PATH:/usr/local/bin:/usr/local/sbin && npm run lint",
"pre-push": "PATH=$PATH:/usr/local/bin:/usr/local/sbin && npm run dmn && npm run doctoc",
"update": "PATH=$PATH:/usr/local/bin:/usr/local/sbin && npm install"
}
},
"license": "Artistic-2.0",
"main": "index.js",
"browser": "index.js",
"devDependencies": {
"dmn": "^1.0.5",
"doctoc": "^0.7.1",
"eslint": "^0.16.2",
"eslint-plugin-react": "^2.0.0",
"ghooks": "^0.2.2",
"in-publish": "^1.1.1",
"nsp": "^0.4.2"
}
}