-
Notifications
You must be signed in to change notification settings - Fork 45
/
package.json
189 lines (189 loc) · 6.23 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
{
"name": "express-webpack-react-redux-typescript-boilerplate",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "https://github.com/Armour/express-webpack-react-redux-typescript-boilerplate.git"
},
"author": "Chong Guo <[email protected]>",
"license": "MIT",
"scripts": {
"clean": "trash frontend/dist coverage",
"dll": "cross-env NODE_ENV=production webpack --config webpack.config.dll.babel.js",
"dev": "yarn clean && yarn dll && concurrently \"yarn dev-server\" \"yarn dev-client\"",
"dev-server": "cross-env NODE_ENV=development nodemon --exec babel-node backend/server.js",
"dev-client": "cross-env NODE_ENV=development webpack-dev-server --hot --config webpack.config.dev.babel.js",
"prod": "yarn build && yarn serve",
"build": "yarn clean && yarn dll && cross-env NODE_ENV=production webpack --config webpack.config.prod.babel.js",
"serve": "cross-env NODE_ENV=production nodemon --exec babel-node backend/server.js",
"profile": "yarn clean && yarn dll && cross-env NODE_ENV=production webpack --config webpack.config.profile.babel.js",
"eslint": "eslint -f codeframe \"**/*.js\"",
"tslint": "tslint -t codeFrame -c tslint.json \"**/*.tsx\" \"**/*.d.ts\"",
"stylelint": "stylelint \"**/*.css **/*.sass **/*.scss\"",
"lint": "yarn eslint && yarn tslint && yarn stylelint",
"test": "jest --runInBand --coverage",
"coverage": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
},
"husky": {
"hooks": {
"pre-commit": "yarn lint",
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
"pre-push": "yarn test && yarn coverage"
}
},
"dependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.2.0",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.1.0",
"@types/i18next": "^12.1.0",
"@types/i18next-browser-languagedetector": "^2.0.1",
"@types/i18next-xhr-backend": "^1.4.1",
"@types/materialize-css": "^1.0.6",
"@types/prismjs": "^1.9.0",
"@types/react": "^16.8.2",
"@types/react-content-loader": "^3.1.4",
"@types/react-dom": "^16.8.0",
"@types/react-redux": "^7.0.1",
"@types/react-router": "^4.4.3",
"@types/react-router-dom": "^4.3.1",
"@types/redux-immutable": "^4.0.1",
"@types/redux-logger": "^3.0.6",
"@types/uuid": "^3.4.4",
"@types/webpack-env": "^1.13.7",
"add-asset-html-webpack-plugin": "^3.1.3",
"awesome-typescript-loader": "^5.2.1",
"axios": "^0.18.0",
"babel-loader": "^8.0.5",
"babel-plugin-prismjs": "^1.0.2",
"body-parser": "^1.18.3",
"colors": "^1.3.3",
"compression": "^1.7.3",
"concurrently": "^4.1.0",
"connect-redis": "^3.4.0",
"connected-react-router": "^6.2.2",
"cookie-parser": "^1.4.3",
"copy-webpack-plugin": "^4.6.0",
"cross-env": "^5.2.0",
"css-loader": "^2.1.0",
"cssnano": "^4.1.8",
"dotenv-webpack": "^1.7.0",
"duplicate-package-checker-webpack-plugin": "^3.0.0",
"express": "^4.16.4",
"express-session": "^1.15.6",
"file-loader": "^3.0.1",
"fork-ts-checker-webpack-plugin": "^0.5.2",
"helmet": "^3.15.0",
"history": "^4.7.2",
"html-webpack-plugin": "^3.2.0",
"http-status": "^1.3.1",
"i18next": "^14.1.1",
"i18next-browser-languagedetector": "^2.2.4",
"i18next-xhr-backend": "^1.5.1",
"image-webpack-loader": "^4.6.0",
"immutable": "4.0.0-rc.12",
"materialize-css": "1.0.0",
"mini-css-extract-plugin": "^0.5.0",
"morgan": "^1.9.1",
"node-sass": "^4.11.0",
"nodemon": "^1.18.9",
"offline-plugin": "^5.0.6",
"pg": "^7.8.0",
"postcss": "^7.0.14",
"postcss-import": "^12.0.1",
"postcss-loader": "^3.0.0",
"postcss-preset-env": "^6.5.0",
"prismjs": "^1.15.0",
"progress-bar-webpack-plugin": "^1.12.1",
"react": "^16.8.1",
"react-content-loader": "^4.0.1",
"react-dom": "^16.8.1",
"react-hot-loader": "^4.6.5",
"react-i18next": "^10.0.1",
"react-redux": "^6.0.0",
"react-router": "^4.3.1",
"react-router-dom": "^4.3.1",
"redux": "^4.0.1",
"redux-immutable": "^4.0.0",
"redux-logger": "^3.0.6",
"redux-saga": "^1.0.1",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
"trash-cli": "^1.4.0",
"ts-loader": "^5.3.3",
"typescript": "^3.3.3",
"url-loader": "^1.1.2",
"uuid": "^3.3.2",
"webpack": "^4.29.3",
"webpack-bundle-analyzer": "^3.0.3",
"webpack-cli": "^3.2.3",
"webpack-merge": "^4.2.1",
"webpack-pwa-manifest": "^4.0.0"
},
"devDependencies": {
"@babel/node": "^7.2.2",
"@types/jest": "^24.0.0",
"@types/react-test-renderer": "^16.8.0",
"babel-core": "7.0.0-bridge.0",
"case-sensitive-paths-webpack-plugin": "^2.2.0",
"commitlint": "^7.5.0",
"commitlint-config-armour": "^1.2.1",
"coveralls": "^3.0.2",
"dotenv": "^6.2.0",
"eslint": "^5.13.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-import-resolver-webpack": "^0.11.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.12.4",
"husky": "1.3.1",
"identity-obj-proxy": "^3.0.0",
"jest": "^24.1.0",
"react-test-renderer": "^16.8.1",
"stylelint": "^9.10.1",
"stylelint-config-standard": "^18.2.0",
"ts-jest": "^23.10.5",
"tslint": "^5.12.1",
"tslint-react": "^3.6.0",
"webpack-dev-server": "^3.1.14"
},
"resolutions": {
"**/event-stream": "^4.0.1"
},
"browserslist": [
"> 1%",
"last 2 versions"
],
"nodemonConfig": {
"watch": [
"backend/controllers/",
"backend/routes/",
"backend/db/",
"backend/config.json",
"backend/server.js"
]
},
"jest": {
"preset": "ts-jest",
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.tsx",
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
},
"moduleDirectories": [
"node_modules",
"frontend/src",
"backend"
],
"moduleFileExtensions": [
"js",
"jsx",
"json",
"ts",
"tsx"
]
}
}