-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
package.json
339 lines (339 loc) · 12.5 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
{
"name": "bookshop-demo",
"version": "1.1.2",
"description": "A simple bookshop application, build in a self-contained all-in-one fashion, i.e. w/o reusing other packages.",
"repository": "https://github.com/gregorwolf/bookshop-demo.git",
"license": "ISC",
"engines": {
"node": "^20"
},
"files": [
"db",
"srv"
],
"xdependencies": {
"@sap/xotel-agent-ext-js": "https://73555000100200018064.npmsrv.cdn.repositories.cloud.sap/@sap/xotel-agent-ext-js/-/xotel-agent-ext-js-1.5.9.tgz",
"@sap/fesr-to-otel-js": "https://73555000100200018064.npmsrv.cdn.repositories.cloud.sap/@sap/fesr-to-otel-js/-/fesr-to-otel-js-1.5.3.tgz"
},
"dependencies": {
"@cap-js-community/odata-v2-adapter": "^1",
"@cap-js/notifications": "^0.1.0",
"@sap-cloud-sdk/http-client": "^3",
"@sap-cloud-sdk/mail-client": "^3",
"@sap-cloud-sdk/util": "^3",
"@sap/cds": "^7",
"@sap/cds-common-content": "^1",
"@sap/cds-hana": "^2",
"@sap/jobs-client": "^1",
"@sap/logging": "^8",
"@sap/xsenv": "^5",
"@sap/xssec": "^4",
"async-retry": "^1",
"cf-http-client": "^1",
"cmis": "^1",
"compression": "^1",
"dotenv": "^16.3.1",
"express": "^4",
"form-data": "^4",
"helmet": "^8",
"mqtt": "^5",
"mysql": "^2",
"passport": "^0",
"qs": "^6.11.2",
"sap-cf-mailer": "^0"
},
"devDependencies": {
"@cap-js/sqlite": "^1",
"@openui5/ts-types": "^1.108.0",
"@sap-cloud-sdk/generator": "^3",
"@sap/cds-dk": "^7",
"@sap/datasphere-cli": "^2024",
"@sap/graph-toolkit": "^3",
"@sap/ux-specification": "^1.120.0",
"artillery": "^2.0.21",
"cds-swagger-ui-express": "^0",
"chai": "^4",
"chai-as-promised": "^7.1.1",
"chai-subset": "^1.6.0",
"copyfiles": "2.4.1",
"express-status-monitor": "^1.3.4",
"hana2cds": "^0",
"jest": "^29",
"json2fs": "^0.1.4",
"npm-run-all": "^4.1.5",
"response-time": "^2.3.2",
"sqlite3": "^5",
"supertest": "^6"
},
"scripts": {
"setup": "run-s deploy:sqlite:bookshop build start",
"setup:all": "run-s deploy:sqlite:** build start",
"update": "run-p update:**",
"update:root": "npm update",
"update:app": "cd app && npm update",
"update:app:item-pricing-cap-v2": "cd app/webapp/item-pricing-cap-v2 && npm update",
"update:app:item-pricing-for-key-date-cap": "cd app/webapp/item-pricing-for-key-date-cap && npm update",
"update:app:item-pricing-for-key-date-cap-v2": "cd app/webapp/item-pricing-for-key-date-cap-v2 && npm update",
"update:app:item-pricing-for-key-date-abap-v2": "cd app/webapp/item-pricing-for-key-date-abap-v2 && npm update",
"update:approuter": "cd approuter && npm update",
"update:broker": "cd broker && npm update",
"update:standalone-v2-proxy": "cd standalone-v2-proxy && npm update",
"deploy:sqlite:bookshop": "cds deploy --to sqlite:db/bookshop.db",
"deploy:sqlite:instance:1": "cds deploy --to sqlite:instance1.db --no-save",
"deploy:sqlite:instance:2": "cds deploy --to sqlite:instance2.db --no-save",
"deploy:cf": "cf deploy mta_archives/bookshop-demo_0.0.1.mtar -e cf.mtaext --retries 0",
"deploy:cf:trial": "cf deploy mta_archives/bookshop-demo_0.0.1.mtar -e cf-trial.mtaext --retries 0",
"deploy:cf:ui": "cf deploy mta_archives/bookshop-demo_0.0.1.mtar -e cf.mtaext -m bookshop-demo-deployer --retries 0",
"deploy:cf:srv": "cf deploy mta_archives/bookshop-demo_0.0.1.mtar -e cf.mtaext -m bookshop-demo-srv --retries 0",
"deploy:cf:app": "cf deploy mta_archives/bookshop-demo_0.0.1.mtar -e cf.mtaext -m bookshop-demo-ui --retries 0",
"deploy:cf-hana-cloud": "cf deploy mta_archives/bookshop-demo_0.0.1.mtar -e cf-hana-cloud.mtaext --retries 0",
"deploy:cf-hana-cloud-job-standard": "cf deploy mta_archives/bookshop-demo_0.0.1.mtar -e cf-hana-cloud-job-standard.mtaext --retries 0",
"deploy:hana": "cds deploy --to hana --auto-undeploy --profile hybrid",
"deploy:hana:instance:1": "cds deploy --to hana:bookshop-demo-db-instance1 --auto-undeploy --profile hybrid-instance1",
"deploy:hana:instance:2": "cds deploy --to hana:bookshop-demo-db-instance2 --auto-undeploy --profile hybrid-instance2",
"deploy:xsa:hana": "NODE_ENV=hybrid cds deploy --to hana --vcap-file ./default-env.json --auto-undeploy",
"deploy:xsa": "xs deploy mta_archives/bookshop-demo_0.0.1.mtar",
"bind:hana": "cds bind -2 bookshop-demo-db --profile hybrid",
"bind:uaa": "cds bind uaa --to bookshop-demo-uaa --kind xsuaa --profile hybrid",
"bind:keyuser": "cds bind keyuser --to bookshop-demo-ui5-flexibility-keyuser --kind ui5-flexibility-keyuser --profile hybrid",
"create:xsa:uaa": "xs create-service xsuaa broker bookshop-demo-uaa -c xs-security.json",
"create:uaa-service-key": "xs create-service-key bookshop-demo-uaa dev",
"get:uaa-service-key": "xs service-key bookshop-demo-uaa dev",
"create:cf-uaa-service-key": "cf create-service-key bookshop-demo-uaa dev",
"get:cf-uaa-service-key": "cf service-key bookshop-demo-uaa dev",
"create:hdi-shared": "xs create-service hana hdi-shared bookshop-demo-db-service",
"create:hdi-service-key": "xs create-service-key bookshop-demo-db-service dev",
"get:hdi-service-key": "xs service-key bookshop-demo-db-service dev",
"create:cf-hdi-service-key": "cf create-service-key bookshop-demo-db-service dev",
"get:cf-hdi-service-key": "cf service-key bookshop-demo-db-service dev",
"generate-odata-client:GWSAMPLE_BASIC": "generate-odata-client -i srv/external/GWSAMPLE_BASIC -o srv/cloud-sdk-clients --overwrite",
"generate-odata-client:PRODUCT_0002": "generate-odata-client -i srv/external/PRODUCT_0002 -o srv/cloud-sdk-clients --overwrite --verbose --skipValidation --optionsPerService -t",
"build": "run-s build:clean build:copycsntoproxy",
"build:clean": "cds build --clean",
"build:xs-security": "cds compile srv/ --to xsuaa > xs-security.json",
"build:cf": "cp mta-cf.yaml mta.yaml && mbt build -p=cf -e cf-service-broker-private.mtaext && rm mta.yaml && npm install",
"build:xsa": "cp mta-xsa.yaml mta.yaml && mbt build -p=xsa && rm mta.yaml",
"build:standalone": "cp mta-standAlone.yaml mta.yaml && mbt build -p=xsa && rm mta.yaml",
"build:copycsntoproxy": "copyfiles -f gen/srv/srv/csn.json standalone-v2-proxy/gen/",
"build:docker": "run-s build build:docker:image",
"build:docker:image": "docker build -t gregorwolf/bookshop-demo:latest .",
"push:docker": "docker push gregorwolf/bookshop-demo:latest",
"debug": "node --inspect node_modules/@sap/cds/bin/cds.js run",
"start:docker": "docker run --name bookshop-demo -d -p 4004:4004 gregorwolf/bookshop-demo:latest",
"start": "node ${NODE_ARGS} ./node_modules/@sap/cds/bin/cds-serve",
"start:app": "cds bind --exec -- npm run start-repo-mock --prefix app --profile hybrid",
"start:hana": "cds bind --exec -- cds run --profile hybrid",
"start:hybridboth": "run-p start:hybrid:**",
"start:hybrid:instance1": "cds watch --profile hybrid-instance1",
"start:hybrid:instance2": "cds watch --profile hybrid-instance2 --port 4005",
"start:uaa": "NODE_ENV=dev-uaa cds run",
"start:forExcel": "node srv/index.js",
"build:deploy:start": "run-s build deploy start",
"watch": "cds watch --with-mocks --in-memory",
"watch:instance1": "cds watch --profile instance1",
"watch:instance2": "cds watch --profile instance2 --port 4005",
"watchboth": "run-p watch:**",
"test": "jest --detectOpenHandles",
"test:hana": "CDS_ENV=hybrid cds bind --exec npm run test",
"test:load:catalog": "artillery run tests/app/catalog.yml",
"test:load:count-one": "artillery run --dotenv tests/app/.env tests/app/count-one.yml",
"test:load:count-all": "artillery run --dotenv tests/app/.env tests/app/count-all.yml",
"cf:uaa:update": "cf update-service bookshop-demo-uaa -c xs-security.json",
"undeploy:xsa": "xs undeploy bookshop-demo --delete-services --delete-service-brokers",
"undeploy:cf": "cf undeploy bookshop-demo --delete-service-keys --delete-services --delete-service-brokers",
"watch-uom-mapping": "cds watch --open uom-mapping/webapp/index.html?sap-ui-xx-viewCache=false"
},
"cds": {
"fiori": {
"draft_lock_timeout": 1,
"lean_draft": true,
"bypass_draft": true
},
"features": {
"xassert_integrity": "db",
"odata_new_parser": true
},
"cdsc": {
"variableReplacements": {
"$user": {
"directory": "A",
"version": 1
},
"$session": {
"version": "SESSION_CONTEXT('VERSION')"
}
}
},
"hana": {
"deploy-format": "hdbtable"
},
"requires": {
"destination": {
"kind": "rest",
"credentials": {
"destination": "bookshop-demo-destination",
"requestTimeout": 30000
}
},
"CMISdocumentRepository": {
"kind": "rest",
"credentials": {
"destination": "CMISdocumentRepository",
"requestTimeout": 30000
}
},
"GWSAMPLE_BASIC": {
"kind": "odata-v2",
"model": "srv/external/GWSAMPLE_BASIC",
"credentials": {
"destination": "ES5",
"requestTimeout": 30000,
"path": "/sap/opu/odata/iwbep/GWSAMPLE_BASIC"
}
},
"ZPDCDS_SRV": {
"kind": "odata-v2",
"model": "srv/external/ZPDCDS_SRV",
"credentials": {
"destination": "ES5",
"requestTimeout": 30000,
"path": "/sap/opu/odata/sap/ZPDCDS_SRV"
}
},
"ZSOCDS_SRV": {
"kind": "odata-v2",
"model": "srv/external/ZSOCDS_SRV",
"credentials": {
"destination": "ES5",
"requestTimeout": 30000,
"path": "/sap/opu/odata/sap/ZSOCDS_SRV"
}
},
"sac-dataimport": {
"kind": "rest",
"csrf": true,
"credentials": {
"destination": "sac",
"requestTimeout": 30000,
"path": "/api/v1/dataimport"
}
},
"Planned_Events_Sample": {
"kind": "odata",
"model": "srv/external/Planned_Events_Sample",
"credentials": {
"destination": "sac",
"requestTimeout": 30000,
"path": "/api/v1/dataexport/providers/sac/sap.epm.Planned_Events_Sample:Planned_Events_Sample"
}
},
"xsuaa-api": {
"kind": "rest",
"credentials": {
"destination": "bookshop-demo-uaa-apiaccess",
"requestTimeout": 30000
}
},
"CloudFoundryAPI": {
"kind": "rest",
"credentials": {
"destination": "CloudFoundryAPI",
"requestTimeout": 30000
}
},
"flow": {
"kind": "rest",
"credentials": {
"destination": "flow",
"requestTimeout": 30000
}
},
"API_CV_ATTACHMENT_SRV": {
"kind": "odata-v2",
"model": "srv/external/API_CV_ATTACHMENT_SRV",
"credentials": {
"destination": "S4H",
"requestTimeout": 30000,
"path": "/sap/opu/odata/sap/API_CV_ATTACHMENT_SRV"
}
},
"db": {
"model": [
"db",
"srv"
]
},
"db-ext": {
"[hybrid-instance1]": {
"model": [
"db-hana",
"srv-hana"
]
},
"[hybrid-instance2]": {
"model": [
"db-hana",
"srv-hana"
]
},
"[hybrid]": {
"model": [
"db-hana",
"srv-hana"
]
},
"[production]": {
"model": [
"db-hana",
"srv-hana"
]
}
},
"CV_ATTACHMENT_SRV": {
"kind": "odata-v2",
"model": "srv/external/CV_ATTACHMENT_SRV",
"credentials": {
"destination": "S4H",
"requestTimeout": 30000,
"path": "/sap/opu/odata/sap/CV_ATTACHMENT_SRV"
}
},
"ZAPI_USER_NAME_SRV": {
"kind": "odata-v2",
"model": "srv/external/ZAPI_USER_NAME_SRV",
"credentials": {
"destination": "SAP_ABAP_BACKEND",
"requestTimeout": 30000,
"path": "/sap/opu/odata/sap/ZAPI_USER_NAME_SRV"
}
}
},
"[dev-uaa]": {
"requires": {
"auth": {
"kind": "xsuaa"
}
}
},
"[hybrid]": {
"requires": {
"db": {
"kind": "hana"
}
}
},
"[production]": {
"requires": {
"auth": {
"kind": "xsuaa"
}
}
},
"odata": {
"version": "v4"
}
},
"sapux": [
"app/webapp/uom-mapping"
]
}