forked from aicore/template-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
74 lines (74 loc) · 2.96 KB
/
package.json
File metadata and controls
74 lines (74 loc) · 2.96 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"name": "@aicore/template-nodejs",
"version": "1.0.8",
"description": "Template for nodejs with unit gulp build, test, coverage, code guardian, github and Other defaults",
"main": "src/index.js",
"type": "module",
"keywords": [
"template",
"nodejs",
"unit",
"testing",
"mocha",
"chai",
"coverage"
],
"scripts": {
"eslint": "npm run lint",
"eslint:fix": "npm run lint:fix",
"lint": "eslint --quiet src test",
"lint:fix": "eslint --quiet --fix src test",
"prepare": "test -d node_modules/husky && husky install || echo \"husky is not installed\"",
"test": "npm run test:unit && npm run test:integ",
"test:unit": "APP_CONFIG=./test/unit/utils/.app.json mocha test/unit/*.spec.js test/unit/**/*.spec.js test/unit/**/*.spec.js test/unit/**/**/*.spec.js --timeout=3000",
"setupIntegTestConfig": "node ./test/integration/setupTestConfig.js",
"test:integ": "npm run setupIntegTestConfig && APP_CONFIG=./src/testConfig.json mocha test/integration/*.spec.js test/integration/**/*.spec.js --timeout=3000",
"printReportsLink": "echo Detailed unit test coverage report: file:///$(pwd)/coverage-unit/index.html && echo Detailed integration test coverage report: file:///$(pwd)/coverage-integration/index.html",
"cover": "npm run cover:unit",
"cover:unit": "c8 -c .nycrc.unit.json npm run test:unit && npm run --silent printReportsLink",
"vulnerabilityCheck": "echo Scanning for npm vulnarabilities && npm audit --prod",
"build": "npm run cover && npm run createJSDocs && npm run vulnerabilityCheck && npm run generateGrafanaDashboard",
"createJSDocs": "node build/jsDocGenerate.js src docs/generatedApiDocs && git add docs",
"bumpPatchVersion": "npm --no-git-tag-version version patch",
"bumpPatchVersionWithGitTag": "npm version patch",
"release": "npm run bumpPatchVersionWithGitTag",
"generateGrafanaDashboard": "node build/generate-grafana-system-dashboard.js",
"serve": "APP_CONFIG=./src/app.json node src/index.js",
"serve:dev": "APP_CONFIG=./src/app.json nodemon src/index.js"
},
"files": [
"src"
],
"repository": {
"type": "git",
"url": "git+https://github.com/aicore/template-nodejs.git"
},
"author": "Arun, core.ai",
"license": "AGPL-3.0-or-later",
"bugs": {
"url": "https://github.com/aicore/template-nodejs/issues"
},
"homepage": "https://github.com/aicore/template-nodejs#readme",
"devDependencies": {
"@commitlint/cli": "19.7.1",
"@commitlint/config-conventional": "19.7.1",
"c8": "10.1.3",
"chai": "5.1.2",
"cli-color": "2.0.4",
"documentation": "^6.2.0",
"eslint": "^9.38.0",
"glob": "11.1.0",
"husky": "9.1.7",
"mocha": "11.1.0",
"nodemon": "3.1.9"
},
"dependencies": {
"@aicore/libcommonutils": "1.0.20",
"@elastic/ecs-pino-format": "^1.5.0",
"@fastify/compress": "^8.0.1",
"@fastify/static": "8.1.0",
"fastify": "^5.6.1",
"node-fetch": "3.3.2",
"pino-pretty": "^11.0.0"
}
}