-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
95 lines (95 loc) · 3.15 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
{
"name": "website",
"version": "1.0.0",
"description": "Website hosted on Stratiform.io",
"main": "index.js",
"repository": "https://github.com/stratiformltd/website.git",
"author": "Tasveer Singh <[email protected]>",
"license": "BSD-3-Clause",
"scripts": {
"build": "yarn run build-server && yarn run build-pages",
"build-pages": "NODE_ENV=production node server/dist/app.js",
"build-server": "NODE_ENV=production webpack --progress --config ./tools/webpack.server.config",
"clean": "rm -rf dist && rm -rf server/dist",
"clean-build-deploy": "yarn run clean && yarn run build && aws s3 rm s3://stratiform-website --recursive && yarn run deploy",
"copy-static-files": "cp -r ./public/* ./dist",
"deploy": "yarn run deploy-others && yarn run deploy-html && yarn run deploy-public",
"deploy-html": "aws s3 sync dist/ s3://stratiform-website --exclude '*' --include '*.html' --cache-control public,max-age=86400",
"deploy-others": "aws s3 sync dist/ s3://stratiform-website --exclude '*.html' --cache-control public,max-age=31536000,immutable",
"deploy-public": "aws s3 sync public/ s3://stratiform-website --cache-control public,max-age=604800",
"prettier": "prettier",
"prod-server": "serve -s -p 8081 ./dist",
"start": "webpack-dev-server --config ./tools/webpack.config",
"start-unsupported": "webpack-dev-server --config ./tools/webpack.config.unsupported"
},
"dependencies": {
"autotrack": "^2.4.1",
"babel-polyfill": "^6.23.0",
"polished": "^1.2.1",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-loadable-visibility": "^2.3.0",
"react-router-dom": "^4.1.1",
"styled-components": "^2.1.0"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-core": "^6.25.0",
"babel-loader": "^7.1.0",
"babel-plugin-import-inspector": "^2.0.0",
"babel-plugin-module-resolver": "^2.7.1",
"babel-plugin-styled-components": "^1.1.7",
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.1",
"babel-preset-env": "^1.5.2",
"babel-preset-react": "^6.24.1",
"babel-preset-react-optimize": "^1.0.1",
"babel-preset-stage-2": "^6.24.1",
"babili-webpack-plugin": "^0.1.2",
"file-loader": "^0.11.2",
"import-inspector": "^2.0.0",
"null-loader": "^0.1.1",
"prettier": "^1.5.2",
"react-loadable": "^4.0.3",
"serve": "^6.0.1",
"svgo": "^0.7.2",
"svgo-loader": "^1.2.1",
"url-loader": "^0.5.9",
"webpack": "^3.0.0",
"webpack-dev-server": "^2.5.0",
"webpack-node-externals": "^1.6.0",
"webpack-require-weak": "^1.0.1"
},
"babel": {
"presets": [
[
"env",
{
"modules": false,
"loose": true,
"targets": {
"browsers": [
"Edge >= 14",
"Firefox >= 52",
"Chrome >= 57",
"Safari >= 9.1",
"Opera >= 44",
"iOS >= 9.3",
"Android >= 4.4"
]
},
"useBuiltIns": true
}
],
"react",
"stage-2"
],
"plugins": [
[
"styled-components",
{
"ssr": true
}
]
]
}
}