-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpackage.json
182 lines (182 loc) · 7.29 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
{
"name": "the-gazelle",
"version": "1.0.0",
"engines": {
"node": "~9.11.2",
"npm": "~6.1.0"
},
"description": "Minimal starter kit for React, Falcor, and Universal rendering with ES6",
"main": "server.js",
"scripts": {
"start": "node ./build/server.js",
"build": "webpack --config webpack/webpack.dev.config.js --progress",
"build:watch": "npm run build -- -w",
"build:production": "webpack --config webpack/webpack.production.config.js --bail --progress",
"build:staging": "webpack --config webpack/webpack.staging.config.js --bail --progress",
"build:emulate-ci": "(cp .env .temp-env && sed 's/^GAZELLE_ENV=.*/GAZELLE_ENV=CI/' .temp-env > .env && npm run build:production); mv .temp-env .env",
"test:unit": "jest --config='__tests__/config/jest.unit.config.js' --testLocationInResults",
"test:it": "jest --config='__tests__/config/jest.integration.config.js' --testLocationInResults",
"test:e2e": "npm run db:seed && jest --config='__tests__/config/jest.e2e.config.js' --testLocationInResults --runInBand",
"///": "When https://github.com/facebook/jest/issues/6470 is merged we'll be able to do this properly, but for now it's just so that flaky tests don't break CI too often",
"lint:js": "eslint --max-warnings 0 '{./*,src/**/*,__tests__/**/*,webpack/*,database-management/**/*,.circleci/**/*,deployment-resources/**/*}.{js,jsx}'",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:ts": "tsc -p . --checkJs false && tslint -p . '{src,__tests__}/**/*.{ts,tsx}'",
"lint:ts:fix": "npm run lint:ts -- --fix",
"lint:prettier": "prettier --list-different '{./*,src/**/*,__tests__/**/*,webpack/*,database-management/**/*, static/*,.circleci/**/*,docs/**/*,deployment-resources/**/*}.{js,jsx,ts,tsx,css,scss,json,json5,md}'",
"lint:prettier:fix": "npm run lint:prettier -- --write",
"lint:all": "npm run lint:js && npm run lint:ts && npm run lint:prettier",
"lint:all:fix": "npm run lint:js:fix && npm run lint:ts:fix && npm run lint:prettier:fix",
"db:migrate": "knex migrate:latest",
"db:rollback": "knex migrate:rollback",
"db:seed": "knex seed:run",
"//": [
"The precommit script below is a hack to allow us to do patch committing, and it then has the special",
"for when we are merging that it will just run lint-staged as otherwise the git stash messes with gits internal",
"system of keeping track of merges"
],
"precommit": "if ! [ -s .git/MERGE_HEAD ]; then TEMP_STASH_OUTPUT=$(git stash --keep-index --include-untracked) && MUTE=$(git clean -fd); if [ \"$TEMP_STASH_OUTPUT\" != 'No local changes to save' ]; then lint-staged; PRECOMMIT_PASSED=$(echo $?); MUTE=$(git stash pop); exit $PRECOMMIT_PASSED; fi; exit 0; fi; lint-staged",
"postmerge": "npm i && (node setup-env.js --check-outdated || (echo && echo 'NOTE: Your .env file has become out of date, running setup script so you can update it' && sleep 2 && echo && node setup-env.js)) && npm run db:migrate",
"prepush": "scripts/prepush.sh"
},
"lint-staged": {
"*.{js,jsx}": "eslint --max-warnings 0",
"*.{ts,tsx}": [
"tslint -p tsconfig.json"
],
"*": "npm run test:unit -- --bail --findRelatedTests",
"*.{js,jsx,ts,tsx,json,json5,css,scss,md}": "prettier"
},
"browserslist": [
"> 1%",
"last 2 versions",
"Firefox ESR"
],
"repository": {
"type": "git",
"url": "git+https://github.com/thegazelle-ad/gazelle-front-end.git"
},
"keywords": [
"react",
"es6",
"falcor",
"universal"
],
"author": "Lingliang Zhang ([email protected])",
"license": "MIT",
"bugs": {
"url": "https://github.com/thegazelle-ad/gazelle-front-end/issues"
},
"homepage": "https://github.com/thegazelle-ad/gazelle-front-end#readme",
"devDependencies": {
"@babel/core": "^7.0.0-beta.51",
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.51",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.51",
"@babel/preset-env": "^7.0.0-beta.51",
"@babel/preset-react": "^7.0.0-beta.51",
"@babel/preset-typescript": "^7.0.0-beta.51",
"@types/bluebird": "^3.5.20",
"@types/body-parser": "^1.17.0",
"@types/classnames": "^2.2.4",
"@types/express": "^4.16.0",
"@types/falcor": "^0.1.22",
"@types/falcor-express": "^0.1.18",
"@types/falcor-http-datasource": "^0.1.19",
"@types/falcor-router": "^0.4.17",
"@types/jest": "^23.1.1",
"@types/knex": "^0.14.14",
"@types/lodash": "^4.14.110",
"@types/material-ui": "^0.20.8",
"@types/moment-timezone": "^0.5.6",
"@types/multer": "^1.3.7",
"@types/nightmare": "^2.10.4",
"@types/node": "^10.3.5",
"@types/react": "^16.4.1",
"@types/react-dom": "^16.0.6",
"@types/request": "^2.47.1",
"@types/showdown": "^1.7.4",
"@types/sinon": "^5.0.1",
"@types/slate": "^0.33.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^8.2.3",
"babel-jest": "^23.0.1",
"babel-loader": "^8.0.0-beta.3",
"chalk": "^2.4.1",
"css-loader": "^0.28.7",
"dotenv": "^6.0.0",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint-import-resolver-webpack": "^0.8.3",
"eslint-loader": "^2.0.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"extract-text-webpack-plugin": "^3.0.2",
"husky": "^0.14.3",
"inquirer": "^6.0.0",
"jest": "^22.4.3",
"lint-staged": "^5.0.0",
"mockdate": "^2.0.2",
"nightmare": "^2.10.0",
"node-sass": "^4.9.2",
"postcss-cssnext": "^3.0.2",
"postcss-loader": "^2.0.9",
"prettier": "^1.13.5",
"sass-loader": "^6.0.6",
"sinon": "^6.1.3",
"tslint": "^5.10.0",
"tslint-config-airbnb": "^5.9.2",
"tslint-config-prettier": "^1.13.0",
"tslint-loader": "^3.6.0",
"typescript": "^2.9.2",
"uglifyjs-webpack-plugin": "^1.1.4",
"webpack": "^3.10.0",
"webpack-node-externals": "^1.6.0"
},
"dependencies": {
"@babel/polyfill": "^7.0.0-beta.51",
"@slack/client": "^4.3.1",
"aws-sdk": "^2.266.1",
"bluebird": "^3.5.0",
"body-parser": "^1.15.2",
"child_process": "^1.0.2",
"classnames": "^2.2.5",
"compression": "^1.6.2",
"express": "^4.13.4",
"falcor": "git+ssh://[email protected]:emilgoldsmith/falcor.git",
"falcor-express": "^0.1.4",
"falcor-http-datasource": "^0.1.3",
"falcor-router": "^0.8.1",
"googleapis": "^39.1.0",
"imagemin": "^5.3.1",
"imagemin-jpeg-recompress": "^5.1.0",
"immutable": "^3.8.2",
"knex": "git+ssh://[email protected]/emilgoldsmith/knex.git",
"lodash": "^4.17.10",
"material-ui": "^0.17.1",
"moment": "^2.14.1",
"moment-timezone": "^0.5.14",
"multer": "^1.3.0",
"mysql": "^2.16.0",
"prismjs": "^1.14.0",
"prop-types": "^15.6.1",
"react": "^15.4.2",
"react-addons-transition-group": "^15.3.0",
"react-addons-update": "^15.3.1",
"react-dom": "^15.4.2",
"react-event-listener": "^0.5.3",
"react-falcor": "^0.9.0",
"react-ga": "^2.1.2",
"react-helmet": "^3.1.0",
"react-router": "^2.4.1",
"react-tap-event-plugin": "^2.0.1",
"request": "^2.87.0",
"s3": "^4.4.0",
"showdown": "^1.9.1",
"slate": "^0.33.4",
"slate-plain-serializer": "^0.5.10",
"slate-react": "^0.12.4",
"source-map-support": "^0.5.0",
"stable": "^0.1.5"
}
}