This repository has been archived by the owner on May 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
executable file
·214 lines (214 loc) · 6.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
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
"name": "sjsitapp",
"version": "0.16.5",
"main": "app.js",
"description": "An application for the San Jose Sharks Ice Team.",
"repository": "https://github.com/mattcarlotta/SJITApp",
"author": "Matt Carlotta",
"license": "MIT",
"private": true,
"engines": {
"node": ">=10",
"npm": ">=6"
},
"scripts": {
"compile": "rimraf build && babel ./ -d build --no-comments --ignore node_modules,client,**/__tests__,coverage,setupTests.js,**/__mocks__",
"checkbuild": "npm run checkbuild --prefix client",
"dev": "better-npm-run dev",
"db:drop": "better-npm-run db:drop",
"db:droptestdb": "better-npm-run db:droptestdb",
"db:seed": "better-npm-run db:seed",
"db:seedprod": "better-npm-run db:seedprod",
"db:seedstage": "better-npm-run db:seedstage",
"initialize": "yarn install && cd client && yarn install && cd ..",
"pre-commit": "npm run lint && npm run test",
"start": "better-npm-run start",
"staging": "better-npm-run staging",
"server": "better-npm-run server",
"client": "npm run dev --prefix client",
"build": "npm run build --prefix client",
"stage": "npm run stage --prefix client",
"analyze": "npm run analyze --prefix client",
"lint": "npm run lint:front --silent && npm run lint:back --silent",
"lint:front": "npm run pre-commit --prefix client",
"lint:back": "lint-staged",
"test": "npm run test:back && npm run test --prefix client",
"test:back": "better-npm-run test:back",
"test:backcov": "better-npm-run test:backcov",
"test:backwatch": "better-npm-run test:backwatch",
"test:front": "npm run test --prefix client",
"test:frontcov": "npm run test:coverage --prefix client",
"test:frontwatch": "npm run test:watch --prefix client",
"test:frontwatchall": "npm run test:watchall --prefix client",
"transform": "npm run compile --prefix client"
},
"betterScripts": {
"db:drop": {
"command": "babel-node ./utils/teardownDB.js",
"env": {
"CLIENT": "http://localhost:5000",
"DATABASE": "sjsitapp-dev-db",
"NODE_ENV": "development",
"DROPDB": "true"
}
},
"db:droptestdb": {
"command": "babel-node ./utils/teardownDB.js",
"env": {
"CLIENT": "http://localhost:5000",
"DATABASE": "sjsitapp-test-db",
"NODE_ENV": "testing",
"DROPDB": "true"
}
},
"db:seed": {
"command": "babel-node ./utils/seedDB.js",
"env": {
"CLIENT": "http://localhost:5000",
"DATABASE": "sjsitapp-dev-db",
"NODE_ENV": "development",
"SEED": "true"
}
},
"db:seedprod": {
"command": "babel-node ./utils/seedProd.js",
"env": {
"CLIENT": "http://localhost:5000",
"DATABASE": "sjsitapp-prod-db",
"NODE_ENV": "production"
}
},
"db:seedstage": {
"command": "babel-node ./utils/seedProd.js",
"env": {
"CLIENT": "http://localhost:5000",
"DATABASE": "sjsitapp-staging-db",
"NODE_ENV": "staging"
}
},
"dev": {
"command": "concurrently \"better-npm-run server\" \"npm run client\"",
"env": {
"HOST": "http://localhost:",
"CLIENT": "http://localhost:3000",
"DATABASE": "sjsitapp-dev-db",
"NODE_ENV": "development",
"APIPORT": 5000
}
},
"start": {
"command": "node ./build/app.js",
"env": {
"HOST": "http://localhost:",
"CLIENT": "https://sjsiceteam.com",
"DATABASE": "sjsitapp-prod-db",
"NODE_ENV": "production",
"APIPORT": 8080
}
},
"staging": {
"command": "node ./build/app.js",
"env": {
"HOST": "http://localhost:",
"CLIENT": "http://localhost:8080",
"DATABASE": "sjsitapp-staging-db",
"NODE_ENV": "staging",
"APIPORT": 8080
}
},
"server": {
"command": "nodemon --exec babel-node ./app.js",
"env": {
"HOST": "http://localhost:",
"CLIENT": "http://localhost:3000",
"DATABASE": "sjsitapp-dev-db",
"NODE_ENV": "development",
"APIPORT": 5000
}
},
"test:back": {
"command": "jest --config ./jest.json",
"env": {
"CLIENT": "http://localhost:5001",
"DATABASE": "sjsitapp-test-db",
"NODE_ENV": "testing",
"DROPDB": "true",
"APIPORT": 5001
}
},
"test:backcov": {
"command": "jest --config ./jest.json --coverage",
"env": {
"CLIENT": "http://localhost:5001",
"DATABASE": "sjsitapp-test-db",
"NODE_ENV": "testing",
"DROPDB": "true",
"APIPORT": 5001
}
},
"test:backwatch": {
"command": "jest --config ./jest.json --passWithNoTests --watchAll",
"env": {
"CLIENT": "http://localhost:5001",
"DATABASE": "sjsitapp-test-db",
"NODE_ENV": "testing",
"APIPORT": 5001
}
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "npm run pre-commit"
}
},
"dependencies": {
"@babel/core": "^7.8.0",
"@babel/node": "^7.8.0",
"@babel/preset-env": "^7.8.2",
"@nivo/bar": "^0.61.1",
"@nivo/pie": "^0.61.1",
"babel-plugin-module-resolver": "^4.0.0",
"bcryptjs": "^2.4.3",
"better-npm-run": "^0.1.1",
"bluebird": "^3.7.2",
"body-parser": "^1.19.0",
"chalk": "^3.0.0",
"compression": "^1.7.4",
"concurrently": "^5.0.2",
"connect-redis": "^4.0.3",
"cors": "^2.8.5",
"express": "^4.17.1",
"express-session": "^1.17.0",
"lodash": "^4.17.15",
"moment-timezone": "^0.5.27",
"mongoose": "^5.8.7",
"mongoose-paginate-v2": "^1.3.52",
"morgan": "^1.9.1",
"nodemon": "^2.0.2",
"passport": "^0.4.1",
"passport-local": "^1.0.0",
"react-dev-utils": "^10.0.0",
"redis": "^2.8.0",
"supertest": "^4.0.2"
},
"devDependencies": {
"@babel/cli": "^7.8.0",
"babel-jest": "^24.9.0",
"eslint": "^5.14.1",
"eslint-config-airbnb-base": "^13.2.0",
"eslint-import-resolver-babel-module": "^5.1.1",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-prettier": "^3.1.2",
"husky": "^3.1.0",
"jest": "^24.9.0",
"lint-staged": "^9.5.0",
"prettier": "^1.19.1",
"rimraf": "^3.0.0"
}
}