-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpackage.json
55 lines (55 loc) · 1.76 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
{
"name": "create-react-app-devops",
"version": "0.1.0",
"private": true,
"dependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-preset-env": "^1.7.0",
"compression": "^1.7.2",
"express": "^4.16.3",
"now-env": "^3.1.0",
"react": "^16.4.1",
"react-app-rewired": "^1.5.2",
"react-dom": "^16.4.1",
"react-scripts": "1.1.4",
"request": "^2.87.0"
},
"scripts": {
"start": "yarn dev",
"build": "yarn build:client && yarn build:server",
"build:client": "react-app-rewired build",
"build:server": "babel src/server -d build/server",
"deploy:random": "yarn build && now",
"deploy:production": "yarn build && now && now alias",
"deploy:staging": "yarn build && now -A now-staging.json && now alias -A now-staging.json",
"dev": "concurrently \"yarn dev:server\" \"yarn dev:client\"",
"dev:client": "react-scripts start",
"dev:server": "DEV=true PORT=8081 babel-watch ./src/server/index.js",
"now-start": "node build/server/index.js",
"purge": "now rm create-react-app-devops -s -y",
"test": "react-scripts test --env=jsdom",
"travis:purge": "now rm create-react-app-devops -s -y --token $NOW_TOKEN",
"travis:production": "now --token $NOW_TOKEN && now alias --token $NOW_TOKEN && yarn travis:purge",
"travis:staging": "now -A now-staging.json --token $NOW_TOKEN && now alias -A now-staging.json --token $NOW_TOKEN && yarn travis:purge",
"eject": "react-scripts eject"
},
"proxy": {
"/api": {
"target": "http://localhost:8081",
"pathRewrite": {
"^/proxy": ""
},
"changeOrigin": true
}
},
"babel": {
"presets": [
"env"
]
},
"devDependencies": {
"babel-watch": "^2.0.7",
"concurrently": "^3.6.0"
}
}