-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
63 lines (63 loc) · 2.6 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
{
"version": "1.0.7",
"name": "eslint-plugin-one-var-es6",
"description": "eslint rule for one-var that adds es6 compat",
"author": {
"name": "Joey Baker",
"email": "joey@byjoeybaker.com",
"url": "https://byjoeybaker.com"
},
"repository": "joeybaker/eslint-plugin-one-var-es6",
"license": "Artistic-2.0",
"directories": {
"test": "test"
},
"keywords": [
"eslint-plugin-one-var-es6",
"eslintplugin",
"eslint",
"es6"
],
"scripts": {
"start": "node index.js",
"test": "mocha test",
"tdd": "nodemon -x npm -i node_modules/ -- run test",
"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",
"note2": "eslint will always pull from the global eslintrc file, disable that so that we're only looking at the local",
"lint": "eslint --config .eslintrc --no-eslintrc .",
"requireGitClean": "source ./scripts.sh && git_require_clean_work_tree",
"nsp": "nsp audit-package",
"note3": "--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 && 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 && npm test",
"update": "PATH=$PATH:/usr/local/bin:/usr/local/sbin && npm install"
}
},
"main": "index.js",
"browser": "index.js",
"devDependencies": {
"covert": "^1.0.1",
"dmn": "^1.0.5",
"doctoc": "^0.7.1",
"eslint": "^0.19.0",
"eslint-tester": "^0.6.0",
"ghooks": "^0.3.2",
"in-publish": "^1.1.1",
"mocha": "^2.2.4",
"nodemon": "^1.2.1",
"nsp": "^0.4.2"
},
"peerDependencies": {
"eslint": ">=0.8.0"
}
}