-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackage.json
113 lines (113 loc) · 4.16 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
{
"name": "beyond.ts",
"version": "1.0.0",
"description": "ReactJS doing isomorphic rendering without server by using serverless framework(AWS Lambda)",
"main": "index.js",
"scripts": {
"pack":
"rm -f dist.zip && rm -f dist/bundleBrowser.js && cp scripts/package.json dist/package.json && cd dist && npm install --production && zip -rq ../dist.zip . ** && cd ..",
"clean": "rm -rf dist && rm -rf temp && rm -f dist.zip",
"build": "npm run clean && webpack --config webpack.prod.config.js -p && npm run build-browser",
"build-browser": "webpack --config webpack.browser.config.js -p",
"deploy:stage":
"npm run build && ts-node scripts/deployToStage.ts && cp temp/version dist && cp scripts/handler.js dist && npm run pack && serverless deploy --stage stage",
"deploy:prod":
"npm run build && ts-node scripts/deployToStage.ts && cp temp/version dist && cp scripts/handler.js dist && npm run pack && serverless deploy --stage production",
"dev": "webpack-dev-server --content-base app/ --hot --progress --colors --host 0.0.0.0",
"lint": "tslint 'app/**/*.ts' -e 'app/**/*.d.ts' && sass-lint -c .sass-lint.yml --verbose",
"unit-test": "rm -r output | jest --coverage",
"ssr-test": "npm run build && SSR_TEST=true node dist/bundle.js",
"test": "npm run lint && npm run unit-test && npm run ssr-test"
},
"engines": {
"node": ">=6.5.0"
},
"author": "Tylor Shin",
"license": "MIT",
"devDependencies": {
"@types/aws-sdk": "^2.7.0",
"@types/axios": "^0.14.0",
"@types/enzyme": "^3.1.0",
"@types/fs-extra": "4.0.2",
"@types/immutable": "^3.8.7",
"@types/jest": "^21.1.4",
"@types/node": "^8.0.46",
"@types/prop-types": "^15.5.2",
"@types/react": "^16.0.16",
"@types/react-dom": "^16.0.2",
"@types/react-helmet": "5.0.3",
"@types/react-redux": "^5.0.10",
"@types/react-router": "^4.0.16",
"@types/react-router-dom": "^4.0.8",
"@types/react-router-redux": "^5.0.8",
"@types/redux": "^3.6.31",
"@types/redux-logger": "^3.0.5",
"@types/redux-mock-store": "^0.0.11",
"@types/redux-thunk": "^2.1.31",
"autoprefixer": "^7.1.6",
"aws-sdk": "^2.138.0",
"babel-polyfill": "^6.26.0",
"css-loader": "^0.28.7",
"enzyme": "^3.1.0",
"eslint": "^4.9.0",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-import": "^2.7.0",
"extract-text-webpack-plugin": "^3.0.1",
"fs-extra": "^4.0.2",
"html-loader": "^0.5.1",
"html-webpack-plugin": "^2.30.1",
"imports-loader": "^0.7.1",
"isomorphic-style-loader": "^4.0.0",
"jasmine-reporters": "^2.2.1",
"jest": "^22.2.2",
"markdown-loader": "^2.0.1",
"node-sass": "^4.7.2",
"postcss-flexbugs-fixes": "^3.2.0",
"postcss-loader": "^2.0.8",
"react-addons-test-utils": "^15.6.2",
"redux-mock-store": "^1.3.0",
"s3": "^4.4.0",
"sass-lint": "^1.12.1",
"sass-loader": "^6.0.6",
"serverless": "^1.23.0",
"svg-sprite-loader": "^3.6.2",
"ts-jest": "21.1.3",
"ts-loader": "^3.0.5",
"ts-node": "^4.1.0",
"typescript": "^2.7.1",
"webpack": "^3.11.0",
"webpack-dev-server": "^2.11.1"
},
"dependencies": {
"axios": "^0.17.0",
"immutable": "^3.8.2",
"prop-types": "^15.6.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-helmet": "^5.2.0",
"react-redux": "^5.0.6",
"react-router-dom": "^4.2.2",
"react-router-redux": "^5.0.0-alpha.8",
"redux": "^3.7.2",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.2.0",
"typed-immutable-record": "0.0.6"
},
"jest": {
"scriptPreprocessor": "<rootDir>/scripts/jestPreprocessor.js",
"setupTestFrameworkScriptFile": "<rootDir>/scripts/jestReporter.js",
"verbose": true,
"rootDir": "",
"globals": {
"__TS_CONFIG__": "tsconfig-test.json"
},
"moduleFileExtensions": ["ts", "tsx", "js"],
"testPathDirs": ["<rootDir>/app"],
"coveragePathIgnorePatterns": ["/node_modules/"],
"coverageDirectory": "output/coverage",
"testRegex": "__tests__/.*_spec.tsx$",
"unmockedModulePathPatterns": ["<rootDir>/node_modules", "<rootDir>/scripts"],
"setupFiles": ["<rootDir>/app/__tests__/preload.tsx"],
"automock": true
}
}