-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage.json
198 lines (198 loc) · 8.57 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
{
"name": "reactTemplate",
"version": "5.10.0",
"private": true,
"description": "",
"engines": {
"node": ">=8.11.x <9",
"npm": ">=5",
"yarn": "^1.6.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tribou/react-template.git"
},
"author": "tribou",
"license": "Apache-2.0",
"homepage": "https://github.com/tribou/react-template#readme",
"devDependencies": {
"@webpack-blocks/webpack2": "^0.4.0",
"assets-webpack-plugin": "^3.4.0",
"autoprefixer": "^7.1.4",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^8.0.1",
"babel-jest": "^23.0.1",
"babel-loader": "^7.1.2",
"babel-plugin-transform-class-properties": "^6.11.5",
"babel-plugin-transform-object-assign": "^6.8.0",
"babel-preset-env": "^1.5.2",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.11.1",
"babel-preset-react-native": "^4.0.0",
"babel-preset-stage-3": "^6.11.0",
"babel-register": "^6.26.0",
"browser-sync": "^2.18.13",
"chunk-manifest-webpack-plugin": "^1.1.2",
"compression-webpack-plugin": "^1.0.0",
"concurrently": "^3.5.0",
"copy-webpack-plugin": "^4.5.0",
"cross-env": "^5.0.5",
"css-loader": "^0.28.7",
"electron": "^2.0.2",
"electron-devtools-installer": "^2.2.3",
"electron-packager": "^12.0.1",
"enzyme": "^3.1.1",
"enzyme-adapter-react-16": "^1.0.4",
"enzyme-to-json": "^3.2.2",
"eslint": "^4.6.1",
"eslint-config-prettier": "^2.9.0",
"eslint-import-resolver-webpack": "^0.9.0",
"eslint-loader": "^2.0.0",
"eslint-plugin-tribou": "^2.0.0",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^1.1.4",
"flow-bin": "^0.73.0",
"glob": "^7.1.2",
"html-webpack-inline-source-plugin": "^0.0.10",
"html-webpack-plugin": "^3.0.4",
"husky": "^0.14.3",
"identity-obj-proxy": "^3.0.0",
"imageoptim-cli": "^1.14.8",
"jest": "^23.0.1",
"jest-serializer-path": "^0.1.13",
"nock": "^9.0.14",
"node-notifier": "^5.1.2",
"node-notifier-cli": "^1.0.1",
"nodemon": "^1.12.0",
"nsp": "^3.1.0",
"offline-plugin": "^5.0.3",
"postcss-calc": "^6.0.0",
"postcss-loader": "^2.0.6",
"precss": "^2.0.0",
"prettier": "^1.11.1",
"pretty-quick": "^1.4.1",
"raf": "^3.4.0",
"react-router-native": "^4.2.0",
"remote-redux-devtools": "^0.5.12",
"remotedev-server": "^0.2.4",
"rimraf": "^2.5.4",
"uglifyjs-webpack-plugin": "^1.2.3",
"url-loader": "^1.0.1",
"webpack": "3.9.1",
"webpack-blocks-split-vendor": "^0.2.0",
"webpack-chunk-hash": "^0.6.0",
"webpack-node-externals": "^1.3.3"
},
"dependencies": {
"@redux-offline/redux-offline": "^2.3.2",
"babel-polyfill": "^6.26.0",
"boom": "^7.1.1",
"classnames": "^2.2.5",
"cookies-js": "^1.2.3",
"core-js": "^2.5.1",
"debug": "^3.0.1",
"fetch-ponyfill": "^4.1.0",
"hapi": "^17.0.0",
"hapi-react-views": "^10.0.0",
"inert": "^5.0.1",
"joi": "^13.0.1",
"js-base64": "^2.3.2",
"localforage": "^1.7.1",
"lodash": "^4.17.4",
"make-promises-safe": "^1.1.0",
"material-ui": "^0.20.0",
"qs": "^6.5.1",
"react": "^16.1.0",
"react-dom": "^16.1.0",
"react-helmet": "^5.2.0",
"react-native": "0.55.4",
"react-native-splash-screen": "^3.0.7",
"react-redux": "^5.0.6",
"react-router": "^4.2.0",
"react-router-dom": "^4.2.2",
"react-router-native-stack": "^0.0.11",
"react-tap-event-plugin": "^3.0.2",
"redux": "^4.0.0",
"redux-devtools-extension": "^2.13.0",
"redux-form": "^7.0.4",
"redux-observable": "^0.18.0",
"redux-promise-middleware": "^5.0.0",
"redux-thunk": "^2.1.0",
"reselect": "^3.0.1",
"rollbar": "^2.2.7",
"rxjs": "^5.0.0",
"sanitize.css": "^5.0.0",
"secure-filters": "^1.1.0",
"source-map-support": "^0.5.0",
"tachyons-clears": "^3.0.4",
"tachyons-display": "^5.0.4",
"tachyons-flexbox": "^2.0.5",
"tachyons-position": "^6.0.6",
"tachyons-spacing": "^6.0.4",
"tachyons-text-align": "^3.1.0",
"tachyons-vertical-align": "^4.0.5",
"tachyons-widths": "^5.2.1",
"vision": "^5.1.0"
},
"jest": {
"verbose": true,
"testRegex": "/(config|src|server)/.*_test\\.js$",
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
"\\.(css)$": "identity-obj-proxy"
},
"moduleDirectories": [
"node_modules",
"<rootDir>"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"watchPathIgnorePatterns": [
"build"
],
"setupTestFrameworkScriptFile": "./testSetup.js"
},
"browserslist": [
"ie > 10",
"ie_mob > 10"
],
"scripts": {
"postinstall": "cp vendor/attachWebsocketServer.js node_modules/react-native/local-cli/server/util/",
"precommit": "pretty-quick --staged",
"prepush": "npm run --silent commitlint && npm test",
"prettier": "prettier '**/*.{js,md,json}' --write",
"heroku-postbuild": "npm run build",
"commitlint": "VALID_COMMIT=$(git log --pretty=format:\"%B\" master...HEAD | grep \\#[0-9]); [ ! -z \"$VALID_COMMIT\" ] && (echo 'commitlint: Valid commit found 👍 ' && exit 0) || (echo 'commitlint: Valid issue number required in at least one commit message 👎 ' && exit 1)",
"desktop": "npm run desktop-build && electron build/desktop/",
"desktop-build": "rimraf build/desktop && cross-env NODE_ENV=production webpack --config config/webpack/desktop.js",
"desktop-package": "npm run desktop-build && electron-packager build/desktop/ \"React Template\" --overwrite --asar --all --out build --prune false --icon desktop/icon/icon --appVersion ${npm_package_version}",
"desktop-dev": "cross-env NODE_ENV=development electron build/desktop/",
"notify-optimize": "notify --icon 'https://imageoptim.com/icon.png' -t 'ImageOptim' -m 'Image optimization complete'",
"optimize-images": "IMAGE_FILES=$(git diff --name-only $(git describe --abbrev=0 --tags)..HEAD static/images/); if [ $(echo \"$IMAGE_FILES\" | grep . | wc -l) -ne 0 ]; then echo \"$IMAGE_FILES\" | imageOptim && git add --all static/images && npm run --silent notify-optimize; fi",
"upgrade-deps": "npm run yarn-bin -- cache clean && rm -rf node_modules .npm-packages-offline-cache flow-typed && rm yarn.lock && npm run yarn && flow-typed install && cat yarn.lock | grep registry",
"start": "node build/server.js",
"start-prod": "time npm run --silent build && date && cross-env NODE_ENV=production npm start",
"build": "rimraf build && cross-env NODE_ENV=production webpack",
"devtools-server": "echo; echo; echo 'Hit Cmd+Ctrl+ArrowUp to open remote monitoring in Chrome'; echo; echo; remotedev --hostname=localhost --port=8001",
"dev": "npm run yarn && rimraf build && concurrently --kill-others -n 'APP,FLOW' -p '[{name}]' 'cross-env DEBUG=my-app* DEBUG_COLORS=true SHOW_ERRORS=true NODE_ENV=development nodemon -x node server/index.dev.js' 'npm run --silent watch-flow'",
"dev-mock": "npm run yarn && rimraf build && concurrently --kill-others -n 'APP,FLOW' -p '[{name}]' 'cross-env USE_MOCK_API=true DEBUG=my-app* DEBUG_COLORS=true SHOW_ERRORS=true NODE_ENV=development nodemon -x node server/index.dev.js' 'npm run --silent watch-flow'",
"dev-a": "npm run yarn && react-native run-android && npm run devtools-server",
"dev-i": "npm run yarn && react-native run-ios && npm run devtools-server",
"flow": "flow --quiet; test $? -eq 0 -o $? -eq 2",
"flow-ci": "flow check .",
"lint": "eslint --ignore-path .gitignore flow src server config",
"lint-cache": "eslint --cache --ignore-path .gitignore flow src server config",
"test": "concurrently -n 'LINT,FLOW,NSP,JEST,RN' -p '[{name}]' 'npm run lint' 'npm run --silent flow-ci' 'npm run --silent test-nsp; exit 0 # For React Native libs :(' && npm run --silent test-jest && npm run --silent test-rn",
"test-jest": "cross-env NODE_ENV=test jest --coverage",
"test-rn": "cross-env NODE_ENV=test jest --coverage --preset react-native --testRegex '/(config|src)/.*_test.(ios|android)\\.js$' --transformIgnorePatterns 'node_modules/?!(react-router-native)'",
"test-nsp": "nsp check; true",
"watch": "nodemon -i .eslintcache -x npm run --silent test",
"watch-flow": "nodemon -w . -i .eslintcache -i build -x npm run --silent flow",
"watch-lint": "nodemon -w . -i .eslintcache -x npm run --silent lint-cache",
"watch-test": "cross-env NODE_ENV=test jest --watch --notify --watchman",
"yarn": "npm run --silent yarn-bin -- install --prefer-offline",
"yarn-bin": "node bin/yarn-1.7.0.js"
}
}