-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
109 lines (109 loc) · 5.18 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"version": "3.0.3",
"name": "react-element-query",
"description": "Element queries for react components.",
"author": {
"name": "Joey Baker",
"email": "[email protected]",
"url": "http://byjoeybaker.com"
},
"repository": "joeybaker/react-element-query",
"license": "Artistic-2.0",
"directories": {
"test": "test"
},
"keywords": [
"css",
"element query",
"react"
],
"scripts": {
"start": "f () { node dev.js ${@-example} | garnish; }; f",
"test": "npm run -s test-server && npm run -s test-browser",
"test-browser": "browserify -t babelify test/browser.jsx --external react/addons --external react/lib/ReactContext --external react/lib/ExecutionEnvironment | tap-closer | smokestack -b firefox | tap-spec",
"test-server": "babel-tape-runner test/server.jsx | tap-spec",
"tdd-server": "nodemon -x npm -i node_modules/ -e js,jsx -- run -s test-server",
"tdd-browser": "mkdir -p .cache; mkdir -p .cache/test; touch .cache/test/browser.js 2> /dev/null; watchify test/browser.jsx --transform babelify --external react/addons --external react/lib/ReactContext --external react/lib/ExecutionEnvironment --debug --outfile .cache/test/browser.js & devtool --watch .cache/test/browser.js --console --browser-field --no-node-timers --show .cache/test/browser.js | faucet",
"watch": "babel src --watch --out-dir dist",
"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 '.*\\..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 check",
"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",
"build": "cross-env NODE_ENV=production && babel src --out-dir dist",
"release": "f () { source ./scripts.sh && npm run requireGitClean && npm run gitPull && npm run dmn && npm run doctoc && npm run build && 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": "dist/index.js",
"browser": "dist/index.js",
"devDependencies": {
"babel-cli": "^6.14.0",
"babel-eslint": "^7.2.3",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-transform-class-properties": "^6.11.5",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-object-rest-spread": "^6.8.0",
"babel-plugin-transform-undefined-to-void": "^6.8.0",
"babel-preset-latest": "^6.14.0",
"babel-preset-react": "^6.11.1",
"babel-tape-runner": "^2.0.1",
"babelify": "^7.3.0",
"browserify": "^14.0.0",
"cross-env": "^5.1.1",
"devtool": "^2.2.0",
"dmn": "^1.0.5",
"doctoc": "^1.2.0",
"enzyme": "^2.8.2",
"eslint": "^4.1.1",
"eslint-plugin-react": "^7.1.0",
"faucet": "0.0.1",
"ghooks": "^1.3.2",
"hihat": "^2.6.4",
"in-publish": "^2.0.0",
"nodemon": "^1.10.2",
"nsp": "^2.6.1",
"prop-types": "^15.5.8",
"react": "^15.5.4",
"react-a11y": "^0.3.3",
"react-addons-test-utils": "^15.3.1",
"react-dom": "^15.5.4",
"react-test-renderer": "^15.5.4",
"sinon": "^3.0.0",
"smokestack": "^3.2.0",
"smokestack-watch": "^0.4.1",
"tap-closer": "^1.0.0",
"tap-dev-tool": "^1.3.0",
"tap-spec": "^4.1.1",
"tape": "^4.6.0",
"watchify": "^3.7.0"
},
"peerDependencies": {
"react": ">=0.15.0",
"react-dom": ">=0.15.0"
},
"dependencies": {
"autobind-decorator": "^2.0.0",
"lodash.first": "^3.0.0",
"lodash.identity": "^3.0.0",
"lodash.isnumber": "^3.0.3",
"lodash.sortby": "^4.7.0",
"proptypes": "^1.0.0",
"raf": "^3.3.0"
}
}