-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
44 lines (44 loc) · 1.86 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
{
"dependencies": {
"@prisma/client": "2.17.0",
"bcrypt": "^5.0.1",
"cors": "^2.8.5",
"cross-env": "^7.0.3",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"jsonwebtoken": "^8.5.1",
"yup": "^0.32.9"
},
"scripts": {
"start": "cross-env node index.js",
"start:client": "cd client && cross-env SKIP_PREFLIGHT_CHECK=true yarn dev",
"install:client": "cd client && yarn",
"build": "cd client && yarn && cross-env SKIP_PREFLIGHT_CHECK=true NODE_ENV=production yarn build",
"dev": "dotenv -e .env -- nodemon index.js",
"db:up": "dotenv -e .env -- prisma db push --preview-feature --accept-data-loss --force-reset && yarn db:seed",
"test:db:up": "dotenv -e .env.test.local -- prisma db push --preview-feature --accept-data-loss --force-reset",
"db:seed": "node prisma/seed.js",
"prod:db:up": "dotenv -e .env.production -- prisma db push --preview-feature --accept-data-loss --force-reset",
"deploy": "yarn prod:db:up && git add . && git commit -am 'New build' && git push heroku main",
"test:api": "dotenv -e .env.test.local -- jest --runInBand --config ./jest.config.js",
"prettify:client": "prettier --write client/**/*.{tsx,ts,json,html}",
"prettify:server": "prettier --write controllers/**/*.js routes/**/*.js utils/**/*.js tests/**/*.test.js",
"lint-staged": "lint-staged"
},
"lint-staged": {
"*.{tsx,js,ts,json,md}": "prettier --write"
},
"pre-commit": "lint-staged",
"devDependencies": {
"dotenv-cli": "^4.0.0",
"faker": "^5.4.0",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"nodemon": "^2.0.7",
"pre-commit": "^1.2.2",
"prettier": "^2.2.1",
"prisma": "2.17.0",
"randexp": "^0.5.3",
"supertest": "^6.1.3"
}
}