-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage.json
120 lines (120 loc) · 4.38 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"name": "cloud-sdk-team-calendar-app",
"version": "1.0.0",
"description": "Team Calender app using the SAP Cloud SDK and CAP",
"main": "src/index.ts",
"scripts": {
"lint": "eslint . && prettier . -c",
"lint:fix": "eslint . --fix && prettier . -w",
"clean": "rm -f package-lock.json && find . -name \"node_modules\" -exec rm -rf '{}' + && find db/src -name \"gen\" -exec rm -rf '{}' + && find . -name \"sqlite.db\" -exec rm -rf '{}' + && npm i",
"init": "npm i && node initialize.js",
"preinstall": "rm -rf node_modules/@sap/cds-services",
"local-data": "ts-node ./scripts/generate-local-data.ts",
"cds-build": "npm run local-data && npx cds build/all --clean",
"cds-deploy": "npm run local-data && npx cds deploy --to sqlite",
"cds-watch": "npx cds watch",
"generate": "npx generate-odata-client -c generator-config.json",
"test": "nyc mocha -r ts-node/register -r dotenv/config --exit test/**/*.spec.ts",
"test:debug": "npx mocha --inspect-brk -r ts-node/register -r dotenv/config --exit test/**/*.spec.ts",
"start:local": "npx ts-node -r dotenv/config src/",
"watch:local": "nodemon -e ts -w ./src -x npm run serve-debug",
"serve-debug": "node -r ts-node/register -r dotenv/config --inspect src/index.ts",
"ci-build": "npx tsc && npm run cds-deploy && cp -r src/app db srv dist/",
"ci-package": "mkdir -p deployment/ && cp -r dist package.json package-lock.json index.html dist/db dist/srv db.sqlite deployment/",
"ci-backend-unit-test": "nyc --extension .ts --report-dir ./s4hana_pipeline/reports/coverage-reports/backend-unit/ --reporter cobertura mocha -r ts-node/register -r dotenv/config test/unit-tests/**/*.spec.ts test/unit-tests/*.spec.ts --reporter mocha-junit-reporter --reporter-options mochaFile=./s4hana_pipeline/reports/backend-unit/results.xml",
"ci-it-backend": "npm run cds-deploy && nyc --extension .ts --report-dir ./s4hana_pipeline/reports/coverage-reports/backend-integration/ --reporter cobertura mocha -r ts-node/register -r dotenv/config test/integration-tests/**/*.spec.ts --reporter mocha-junit-reporter --reporter-options mochaFile=./s4hana_pipeline/reports/backend-integration/results.xml",
"ci-lint": "npm run lint"
},
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@sap-cloud-sdk/eslint-config": "^2.9.0",
"@sap-cloud-sdk/generator": "^2.9.0",
"@types/chai": "^4.3.3",
"@types/express": "^4.17.14",
"@types/mocha": "^10.0.0",
"@types/sinon": "^10.0.13",
"@types/sinon-chai": "^3.2.8",
"@typescript-eslint/eslint-plugin": "^5.40.0",
"@typescript-eslint/parser": "^5.40.0",
"chai": "^4.3.6",
"chai-http": "^4.3.0",
"dotenv": "^16.0.3",
"eslint": "^8.25.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsdoc": "^39.3.6",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-regex": "^1.10.0",
"eslint-plugin-unused-imports": "^2.0.0",
"js-yaml": "^4.1.0",
"mocha": "^10.0.0",
"mocha-junit-reporter": "^2.1.0",
"node-mocks-http": "^1.11.0",
"nodemon": "^2.0.20",
"nyc": "^15.1.0",
"prettier": "^2.7.1",
"sinon": "^14.0.1",
"sinon-chai": "^3.7.0"
},
"dependencies": {
"@sap-cloud-sdk/odata-v2": "^2.9.0",
"@sap-cloud-sdk/util": "^2.9.0",
"@sap/cds": "^6.2.1",
"@sap/cds-dk": "^6.2.1",
"@sap/cds-services": "^1.27.2",
"@sap/hana-client": "^2.13.13",
"@sap/xssec": "^3.2.13",
"@types/mustache": "^4.2.1",
"bignumber.js": "^9.1.0",
"express": "^4.18.2",
"moment": "^2.29.4",
"mustache": "^4.2.0",
"passport": "^0.6.0",
"sqlite3": "^5.1.2",
"ts-node": "^10.9.1",
"typescript": "^4.8.4"
},
"engines": {
"node": "^16.0.0"
},
"cds": {
"build": {
"target": ".",
"tasks": [
{
"src": "db",
"for": "hana",
"options": {
"model": [
"db",
"srv"
]
}
},
{
"src": "srv",
"for": "node-cf",
"options": {
"model": [
"db",
"srv"
]
}
}
]
},
"requires": {
"db": {
"kind": "sqlite",
"credentials": {
"database": "db.sqlite"
}
},
"auth": {
"kind": "dummy-auth"
}
}
}
}