forked from serverless/serverless-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
107 lines (107 loc) · 4.26 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
{
"name": "serverless-graphql",
"version": "0.0.0",
"private": true,
"repository": {
"type": "git",
"url": "[email protected]:serverless/serverless-graphql.git"
},
"scripts": {
"start": "npm run generate:config:local && MOCKED_DATABASE=true env-cmd foundation/environment/security.env.local nodemon ./foundation/devServer --ignore app --exec babel-node",
"start:remote": "npm run generate:config:local && MOCKED_DATABASE=false env-cmd foundation/environment/security.env.local nodemon ./foundation/devServer --ignore app --exec babel-node",
"generate:config": "node foundation/generateConfig/index.js",
"generate:config:local": "env-cmd foundation/environment/security.env.local npm run generate:config",
"generate:config:prod": "env-cmd foundation/environment/security.env.prod npm run generate:config",
"update-schema": "babel-node foundation/graphql/updateSchema.js",
"build:frontend": "NODE_ENV=production env-cmd foundation/environment/security.env.prod webpack --config foundation/webpack/webpack.prod.js -p && cp ./app/favicon.ico ./build/frontend/favicon.ico",
"build:api": "npm run generate:config:prod && NODE_ENV=production babel --out-dir='api/graphql' --ignore='__tests__/*' ./graphql",
"build:api:node_modules": "cd api && npm install && cd ..",
"deploy": "npm run deploy:api && npm run deploy:frontend",
"deploy:frontend": "npm run build:frontend && aws s3 sync build/frontend/ s3://<your-s3-bucket-name>/",
"deploy:api": "npm run build:api && npm run build:api:node_modules && cd api && serverless --stage=production deploy",
"lint": "npm run generate:config:local && npm run lint:eslint && npm run lint:css",
"lint:eslint": "eslint .",
"lint:eslint:fix": "eslint . --fix",
"lint:css": "stylelint ./app/**/*.css",
"lint:staged": "lint-staged",
"test": "NODE_ENV=test jest",
"test:watch": "NODE_ENV=test jest --watch",
"test:coverage": "npm test -- --coverage --collectCoverageFrom 'app/**/*.js' --collectCoverageFrom 'graphql/**/*.js'"
},
"lint-staged": {
"lint:eslint": "*.js",
"stylelint": "*.css"
},
"pre-commit": "lint:staged",
"dependencies": {
"babel-polyfill": "^6.16.0",
"classnames": "2.2.5",
"graphql-relay": "^0.4.3",
"jwt-decode": "^2.1.0",
"lodash": "^4.13.1",
"react": "^15.3.1",
"react-dom": "^15.3.1",
"react-relay": "^0.9.3",
"react-router": "^2.7.0",
"react-router-relay": "^0.13.5",
"recompose": "^0.20.2",
"sanitize.css": "^4.1.0",
"whatwg-fetch": "^1.0.0"
},
"devDependencies": {
"aws-sdk": "^2.4.8",
"babel-cli": "^6.16.0",
"babel-core": "^6.17.0",
"babel-eslint": "^7.0.0",
"babel-jest": "^16.0.0",
"babel-loader": "6.2.5",
"babel-preset-es2015": "^6.16.0",
"babel-preset-react": "^6.16.0",
"babel-preset-stage-0": "^6.16.0",
"babel-relay-plugin": "0.9.3",
"body-parser": "^1.15.2",
"css-loader": "^0.25.0",
"env-cmd": "^2.1.0",
"eslint": "^3.4.0",
"eslint-config-airbnb": "^12.0.0",
"eslint-plugin-flowtype": "^2.11.4",
"eslint-plugin-import": "^1.16.0",
"eslint-plugin-jsx-a11y": "^2.2.0",
"eslint-plugin-react": "^6.2.0",
"express": "4.14.0",
"extract-text-webpack-plugin": "^2.0.0-beta.1",
"file-loader": "^0.9.0",
"flow-bin": "^0.33.0",
"graphql": "^0.7.0",
"html-webpack-plugin": "^2.21.0",
"identity-obj-proxy": "^3.0.0",
"iflow-lodash": "^1.1.24",
"jest-cli": "^15.1.1",
"jsonwebtoken": "^7.1.9",
"lint-staged": "^3.0.3",
"nodemon": "^1.10.0",
"postcss-cssnext": "^2.6.0",
"postcss-loader": "^0.13.0",
"postcss-nested": "^1.0.0",
"postcss-reporter": "^1.3.3",
"pre-commit": "^1.1.3",
"react-test-renderer": "^15.3.1",
"require-clean": "0.1.3",
"serve-favicon": "^2.3.0",
"style-loader": "^0.13.1",
"stylelint": "^7.3.1",
"stylelint-config-standard": "^13.0.0",
"url-loader": "^0.5.7",
"uuid-js": "^0.7.5",
"webpack": "=2.1.0-beta.22",
"webpack-dev-middleware": "^1.6.1",
"webpack-hot-middleware": "^2.11.0",
"webpack-md5-hash": "0.0.5"
},
"jest": {
"moduleNameMapper": {
"^.+\\.(jpg|png|gif|eot|svg|ttf|woff|woff2|mp4|webm)$": "<rootDir>/foundation/jest/fileMock.js",
"^.+\\.css$": "<rootDir>/foundation/jest/cssMock.js"
}
}
}