-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
60 lines (60 loc) · 3.1 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
{
"version": "2.0.0",
"name": "eslint-plugin-no-console-log",
"description": "Eslint plugin to warn on usage of `console.log`, unlike the built-in rule, this allows other `console` methods.",
"author": {
"name": "Joey Baker",
"email": "joey@byjoeybaker.com",
"url": "http://byjoeybaker.com"
},
"repository": "joeybaker/eslint-plugin-no-console-log",
"license": "Artistic-2.0",
"directories": {
"test": "test"
},
"keywords": [
"console",
"eslint",
"eslint-plugin"
],
"scripts": {
"start": "node index.js",
"test": "mocha tests/**/*.js",
"tdd": "nodemon -x npm -i node_modules/ -e js,js -- run -s 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 && npm prune && npm run -s gitPush || in-install",
"note2": "eslint will always pull from the global eslintrc file, disable that so that we're only looking at the local",
"note3": "travis doesn't play nicely with !#/bin/bash in the script file, so we have to explicitly set bash",
"lint": "/bin/bash -c 'source ./scripts.sh && lint'",
"note4": "the diff-filter option below gets all files but deleted ones",
"lint-staged": "git diff --diff-filter=ACMRTUXB --cached --name-only | grep '.*\\.js$' | grep -v 'node_modules' | xargs eslint --ext .js --ext .js",
"requireGitClean": "/bin/bash -c 'source ./scripts.sh && git_require_clean_work_tree'",
"nsp": "nsp audit-package",
"note5": "--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 -- README.md 2> /dev/null | tail -n1) != '' || $(git diff --shortstat -- CONTRIBUTING.md 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": "f () { source ./scripts.sh && npm run requireGitClean && npm run gitPull && npm run dmn && npm run doctoc && npm run lint && npm test && npm_release public $@; }; f"
},
"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-staged",
"pre-push": "PATH=$PATH:/usr/local/bin:/usr/local/sbin && npm run dmn && npm run doctoc && npm run lint && npm test",
"post-merge": "PATH=$PATH:/usr/local/bin:/usr/local/sbin && npm install",
"post-rewrite": "PATH=$PATH:/usr/local/bin:/usr/local/sbin && npm install"
}
},
"main": "index.js",
"devDependencies": {
"dmn": "^1.0.5",
"doctoc": "^0.13.0",
"eslint": "^1.3.1",
"ghooks": "^0.3.2",
"in-publish": "^1.1.1",
"mocha": "^2.3.2",
"nodemon": "^1.2.1",
"nsp": "^1.0.1"
}
}