-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
40 lines (40 loc) · 1.94 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
{
"name": "testing-project-week",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"start": "node ./bin/www.js",
"dev": "nodemon -r dotenv/config ./bin/www.js",
"test-db-server": "cross-env NODE_ENV=postman-test nodemon -r dotenv/config ./bin/www.js",
"test": "cross-env NODE_ENV=test node -r dotenv/config --experimental-vm-modules node_modules/jest/bin/jest.js",
"db:deploy": "node ./db/scripts/users/createTable.js && node ./db/scripts/users/populateTable.js",
"db:deleteAllTables": "node -r dotenv/config ./db/scripts/deleteAllTables.js",
"db:setup-test-db": "cross-env-shell NODE_ENV=test \"npm run db:createalltables && npm run db:populateAllTables\"",
"db:reset-test-db": "cross-env NODE_ENV=test node -r dotenv/config ./db/scripts/truncateTables.js",
"db:createusers": "node -r dotenv/config ./db/scripts/users/createTable.js",
"db:populateusers": "node -r dotenv/config ./db/scripts/users/populateTable.js",
"db:createlocations": "node -r dotenv/config ./db/scripts/locations/createTable.js",
"db:populatelocations": "node -r dotenv/config ./db/scripts/locations/populateTable.js",
"db:createparticipants": "node -r dotenv/config ./db/scripts/participants/createTable.js",
"db:createactivities": "node -r dotenv/config ./db/scripts/activities/createTable.js",
"db:populateactivities": "node -r dotenv/config ./db/scripts/activities/populateTable.js",
"db:createalltables": "npm run db:createusers && npm run db:createactivities && npm run db:createparticipants",
"db:populateAllTables": "npm run db:populateusers && npm run db:populateactivities"
},
"dependencies": {
"cookie-parser": "~1.4.4",
"cors": "^2.8.5",
"debug": "~2.6.9",
"express": "~4.16.1",
"morgan": "~1.9.1",
"pg": "^8.7.1"
},
"devDependencies": {
"cross-env": "^7.0.3",
"dotenv": "^10.0.0",
"jest": "^27.4.5",
"nodemon": "^2.0.15",
"supertest": "^6.1.6"
}
}