generated from codenameyau/preact-express-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
88 lines (88 loc) · 2.35 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
{
"name": "react-express-template",
"version": "1.0.0",
"proxy": "http://localhost:9008",
"scripts": {
"production": "yarn build && yarn server",
"production:heroku": "node --optimize_for_size --max_old_space_size=920 --gc_interval=100 ./server-babel/index.js",
"start": "concurrently 'yarn server:dev' 'yarn start:react'",
"start:react": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"test:ci": "CI=true react-scripts test",
"server": "yarn server:build && node ./server-babel/index.js",
"server:build": "babel ./server -d ./server-babel",
"server:dev": "babel-watch ./server/index.js",
"lint": "eslint src",
"prettier": "prettier --write '**/*.js'",
"analyze": "source-map-explorer build/**/*.{js,map}",
"heroku-postbuild": "./bin/heroku-postbuild"
},
"eslintIgnore": [
"build",
"server-babel"
],
"dependencies": {
"body-parser": "^1.19.0",
"compression": "^1.7.4",
"cookie-parser": "^1.4.4",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-http-proxy": "^1.6.0",
"morgan": "^1.9.1",
"prop-types": "^15.7.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.0",
"styled-components": "^5.0.1"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4",
"babel-watch": "^7.0.0",
"concurrently": "^5.1.0",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.15.2",
"eslint": "^6.0.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.18.3",
"husky": ">=4",
"imagemin": "^7.0.1",
"imagemin-jpegtran": "^6.0.0",
"imagemin-optipng": "^7.1.0",
"imagemin-svgo": "^7.0.0",
"lint-staged": "^10.0.7",
"prettier": "^1.19.1",
"source-map-explorer": "^2.2.2"
},
"lint-staged": {
"*.{png,jpeg,jpg,svg}": [
"node ./bin/minify-images.js",
"git add"
],
"*.js": [
"prettier --write",
"eslint",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}