-
Notifications
You must be signed in to change notification settings - Fork 75
/
package.json
104 lines (104 loc) · 5.1 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
{
"name": "cve-services",
"author": "Automation Working Group",
"version": "2.3.1",
"license": "(CC0)",
"devDependencies": {
"@faker-js/faker": "^7.6.0",
"apidoc": "^0.53.1",
"chai": "^4.2.0",
"chai-arrays": "^2.0.0",
"chai-http": "^4.3.0",
"chai-like": "^1.1.1",
"chai-string": "^1.5.0",
"chai-things": "^0.2.0",
"chai-uuid": "^1.0.6",
"depcheck": "^1.4.7",
"eslint": "^8.20.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-mocha": "^8.0.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"mocha": "^10.1.0",
"nyc": "^15.1.0",
"sinon": "^15.0.4",
"standard": "^16.0.3"
},
"dependencies": {
"ajv": "^8.6.2",
"ajv-formats": "^2.1.1",
"argon2": "^0.29",
"config": "^3.3.6",
"cors": "^2.8.5",
"crypto-random-string": "^3.3.1",
"dotenv": "^5.0.1",
"express": "^4.21.0",
"express-jsonschema": "^1.1.6",
"express-rate-limit": "^6.5.2",
"express-validator": "^6.14.2",
"helmet": "^7.0.0",
"jsonschema": "^1.4.0",
"JSONStream": "^1.3.5",
"kleur": "^4.1.4",
"lodash": "^4.17.21",
"luxon": "^3.4.4",
"mongo-cursor-pagination": "^8.1.3",
"mongoose": "^5.13.20",
"mongoose-aggregate-paginate-v2": "1.0.6",
"morgan": "^1.9.1",
"node-dev": "^7.4.3",
"prompt-sync": "^4.2.0",
"replace-in-file": "6.3.5",
"replace-json-property": "^1.8.0",
"swagger-autogen": "^2.19.0",
"swagger-ui-express": "^4.3.0",
"uuid": "^8.3.2",
"validator": ">=13.7.0",
"winston": "^3.2.1",
"yamljs": "^0.3.0"
},
"apidoc": {
"name": "CVE-Services",
"version": "0.0.0",
"description": "Some Future Description",
"title": "CVE API Services"
},
"nyc": {
"exclude": "test-utils/"
},
"scripts": {
"action:test": "node node_modules/mocha/bin/mocha test/unit-tests --recursive --exit",
"action:coverage": "NODE_ENV=test node node_modules/nyc/bin/nyc.js --lines=80 node_modules/mocha/bin/mocha.js src/* --recursive --exit",
"action:lint-src": "node node_modules/eslint/bin/eslint.js src/",
"action:lint-test": "node node_modules/eslint/bin/eslint.js test/",
"action:lint-test-utils": "node node_modules/eslint/bin/eslint.js test-utils/",
"clean": "node node_modules/depcheck/bin/depcheck.js",
"lint:src": "node node_modules/eslint/bin/eslint.js src/ --fix",
"lint:test": "node node_modules/eslint/bin/eslint.js test/ --fix",
"lint:test-utils": "node node_modules/eslint/bin/eslint.js test-utils/ --fix",
"populate:dev": "NODE_ENV=development node-dev src/scripts/populate.js",
"populate:test": "NODE_ENV=test node-dev src/scripts/populate.js",
"populate:stage": "NODE_ENV=staging node src/scripts/populate.js",
"populate:int": "NODE_ENV=integration node src/scripts/populate.js",
"populate:prd": "NODE_ENV=production node src/scripts/populate.js",
"populate-cve:dev": "NODE_ENV=development node-dev src/scripts/populate-cve.js",
"populate-cve:stage": "NODE_ENV=staging node src/scripts/populate-cve.js",
"populate-cve:int": "NODE_ENV=integration node src/scripts/populate-cve.js",
"populate-cve:prd": "NODE_ENV=production node src/scripts/populate-cve.js",
"start:dev": "node src/swagger.js && TZ=utc NODE_ENV=development node src/scripts/updateOpenapiHost.js && TZ=utc NODE_ENV=development node-dev src/index.js",
"dev": "node src/swagger.js && TZ=utc NODE_ENV=development node src/scripts/updateOpenapiHost.js && TZ=utc NODE_ENV=development node-dev src/index.js",
"start:stage": "node src/swagger.js && NODE_ENV=staging node src/scripts/updateOpenapiHost.js && NODE_ENV=staging node src/index.js",
"start:int": "node src/swagger.js && NODE_ENV=integration node src/scripts/updateOpenapiHost.js && NODE_ENV=integration node src/index.js",
"start:prdstg": "node src/swagger.js && NODE_ENV=production node src/scripts/updateOpenapiHost.js && NODE_ENV=production node src/index.js",
"start:prd": "node src/swagger.js && NODE_ENV=production node src/scripts/updateOpenapiHost.js && NODE_ENV=production node src/index.js",
"swagger-autogen": "node src/swagger.js",
"test": "NODE_ENV=test mocha --recursive --exit || true",
"test:integration": "NODE_ENV=test node-dev src/scripts/populate.js y; NODE_ENV=test mocha test/integration-tests --recursive --exit",
"test:unit-tests": "NODE_ENV=test mocha test/unit-tests --recursive --exit || true",
"test:coverage": "NODE_ENV=test nyc --reporter=text mocha src/* --recursive --exit || true",
"test:coverage-html": "NODE_ENV=test nyc --reporter=html mocha src/* --recursive --exit || true",
"test:scripts": "NODE_ENV=development node-dev src/scripts/templateScript.js"
}
}