-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpackage.json
200 lines (200 loc) · 8.59 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
{
"name": "react-ssr-advanced-seed",
"version": "1.0.7",
"description": "React SSR Advanced Seed (nestJS + React SSR + React Native + Docker)",
"author": "Vipin Tanna",
"license": "MIT",
"scripts": {
"clean:install": "rm -rf node_modules && lerna clean --yes && npm install",
"install": "npx lerna bootstrap --hoist --ignore __tests__ --ignore-scripts -- --production --no-optional && npm run install:mobile",
"install:mobile": "cd src/client/mobile && npm install",
"precommit": "lint-staged",
"build": "npm run build:backend && npm run build:frontend && npm run docker-compose",
"e2e": "npm run build && npm run test:e2e",
"deploy:frontend": "npm run build:frontend && npx release-it -n --no-npm.publish && npm run docker:frontend:prod:publish",
"deploy": "npm run build:frontend && npm run build:backend && npx release-it -n --no-npm.publish && npm run docker:frontend:prod:publish",
"build:frontend": "cross-env NODE_ENV=production WS_PROTOCOL=ws:// WS_URL=localhost:8090 API_PROTOCOL=http:// node scripts/build.js",
"build:frontend:ci": "cross-env NODE_ENV=production WS_PROTOCOL=wss:// WS_URL=react-ssr-nest-api.herokuapp.com API_PROTOCOL=https:// node scripts/build.js",
"build:backend:ci": "webpack --env.FRONT_END_HOST=https://confident-mestorf-ab8ce9.netlify.app --env.GITHUB_CALLBACK_URL=https://confident-mestorf-ab8ce9.netlify.app/api/auth/callback --env.NODE_ENV=production --env.watchFiles=false --config scripts/api-webpack.config.js",
"build:backend": "webpack --env.FRONT_END_HOST=http://localhost:8080 --env.GITHUB_CALLBACK_URL=http://localhost:8080/api/auth/callback --env.NODE_ENV=production --env.watchFiles=false --config scripts/api-webpack.config.js",
"start:frontend": "cross-env NODE_ENV=development node scripts/start.js",
"start:backend": "cd src/server && cross-env FRONT_END_HOST=http://localhost:8500 GITHUB_CALLBACK_URL=http://localhost:3000/auth/callback NODE_ENV=development --env.watchFiles=true npx ts-node -r tsconfig-paths/register main",
"start:docker": "npm run build && npm run docker:frontend:prod",
"start": "npm run start:frontend & npm run start:backend",
"start:mobile": "cd src/client/mobile && npm start",
"mobile:ios": "cd src/client/mobile && react-native run-ios",
"mobile:android": "cd src/client/mobile && react-native run-android",
"server": "npx pm2 start --name=node-api dist/server.js",
"docker-compose": "docker-compose build && docker-compose up -d",
"docker:frontend:prod": "node scripts/docker-build.js frontend",
"docker:backend:prod": "node scripts/docker-build.js backend",
"docker:frontend:prod:publish": "node scripts/docker-build.js frontend --publish",
"test": "npm run test:frontend:web && npm run test:frontend:mobile && npm run test:backend",
"test:backend": "cross-env CI=true API_DB_USERNAME=postgres API_DB_PASSWORD=password API_DB_NAME=postgres node scripts/test.js --env=jsdom --config=jest.backend.config.js",
"test:e2e": "node scripts/test.js --env=jsdom --config=jest.e2e.config.js --runInBand --coverage",
"test:watch": "cross-env API_DB_USERNAME=postgres API_DB_PASSWORD=password API_DB_NAME=postgres node scripts/test.js --env=jsdom --config=jest.backend.config.js",
"test:frontend:web": "cross-env CI=true node scripts/test.js --env=jsdom --config=jest.frontend.config.js",
"test:frontend:mobile": "cd src/client/mobile && npm test",
"test:frontend:watch": "node scripts/test.js --env=jsdom --config=jest.frontend.config.js",
"test:update": "yarn test --updateSnapshot",
"lint": "eslint ./src/client",
"omega:update-package:minor": "node scripts/omega/packager.js minor",
"omega:update-package:major": "node scripts/omega/packager.js major",
"omega:update-package:patch": "node scripts/omega/packager.js patch",
"omega:update-package:alpha": "node scripts/omega/packager.js alpha",
"generate": "npx plop",
"generate:container": "npx plop container",
"generate:webComponent": "npx plop webComponent",
"generate:sharedComponent": "npx plop sharedComponent",
"generate:mobileComponent": "npx plop mobileComponent",
"generate:server:module": "npx plop serverModule && npm run generate:server:modelHelpers",
"generate:server:modelHelpers": "npx plop serverModelHelpers",
"generate:graphqltypes": "cd src/server/app && npx ts-node generate-typings.ts",
"generate:docs": "npx typedoc --out docs/ src/ --mode file --module commonjs --target es6",
"generate:types": "tsc index.tsx --declaration --emitDeclarationOnly --jsx react --lib es2015 --esModuleInterop",
"generate:defintions": "npx dts-generator --name node-advanced-api --project ./ --out node-advanced-api.d.ts",
"generate-all": "npm run generate:defintions && npm run generate:docs",
"webpack": "webpack --env.NODE_ENV=development --env.watchFiles=true --config scripts/api-webpack.config.js",
"storybook": "start-storybook -p 6006",
"now-build": "npm run build:frontend",
"build-storybook": "build-storybook"
},
"lint-staged": {
"*.{js,css}": [
"prettier --write"
],
"*.js": [
"eslint src --fix"
]
},
"moduleRoots": [
"src/client",
"src/server",
"src",
"node_modules"
],
"dependencies": {
"@storybook/addon-actions": "4.1.18",
"@storybook/addon-links": "4.1.18",
"@storybook/addons": "4.1.18",
"@storybook/react": "6.0.21",
"@typescript-eslint/eslint-plugin": "4.12.0",
"@typescript-eslint/parser": "4.12.0",
"chrome-aws-lambda": "1.18.0",
"connected-react-router": "6.3.0",
"express-manifest-helpers-audit-fix": "0.6.3",
"graphql": "14.4.2",
"history": "4.9.0",
"puppeteer-core": "1.18.1",
"react": "16.9.0",
"react-apollo": "2.5.8",
"react-redux": "7.1.0",
"react-router": "5.0.1",
"redux": "4.0.1",
"redux-logger": "3.0.6",
"redux-observable": "1.1.0",
"rxjs": "6.5.2"
},
"browserslist": [
"last 1 version",
"> 1%",
"maintained node versions",
"not dead"
],
"devDependencies": {
"@apollo/react-testing": "3.1.4",
"@babel/core": "7.5.5",
"@babel/plugin-proposal-class-properties": "7.5.5",
"@babel/plugin-proposal-object-rest-spread": "7.5.5",
"@babel/plugin-proposal-optional-chaining": "7.2.0",
"@babel/plugin-syntax-dynamic-import": "7.2.0",
"@babel/plugin-transform-modules-commonjs": "7.5.0",
"@babel/polyfill": "7.4.4",
"@babel/preset-env": "7.5.5",
"@babel/preset-react": "7.0.0",
"@babel/preset-typescript": "7.3.3",
"@babel/register": "7.5.5",
"@babel/runtime": "7.5.5",
"@nestjs/cli": "7.5.1",
"@types/enzyme": "3.10.3",
"@types/graphql": "14.2.2",
"@types/jest": "24.0.15",
"@types/node": "7.10.6",
"@types/prop-types": "15.7.3",
"@types/react": "16.8.20",
"@types/react-transition-group": "2.9.2",
"@testing-library/react-hooks": "3.4.1",
"autoprefixer": "9.8.6",
"babel-eslint": "10.0.2",
"babel-jest": "26.3.0",
"babel-loader": "8.0.6",
"body-parser": "1.19.0",
"chalk": "2.4.2",
"copy-webpack-plugin": "6.1.0",
"cors": "2.8.5",
"cross-env": "5.2.0",
"css-hot-loader": "1.4.4",
"css-loader": "3.1.0",
"dotenv": "8.0.0",
"dts-gen": "0.6.0",
"dts-generator": "3.0.0",
"enzyme": "3.10.0",
"enzyme-adapter-react-16": "1.14.0",
"enzyme-to-json": "3.3.5",
"eslint": "6.2.2",
"eslint-config-airbnb": "18.0.1",
"eslint-config-prettier": "6.1.0",
"eslint-loader": "3.0.0",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-react": "7.14.3",
"extract-text-webpack-plugin": "4.0.0-beta.0",
"faker": "4.1.0",
"file-loader": "3.0.1",
"inquirer-recursive": "0.0.6",
"jest": "26.4.2",
"jest-puppeteer": "4.4.0",
"jest-transform-stub": "2.0.0",
"jsdom": "15.1.1",
"jsdom-global": "3.0.2",
"lerna": "3.18.4",
"lint-staged": "7.3.0",
"mini-css-extract-plugin": "0.7.0",
"mock-apollo-client": "0.2.0",
"node-fetch": "2.6.1",
"nodemon": "2.0.4",
"plop": "2.4.0",
"pm2": "4.4.1",
"postcss-assets": "5.0.0",
"postcss-flexbugs-fixes": "4.1.0",
"postcss-import": "12.0.1",
"postcss-loader": "3.0.0",
"postcss-nested": "4.1.2",
"postcss-normalize": "8.0.1",
"puppeteer": "1.19.0",
"redux-mock-store": "1.5.3",
"release-it": "14.0.2",
"reselect": "4.0.0",
"selenium-webdriver": "4.0.0-alpha.5",
"serve-static": "1.14.1",
"shelljs": "0.8.3",
"swagger-ui-express": "4.0.7",
"ts-jest": "26.3.0",
"ts-loader": "6.0.2",
"ts-node": "8.3.0",
"tsconfig-paths": "3.8.0",
"tsconfig-paths-webpack-plugin": "3.2.0",
"tslint": "5.17.0",
"typedoc": "0.19.1",
"typescript": "4.0.3",
"url-loader": "2.1.0",
"webpack": "4.43.0",
"webpack-bundle-analyzer": "3.8.0",
"webpack-cli": "3.3.12",
"webpack-dev-server": "3.11.0",
"webpack-hot-middleware": "2.25.0",
"webpack-manifest-plugin": "2.0.4",
"webpack-node-externals": "1.7.2",
"write-file-webpack-plugin": "4.5.0"
}
}