-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
75 lines (75 loc) · 3.4 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
{
"version": "2.1.3",
"name": "@getable/input-field",
"description": "A simple input field written with react that includes styling for errors/validation.",
"author": {
"name": "Christopher Stumph",
"email": "cjstumph@gmail.com",
"url": "christopherstumph.me"
},
"repository": "Getable/input-field",
"license": "Artistic 2.0",
"directories": {
"test": "test"
},
"keywords": [
"input react UI"
],
"scripts": {
"test": "browserify -t babelify test/test.js | tap-closer | smokestack -b chrome | tap-spec",
"tdd": "smokestack-watch test/*.jsx -t babelify | tap-spec",
"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 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 '.*\\..jsx$' | grep -v 'node_modules' | xargs eslint --ext .js --ext .jsx",
"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 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",
"build-es5": "NODE_ENV=production && babel index.jsx > index.es5",
"release": "f () { source ./scripts.sh && npm run requireGitClean && npm run gitPull && npm run dmn && npm run doctoc && npm run build-es5 && 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",
"update": "PATH=$PATH:/usr/local/bin:/usr/local/sbin && npm install"
}
},
"main": "index.es5",
"browser": "index.es5",
"style": "index.css",
"devDependencies": {
"babel": "^5.4.4",
"babelify": "^6.1.1",
"browserify": "^10.2.1",
"dmn": "^1.0.10",
"doctoc": "^0.13.0",
"eslint": "^0.21.2",
"eslint-plugin-react": "^2.3.0",
"ghooks": "^0.3.2",
"in-publish": "^1.1.1",
"nsp": "^1.0.1",
"react": "^0.13.3",
"sinon": "^1.14.1",
"smokestack": "^3.3.0",
"smokestack-watch": "^0.4.1",
"tap-closer": "^1.0.0",
"tap-spec": "^3.0.0",
"tape": "^4.0.0"
},
"peerDependencies": {
"react": "^0.13.3"
},
"dependencies": {
"@getable/variables": "^1.0.1",
"lodash": "^3.9.1"
}
}