-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
executable file
·58 lines (58 loc) · 2.49 KB
/
package.json
File metadata and controls
executable file
·58 lines (58 loc) · 2.49 KB
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
{
"name": "smsc",
"version": "0.0.4",
"dependencies": {
"cookie-parser": "^1.4.6",
"dotenv": "^16.3.1",
"ejs": "^3.1.9",
"express": "^4.18.2",
"morgan": "^1.10.0",
"pg": "^8.11.0",
"pg-promise": "^11.5.0",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.0"
},
"devDependencies": {
"@cucumber/cucumber": "^9.2.0",
"c8": "^8.0.0",
"chai": "^4.3.7",
"chai-http": "^4.4.0",
"jsdoc": "^4.0.2",
"mocha": "^10.2.0",
"nodemon": "^2.0.22",
"nyc": "^15.1.0",
"pactum": "^3.4.1"
},
"scripts": {
"buildDocker": "docker build --tag smsc_server . && docker images | head -n 2",
"buildDockerObsolete": "docker build --tag csci3308registry.azurecr.io/smsc_server . && docker images | head -n 2",
"createDB": "psql --host=localhost --port=5432 --username=postgres --command='create database smsc;'",
"cuke": "cp environments/.env.bdd.deploy.test ./.env && cucumber-js --config config/cucumber.yaml",
"loadDB": "cd db && /Applications/flyway-9.20.0/flyway migrate && cd -",
"setEnv": "cp environments/.env.smsc.local ./.env && cat .env",
"sLab": "nodemon src/main/nodeRestPostgresLab/index.js",
"start": "echo 'Copying proper .env file...' && cp environments/.env.smsc.local ./.env && nodemon index.js",
"startAzure": "node index.js",
"startWithAzureDB": "echo 'Copying proper .env file...' && cp environments/.env.smsc.local.azuredb ./.env && nodemon index.js",
"startDB": "docker run -it --rm --env POSTGRES_PASSWORD=password postgres",
"test": "cp environments/.env.build.test ./.env && mocha --exit --recursive ./tests/unit",
"testWithIntegration": "cp environments/.env.build.test ./.env && mocha --exit --recursive ./tests/unit ./tests/integration",
"testWithCoverage": "cp environments/.env.build.test ./.env && nyc npm run test",
"testw": "mocha --exit --recursive ./tests/unit ./tests/integration --watch ./modules",
"testwp": "mocha ./tests/unit/primeFactors.spec.js --watch ./modules/ ./tests/unit/primeFactors.spec.js",
"setLabEnv": "cp environments/.env.nodeRestPostgres ./.env && cat .env"
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"singleQuote": true
},
"nyc": {
"all": true,
"reporter": [
"html",
"text"
]
}
}