-
Notifications
You must be signed in to change notification settings - Fork 18
/
package.json
230 lines (230 loc) · 10.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
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
{
"name": "your-app",
"private": true,
"version": "1.0.0",
"license": "MIT",
"browserslist": [
"last 2 versions",
"IE 11"
],
"engines": {
"node": "10.x"
},
"scripts": {
"start": "nf start web=1,worker=1",
"heroku-postbuild": "yarn build && build-storybook -o dist/storybook",
"heroku-release": "node dist/scripts/migrate-and-seed.js",
"build:jsonschema": "node scripts/json-schema-types.js",
"build:graphql": "gql-gen -o",
"build:client": "webpack --config ./webpack/client.config.js",
"build:server": "webpack --config ./webpack/server.config.js",
"build:pre": "concurrently 'yarn build:jsonschema' 'yarn build:graphql'",
"build:app": "concurrently 'yarn build:client' 'yarn build:server'",
"build": "yarn build:pre && yarn build:app",
"build:production": "cross-env NODE_ENV=production yarn build",
"dev:jsonschema": "nodemon -C -w 'modules/**/*.schema.json' ./scripts/json-schema-types.js",
"dev:graphql": "nodemon -C -w 'modules/**/*.graphql' 'yarn build:graphql'",
"dev:server:webpack": "webpack --config webpack/server.config.js --watch",
"dev:server:nodemon": "nodemon --watch dist/server.js -- --inspect=9229 dist/server.js",
"dev:worker:nodemon": "nodemon --watch 'dist/scripts/{job-worker.js,*processor.js}' -- --inspect=9230 dist/scripts/job-worker.js",
"dev:client": "webpack-dev-server --config webpack/client.config.js",
"dev": "yarn build:pre && concurrently -p name -c \"yellow,magenta,green,blue,gray\" -n \"webpack-server,nodemon-server,webpack-client,graphql-types,json-schema,workers\" \"yarn dev:server:webpack\" \"yarn dev:server:nodemon\" \"yarn dev:client\" \"yarn dev:graphql\" \"yarn dev:jsonschema\" \"yarn dev:worker:nodemon\"",
"dev:storybook": "start-storybook -p 9001 -c .storybook --ci",
"lint": "tslint -c ./tslint.json -p ./tsconfig.json './modules/**/*.{ts,tsx}'",
"lint:fix": "tslint --fix -c ./tslint.json -p ./tsconfig.json './modules/**/*.{ts,tsx}'",
"fmt:prettier": "prettier --write 'modules/**/*.{ts,tsx,js,jsx}'",
"fmt": "yarn fmt:prettier; yarn lint:fix",
"pretest": "yarn lint",
"test": "yarn test:unit && yarn test:acceptance",
"test:truncate": "NODE_ENV=test node dist/scripts/truncate-database.js",
"test:unit": "cross-env NODE_ENV=test jest",
"test:unit:ci": "cross-env NODE_ENV=test jest --maxWorkers 8",
"test:unit:debug": "node --inspect-brk ./node_modules/.bin/jest --runInBand",
"test:acceptance": "if [ $BUILD ]; then yarn test:acceptance:build; fi; concurrently --kill-others -s first 'yarn test:acceptance:server' 'yarn test:acceptance:run'",
"test:acceptance:build-and-run": "yarn test:acceptance:build && yarn test:acceptance",
"test:acceptance:build": "cross-env NODE_ENV=test yarn build",
"test:acceptance:server": "NODE_ENV=test node dist/server.js > tests/acceptance/last-run.log",
"test:acceptance:run": "while ! nc -z localhost 3002; do sleep 0.1; done; cross-env NODE_ENV=test jest -w1 -c ./acceptance.jestrc.json",
"docker:up": "exec docker-compose up",
"db:create": "yarn db:create:dev; yarn db:create:test",
"db:create:dev": "docker-compose exec postgres createdb -h postgres development",
"db:create:test": "docker-compose exec postgres createdb -h postgres test",
"db:do-over": "yarn db:drop; yarn db:create; yarn db:migrate:latest",
"db:do-over-and-seed": "yarn db:triple-roundhouse-kick",
"db:triple-roundhouse-kick": "yarn db:do-over; yarn db:migrate-and-seed",
"db:drop": "yarn db:disconnect-all; yarn db:drop:dev; yarn db:drop:test",
"db:drop:dev": "docker-compose exec postgres dropdb -h postgres development",
"db:drop:test": "docker-compose exec postgres dropdb -h postgres test",
"db:disconnect-all": "yarn db:disconnect-all:dev; yarn db:disconnect-all:test",
"db:disconnect-all:dev": "docker-compose exec postgres psql -h postgres development -c \"SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = 'development' AND pid <> pg_backend_pid();\"",
"db:disconnect-all:test": "docker-compose exec postgres psql -h postgres test -c \"SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = 'test' AND pid <> pg_backend_pid();\"",
"db:run": "docker-compose exec postgres psql -h postgres",
"db:migrate:make": "knex --knexfile knexfile.ts migrate:make",
"db:migrate:latest": "knex --knexfile knexfile.ts migrate:latest",
"db:migrate:latest:test": "cross-env NODE_ENV=test knex --knexfile knexfile.ts migrate:latest",
"db:migrate:rollback": "knex --knexfile knexfile.ts migrate:rollback",
"db:migrate:flipflop": "knex --knexfile knexfile.ts migrate:rollback; knex --knexfile knexfile.ts migrate:latest",
"db:seed:make": "knex --knexfile knexfile.ts seed:make",
"db:seed:run": "knex --knexfile knexfile.ts seed:run",
"validate": "npm ls",
"db:push-to-heroku": "heroku pg:reset $HEROKU_DB_NAME -a $HEROKU_APP && heroku pg:push $LOCAL_DB_URL $HEROKU_DB_NAME -a $HEROKU_APP",
"db:migrate-and-seed": "node dist/scripts/migrate-and-seed.js"
},
"resolutions": {},
"dependencies": {
"@atomic-object/lenses": "^0.1.6",
"@atomic-object/tscli": "^0.1.0",
"@material-ui/core": "^3.9.2",
"@material-ui/icons": "^3.0.2",
"@material-ui/styles": "3.0.0-alpha.10",
"@types/body-parser": "^1.16.4",
"@types/compression": "^0.0.36",
"@types/config": "^0.0.34",
"@types/cookie-session": "^2.0.36",
"@types/cors": "^2.8.1",
"@types/dotenv": "^6.1.0",
"@types/express": "^4.16.1",
"@types/graphql": "^14.0.7",
"@types/lodash-es": "^4.17.2",
"@types/lodash.groupby": "^4.6.5",
"@types/lodash.keyby": "^4.6.5",
"@types/morgan": "^1.7.32",
"@types/node": "^11.9.4",
"@types/passport": "^1.0.0",
"@types/passport-local": "^1.0.33",
"@types/passport-saml": "^1.0.0",
"@types/react": "^16.8",
"@types/react-dom": "^16.8",
"@types/react-router": "^4.4.4",
"@types/react-router-dom": "^4.3.0",
"@types/throng": "^4.0.0",
"@types/yup": "0.26.9",
"ajv": "^6.9.1",
"ajv-errors": "^1.0.1",
"apollo-cache-inmemory": "^1.4.2",
"apollo-client": "^2.4.12",
"apollo-link-batch-http": "^1.2.8",
"apollo-link-schema": "^1.1.6",
"apollo-link-state": "0.4.1",
"body-parser": "^1.18.1",
"bull": "^3.6.0",
"bull-arena": "^2.5.3",
"compression": "^1.7.3",
"config": "^3.0.1",
"cookie-session": "^2.0.0-beta.3",
"core-js": "^2.6.4",
"cors": "^2.8.4",
"cross-spawn": "^6.0.5",
"dataloader": "^1.4.0",
"date-fns": "^1.29.0",
"dotenv": "^6.0.0",
"express": "^4.16.3",
"express-basic-auth": "^1.1.6",
"express-sslify": "^1.2.0",
"express-static-gzip": "^1.1.0",
"factory.ts": "^0.4.1",
"formik": "^2.0.0-gamma.1",
"formik-material-ui": "^0.0.16",
"graphql": "^14.1.1",
"graphql-server-express": "^1.4.0",
"graphql-tag": "^2.10.1",
"graphql-tools": "^4.0.4",
"ioredis": "^4.6.2",
"json-stable-stringify": "^1.0.1",
"knex": "0.16.3",
"knex-logger": "^0.1.0",
"lodash-es": "^4.17.11",
"lodash.groupby": "^4.6.0",
"lodash.keyby": "^4.6.0",
"morgan": "^1.9.1",
"passport": "^0.4.0",
"passport-local": "^1.0.0",
"passport-saml": "^1.0.0",
"pg": "^7.8.0",
"react": "^16.8",
"react-apollo": "^2.4.1",
"react-async-component": "^2.0.0",
"react-dom": "^16.8",
"react-router": "^4.3.0",
"react-router-dom": "^4.3.0",
"rollbar": "^2.5.2",
"source-map-support": "^0.5.10",
"throng": "^4.0.0",
"ts-node": "^8.0.2",
"typescript": "^3.3.3",
"whatwg-fetch": "^3.0.0",
"yup": "^0.26.10"
},
"devDependencies": {
"@babel/core": "^7.3.3",
"@storybook/addon-actions": "^4.1.12",
"@storybook/addon-viewport": "^4.1.12",
"@storybook/react": "^4.1.12",
"@types/bull": "^3.5.7",
"@types/enzyme": "^3.1.18",
"@types/glob": "^7.1.1",
"@types/ioredis": "^4.0.6",
"@types/jest": "^24.0.6",
"@types/json-stable-stringify": "^1.0.32",
"@types/storybook__addon-actions": "^3.4.2",
"@types/storybook__addon-notes": "^4.0.2",
"@types/storybook__addon-viewport": "^4.1.0",
"@types/storybook__react": "^4.0.1",
"@types/supertest": "^2.0.7",
"@types/uuid": "^3.4.4",
"apollo": "^2.5.0",
"autoprefixer": "^9.4.7",
"awesome-typescript-loader": "^5.2",
"babel-loader": "^8.0.5",
"compression-webpack-plugin": "^2.0",
"concurrently": "^4.0",
"cross-env": "^5.0.3",
"css-loader": "^2.1.0",
"cssnano": "^4.1.9",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.9.1",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"file-loader": "^3.0.1",
"foreman": "^3.0.0",
"fork-ts-checker-webpack-plugin": "^0.5.2",
"glob": "^7.1.3",
"graphql-code-generator": "^0.16.1",
"graphql-codegen-add": "^0.16.1",
"graphql-codegen-typescript-react-apollo-template": "^0.16.1",
"graphql-codegen-typescript-resolvers-template": "^0.16.1",
"graphql-codegen-typescript-server": "^0.16.1",
"graphql-codegen-typescript-template": "^0.16.1",
"happypack": "^5.0.1",
"html-webpack-plugin": "^3.2.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^24.1.0",
"jest-environment-node-debug": "^2.0.0",
"jest-junit": "^6.2.1",
"jest-transform-graphql": "^2.1.0",
"json-schema-to-typescript": "^6.1.1",
"jsverify": "^0.8.3",
"nightmare": "^3",
"nodemon": "^1.18.10",
"postcss-loader": "^3.0",
"postcss-modules-local-by-default": "^2.0.5",
"prettier": "^1.16.4",
"progress-bar-webpack-plugin": "^1.12.1",
"react-apollo-hooks": "^0.4.0",
"react-test-renderer": "^16.8",
"source-map-loader": "^0.2.4",
"style-loader": "^0.23",
"supertest": "^3.4.2",
"ts-jest": "^24.0.0",
"ts-loader": "^5.3.3",
"tslint": "^5.11.0",
"tslint-eslint-rules": "^5.4.0",
"typescript-tslint-plugin": "^0.3.1",
"url-loader": "^1.1",
"webpack": "^4.29.5",
"webpack-bundle-analyzer": "^3.0.4",
"webpack-cli": "^3.2.3",
"webpack-dev-server": "^3.1.14",
"webpack-node-externals": "^1.7.2",
"webpack-split-by-path": "^2.0.0"
}
}