-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
132 lines (132 loc) · 5.85 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"name": "invoicing-platform",
"version": "0.1.0",
"scripts": {
"start": "MOCKED_DATABASE=true env-cmd deployment/environment/security.env.local nodemon ./deployment/devServer --ignore frontend --exec babel-node",
"start:remote": "MOCKED_DATABASE=false env-cmd deployment/environment/security.env.local nodemon ./deployment/devServer --ignore frontend --exec babel-node",
"update-schema": "babel-node deployment/graphql/updateSchema.js",
"build:frontend": "env-cmd deployment/environment/security.env.$CB_ENV node deployment/website/build.js",
"build:backend": "NODE_ENV=production babel --out-dir=build/backend-$CB_ENV --ignore='__tests__/*' ./backend && cp ./kms-secrets.*.yml ./env*.yml ./serverless.yml ./backend/package.json ./backend/yarn.lock ./build/backend-$CB_ENV",
"build:backend:node_modules": "cd build/backend-$CB_ENV && yarn && cd ../../",
"deploy:frontend": "npm run build:frontend && serverless syncToS3",
"deploy:backend": "npm run build:backend && npm run build:backend:node_modules && cd build/backend-$CB_ENV && serverless deploy",
"deploy": "npm run deploy:backend:$CB_ENV && npm run deploy:frontend:$CB_ENV",
"deploy:sand": "NODE_ENV=production CB_ENV=sand npm run deploy",
"deploy:frontend:sand": "NODE_ENV=production CB_ENV=sand npm run deploy:frontend",
"deploy:backend:sand": "NODE_ENV=production CB_ENV=sand npm run deploy:backend",
"deploy:prod": "NODE_ENV=production CB_ENV=prod npm run deploy",
"deploy:frontend:prod": "NODE_ENV=production CB_ENV=prod npm run deploy:frontend",
"deploy:backend:prod": "NODE_ENV=production CB_ENV=prod npm run deploy:backend",
"dev:frontend": "NODE_ENV=development env-cmd deployment/environment/security.env.local babel-watch deployment/dev-server/server.js",
"dev:backend": "NODE_ENV=development CB_ENV=test npm run dev:build:backend && cd build/backend-$CBT_ENV && serverless dynamodb install && serverless offline start --migrate true --stage $CB_ENV",
"dev:build:backend": "NODE_ENV=development babel --out-dir='build/backend-dev' --ignore='__tests__/*' ./backend && cp -R ./kms-secrets.*.yml ./env*.yml ./serverless.yml ./backend/data ./package.json ./yarn.lock ./build/backend-$CB_ENV",
"dev:build:backend:node_modules": "cd build/backend-dev && yarn && cd ../../",
"lint": "npm run lint:eslint && npm run lint:css",
"lint:eslint": "eslint .",
"lint:eslint:fix": "eslint . --fix",
"lint:css": "stylelint ./frontend/**/*.css",
"lint:staged": "lint-staged",
"test": "NODE_ENV=test jest",
"test:watch": "NODE_ENV=test jest --watch",
"test:coverage": "npm test -- --coverage --collectCoverageFrom 'frontend/**/*.js' --collectCoverageFrom 'backend/**/*.js' --collectCoverageFrom 'deployment/**/*.js'"
},
"lint-staged": {
"lint:eslint": "*.js",
"stylelint": "*.css"
},
"pre-commit": "lint:staged",
"dependencies": {
"apollo-client": "^1.9.1",
"babel-polyfill": "^6.23.0",
"bitcore-lib": "^0.14.0",
"bitcore-mnemonic": "^1.2.5",
"bs58": "^4.0.1",
"bunyan": "^1.8.12",
"classnames": "2.2.5",
"crypto": "^1.0.1",
"dynamoose": "^0.8.3",
"graphql-tag": "^2.4.2",
"http-status-codes": "^1.2.0",
"jquery": "^3.2.1",
"lodash": "^4.17.4",
"moment": "^2.18.1",
"pay-to-contract-lib": "git://github.com/commerceblock/pay-to-contract-lib.git",
"uuid": "^3.1.0",
"v-qrcode": "^1.0.3",
"vue": "^2.4.2",
"vue-apollo": "^2.1.0-beta.21",
"vue-clipboard2": "0.0.6",
"vue-form-wizard": "^0.6.3",
"vue-router": "^2.7.0",
"vue-spinner": "^1.0.2"
},
"devDependencies": {
"aws-sdk": "^2.98.0",
"babel-cli": "^6.24.1",
"babel-core": "^6.25.0",
"babel-eslint": "^7.2.3",
"babel-jest": "^20.0.3",
"babel-loader": "^7.1.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"babel-watch": "^2.0.7",
"body-parser": "^1.17.2",
"connect-history-api-fallback": "^1.3.0",
"cors": "^2.8.4",
"css-loader": "^0.28.4",
"env-cmd": "^5.1.0",
"eslint": "^4.4.1",
"eslint-config-airbnb": "^15.1.0",
"eslint-friendly-formatter": "^3.0.0",
"eslint-plugin-flowtype": "^2.35.0",
"eslint-plugin-html": "^3.2.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-react": "^7.2.1",
"exports-loader": "^0.6.4",
"express": "^4.15.4",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^0.11.2",
"flow-bin": "^0.52.0",
"graphql": "^0.10.5",
"html-webpack-plugin": "^2.30.1",
"identity-obj-proxy": "^3.0.0",
"iflow-lodash": "^1.1.27",
"jest-cli": "^20.0.4",
"lint-staged": "^4.0.3",
"node-sass": "^4.5.3",
"nodemon": "^1.11.0",
"opn": "^5.1.0",
"pre-commit": "^1.2.2",
"require-clean": "0.1.3",
"sass-loader": "^6.0.6",
"serve-favicon": "^2.4.3",
"serverless-cors-plugin": "^0.4.2",
"serverless-dynamodb-local": "^0.2.25",
"serverless-kms-secrets": "^0.9.7",
"serverless-offline": "^3.15.3",
"serverless-s3-local": "^0.2.5",
"shelljs": "^0.7.8",
"style-loader": "^0.18.2",
"stylelint": "^8.0.0",
"stylelint-config-standard": "^17.0.0",
"url-loader": "^0.5.9",
"vue-loader": "^13.0.4",
"vue-template-compiler": "^2.4.2",
"webpack": "^3.5.4",
"webpack-dev-middleware": "^1.12.0",
"webpack-hot-middleware": "^2.18.2",
"webpack-md5-hash": "0.0.5",
"whatwg-fetch": "^2.0.3",
"serverless-single-page-app-plugin": "git://github.com/commerceblock/serverless-single-page-app-plugin.git#5140a247b4eb7a292720243190d341e372eb9c7c"
},
"jest": {
"moduleNameMapper": {
"^.+\\.(jpg|png|gif|eot|svg|ttf|woff|woff2|mp4|webm)$": "<rootDir>/deployment/jest/fileMock.js",
"^.+\\.css$": "<rootDir>/deployment/jest/cssMock.js"
}
}
}