forked from CDEBase/fullstack-pro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
executable file
·357 lines (357 loc) · 15.6 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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
{
"name": "sample-stack",
"version": "0.12.4",
"private": true,
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
"bugs": {
"url": "https://github.com/cdmbase/fullstack-pro/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/cdmbase/fullstack-pro.git"
},
"license": "MIT",
"author": {
"name": "CDMBase LLC",
"email": "[email protected]"
},
"workspaces": {
"packages": [
"portable-devices/*",
"packages-modules/**",
"packages/**",
"servers/*"
]
},
"scripts": {
"prebootstrap": "lerna run prepare",
"bootstrap": "yarn && yarn lerna",
"postbootstrap": "yarn build",
"build": "yarn build:packages",
"build:clean": "lerna exec yarn build:clean",
"build:packages": "lerna run build --ignore *server --ignore *device --ignore *browser-extension",
"build:packages:watch": "lerna run build:lib:watch --ignore *server --ignore *device --ignore *browser-extension --stream",
"check-updates": "lerna exec ./node_modules/.bin/npm-check-updates -- -u",
"clean": "lerna clean --yes && yarn build:clean && rimraf node_modules",
"clean:force": "rimraf package-lock.json yarn.lock && yarn clean",
"clean:install": "yarn clean:force && yarn git:pull && yarn bootstrap",
"cli": "node tools/cli",
"commit": "git cz",
"compile": "lerna exec -- yarn compile",
"coverage": "jest --coverage",
"postcoverage": "remap-istanbul --input coverage/coverage.raw.json --type lcovonly --output coverage/lcov.info",
"db:migrate": "knex migrate:latest --cwd . --knexfile ./servers/backend-server/knexfile.js",
"db:migrate:rollback": "knex migrate:rollback --cwd . --knexfile ./servers/backend-server/knexfile.js",
"db:seed": "yarn db:migrate && knex seed:run --cwd . --knexfile ./servers/backend-server/knexfile.js",
"setBranchEnv": "cross-env REPOSITORY_BRANCH=${1:-$REPOSITORY_BRANCH} PUBLISH_BRANCH=${2:-$PUBLISH_BRANCH}",
"predevpublish": "if ! git show-ref --verify --quiet refs/remotes/origin/$PUBLISH_BRANCH; then git checkout -b $PUBLISH_BRANCH && git push -u origin $PUBLISH_BRANCH; fi && git fetch origin $PUBLISH_BRANCH && git checkout $PUBLISH_BRANCH && git pull origin $PUBLISH_BRANCH && git merge -s recursive -X theirs $REPOSITORY_BRANCH -m \"merge from $REPOSITORY_BRANCH\" && yarn gitcommit && node tools/update-dependency-version.js && yarn gitcommit",
"devpublish": "lerna publish prerelease --ignore-scripts --exact",
"postdevpublish": "git checkout $REPOSITORY_BRANCH",
"devpublish:auto": "yarn devpublish -- --yes",
"devpublish:force": "yarn devpublish -- --force-publish=* --yes",
"devpublish:forceManual": "yarn devpublish -- --force-publish=*",
"devpublish:push": "yarn predevpublish && git push origin $PUBLISH_BRANCH && yarn postdevpublish",
"format": "yarn lint --fix",
"format:md": "yarn lint:md --fix",
"generateGraphql": "graphql-codegen",
"generateGraphql:watch": "yarn generateGraphql -- --watch",
"git:pull": "git pull origin $(git rev-parse --abbrev-ref HEAD)",
"git:push": "git push origin $(git rev-parse --abbrev-ref HEAD)",
"gitcommit": "git add -A && git diff --staged --quiet || git commit -am 'auto publish [skip ci] \r\n'",
"husky-skip": "cross-env HUSKY_SKIP_HOOKS=1",
"jest": "./node_modules/.bin/jest",
"lerna": "lerna bootstrap",
"prelernapublish": "git checkout publish && git pull origin publish && git merge -s recursive -X theirs master -m 'merge from master' && yarn gitcommit && node tools/update-dependency-version.js && yarn gitcommit",
"lernapublish": "lerna publish --ignore-scripts --cd-version=patch",
"postlernapublish": "git checkout master",
"lint": "eslint --ext js --ext ts --ext md",
"lint:ci": "yarn lint . --format junit",
"lint:fix": "yarn lint -- --fix",
"lint:md": "markdownlint",
"lintx": "yarn lint ./packages/**/src/**/*.ts ./packages-modules/**/src/**/*.ts",
"prodBuild": "cross-env NODE_ENV=production babel-node --presets es2015 tools/webpack.run",
"publish": "yarn lernapublish",
"publish:auto": "yarn lernapublish --yes",
"publish:force": "yarn publish:forceManual --yes",
"publish:forceManual": "yarn lernapublish --force-publish=*",
"publish:push": "yarn prelernapublish && git push origin publish && yarn postlernapublish",
"startWeb": "lerna run --scope='{*frontend-server,*backend-server}' --parallel watch --stream",
"start": "cross-env NODE_ENV=development ENV_FILE=../../config/development/dev.env yarn startWeb",
"start:envSSR": "cross-env SSR=true NODE_ENV=development ENV_FILE=../../config/development/dev.env yarn startWeb",
"start:test": "cross-env NODE_ENV=test ENV_FILE=../../config/test/test.env yarn startWeb",
"test": "cross-env ENV_FILE=config/test/test.env jest",
"posttest": "yarn lint",
"test:watch": "npm test -- --watch",
"pretravis": "yarn compile",
"travis": "istanbul cover -x \"*.test.js\" _mocha -- --timeout 5000 --full-trace ./test/tests.js",
"posttravis": "yarn lint",
"watch": "lerna exec --no-sort --ignore *server --ignore *device --ignore *browser-extension --stream --parallel -- webpack --watch",
"watch-packages": "lerna exec --no-sort --scope @sample-stack/platform* --scope @sample-stack/react-shared-components --scope @sample-stack/core --stream --parallel 'webpack --watch'",
"zen:build": "cross-env NODE_ENV=production zen build",
"zen:exp": "zen exp",
"zen:watch": "zen watch -x",
"zen:watch:debug": "yarn zen:watch -- -v"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.md": [
"yarn format:md",
"git add"
],
"*.{js,jsx,ts,tsx}": [
"eslint --fix",
"git add"
]
},
"resolutions": {
"@apollo/client": "~3.7.1",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"chokidar": "^3.5.3",
"html-to-text": "^8.0.0",
"react": "18.0.0",
"react-dom": "18.0.0",
"react-native-gesture-handler": "~2.5.0"
},
"dependencies": {
"dataloader": "^2.1.0",
"graphql": "^15.0.0",
"graphql-tag": "^2.12.6"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.20.2",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.20.2",
"@babel/plugin-proposal-export-default-from": "^7.18.10",
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.2",
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
"@babel/plugin-proposal-pipeline-operator": "^7.18.9",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-export-default-from": "^7.18.6",
"@babel/plugin-syntax-export-namespace-from": "^7.8.3",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/plugin-syntax-numeric-separator": "^7.10.4",
"@babel/plugin-transform-destructuring": "^7.20.2",
"@babel/plugin-transform-for-of": "^7.18.8",
"@babel/plugin-transform-modules-commonjs": "^7.19.6",
"@babel/plugin-transform-regenerator": "^7.18.6",
"@babel/plugin-transform-runtime": "^7.19.6",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "^7.20.2",
"@babel/preset-flow": "^7.18.6",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@babel/register": "^7.18.9",
"@babel/runtime": "^7.20.1",
"@common-stack/env-list-loader": "0.5.8",
"@graphql-codegen/add": "^2.0.2",
"@graphql-codegen/cli": "^1.21.8",
"@graphql-codegen/fragment-matcher": "^2.0.1",
"@graphql-codegen/import-types-preset": "^1.18.6",
"@graphql-codegen/near-operation-file-preset": "^1.18.6",
"@graphql-codegen/typescript": "^1.23.0",
"@graphql-codegen/typescript-graphql-files-modules": "^1.18.1",
"@graphql-codegen/typescript-operations": "^1.18.4",
"@graphql-codegen/typescript-react-apollo": "^2.3.1",
"@graphql-codegen/typescript-resolvers": "^1.20.0",
"@loadable/babel-plugin": "^5.13.2",
"@loadable/webpack-plugin": "^5.15.2",
"@open-wc/building-rollup": "^2.0.2",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.8",
"@redux-devtools/core": "^3.13.1",
"@redux-devtools/dock-monitor": "^3.0.1",
"@redux-devtools/log-monitor": "^4.0.1",
"@rollup/plugin-graphql": "2.0.2",
"@rollup/plugin-image": "^3.0.1",
"@rollup/plugin-json": "^5.0.2",
"@rollup/plugin-typescript": "^9.0.2",
"@shelf/jest-mongodb": "^4.1.3",
"@svgr/webpack": "^6.5.1",
"@testing-library/react": "^13.4.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/async": "^3.2.15",
"@types/body-parser": "1.19.2",
"@types/bunyan": "^1.8.8",
"@types/classnames": "^2.3.1",
"@types/cors": "2.8.12",
"@types/enzyme": "^3.10.12",
"@types/express": "^4.17.14",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/ioredis": "^5.0.0",
"@types/isomorphic-fetch": "0.0.36",
"@types/jest": "^29.2.2",
"@types/lodash-es": "^4.17.6",
"@types/minimist": "^1.2.2",
"@types/node": "^18.11.9",
"@types/prop-types": "^15.7.5",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"@types/react-helmet": "^6.1.5",
"@types/react-loadable": "^5.5.6",
"@types/react-redux": "^7.1.24",
"@types/react-router": "^5.1.19",
"@types/react-router-config": "^5.0.6",
"@types/react-router-dom": "^5.3.3",
"@types/react-test-renderer": "^18.0.0",
"@types/redux-logger": "^3.0.9",
"@types/semver": "^7.3.13",
"@types/sinon": "^10.0.13",
"@types/webpack": "^5.28.0",
"@types/webpack-env": "^1.18.0",
"@types/zen-observable": "^0.8.3",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/eslint-plugin-tslint": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"@webpack-cli/serve": "^1.7.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.7.0",
"autoprefixer": "^10.4.13",
"awesome-typescript-loader": "^5.2.1",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^29.3.0",
"babel-loader": "^9.1.0",
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-import": "^1.13.5",
"caporal": "^1.4.0",
"chokidar": "^3.5.3",
"clean-webpack-plugin": "^4.0.0",
"commitizen": "^4.2.5",
"compression-webpack-plugin": "^10.0.0",
"concurrently": "^7.5.0",
"connect": "^3.7.0",
"copy-webpack-plugin": "^11.0.0",
"core-js": "^3.26.0",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"csstype": "^3.1.1",
"dotenv-safe": "^8.2.0",
"dotenv-webpack": "^8.0.1",
"enzyme": "^3.11.0",
"esbuild": "^0.15.13",
"eslint": "^8.27.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-graphql": "^4.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.4",
"eslint-plugin-jsdoc": "^39.6.2",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-jsonc": "^2.5.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^8.0.0",
"express": "^4.18.2",
"file-loader": "^6.2.0",
"fork-ts-checker-webpack-plugin": "^7.2.13",
"freeport-async": "^2.0.0",
"fs-extra": "^10.1.0",
"html-loader": "^4.2.0",
"html-webpack-plugin": "^5.5.0",
"http-proxy-middleware": "^2.0.6",
"husky": "^8.0.2",
"ignore-loader": "^0.1.2",
"ip": "^1.1.8",
"isomorphic-style-loader": "^5.3.2",
"istanbul": "1.0.0-alpha.2",
"jest": "^29.3.0",
"jest-css-modules-transform": "^4.4.2",
"jest-dom": "^4.0.0",
"jest-junit": "^14.0.1",
"jest-matcher-utils": "^29.2.2",
"jest-raw-loader": "^1.0.1",
"jest-transform-graphql": "^2.1.0",
"jsdom": "^20.0.2",
"lerna": "^6.1.0",
"less": "^4.1.3",
"less-loader": "^11.0.0",
"lint-staged": "^13.0.3",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"lodash-webpack-plugin": "^0.11.6",
"markdownlint-cli": "^0.32.2",
"merge": "^2.1.1",
"mime": "^3.0.0",
"mini-css-extract-plugin": "^2.6.1",
"minilog": "^3.1.0",
"mkdirp": "^1.0.4",
"mocha": "^10.1.0",
"mocha-steps": "^1.3.0",
"module": "^1.2.5",
"morgan": "^1.10.0",
"nock": "^13.2.9",
"node-dev": "^7.4.3",
"node-hmr-plugin": "^1.0.1",
"nodemon": "^2.0.20",
"nodemon-webpack-plugin": "^4.8.1",
"openurl": "^1.1.1",
"pm2": "^5.2.2",
"postcss-loader": "^7.0.1",
"prettier": "^2.7.1",
"process": "^0.11.10",
"qrcode-terminal": "^0.12.0",
"raw-loader": "^4.0.2",
"react-addons-test-utils": "^16.0.0-alpha.3",
"react-refresh": "^0.14.0",
"react-test-renderer": "^18.2.0",
"redux-devtools-extension": "^2.13.9",
"redux-mock-store": "^1.5.4",
"remap-istanbul": "^0.13.0",
"resolve-url-loader": "^5.0.0",
"rimraf": "^3.0.2",
"rollup": "^3.2.5",
"rollup-plugin-esbuild": "^5.0.0",
"rollup-plugin-string": "^3.0.0",
"sass-loader": "^13.1.0",
"shelljs": "^0.8.5",
"simple-git": "^3.14.1",
"sinon": "^14.0.2",
"source-list-map": "^2.0.1",
"source-map-loader": "^4.0.1",
"source-map-support": "^0.5.21",
"standard-version": "^9.5.0",
"stream-browserify": "^3.0.0",
"style-loader": "^3.3.1",
"svg-url-loader": "^8.0.0",
"tcomb": "^3.2.29",
"ts-jest": "^29.0.3",
"ts-loader": "^9.4.1",
"ts-node": "^10.9.1",
"tslib": "^2.4.1",
"type-fest": "^3.2.0",
"typedoc": "^0.23.20",
"typescript": "~4.8.4",
"uglify-es": "^3.3.9",
"uglifyjs-webpack-plugin": "^2.2.0",
"url-loader": "^4.1.1",
"wait-on": "^6.0.1",
"webpack": "^5.74.0",
"webpack-bundle-analyzer": "^4.7.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.11.1",
"webpack-manifest-plugin": "^5.0.0",
"webpack-merge": "^5.8.0",
"webpack-node-externals": "^3.0.0",
"webpack-sources": "^3.2.3",
"ws": "^8.11.0"
},
"engines": {
"node": ">=14.17.3 < 17.0.0",
"yarn": ">=1.22"
},
"cacheDirectories": [
".cache"
]
}