forked from gregorwolf/bookshop-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
197 lines (197 loc) · 6.42 KB
/
package.json
File metadata and controls
197 lines (197 loc) · 6.42 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
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
{
"name": "bookshop-demo",
"version": "1.0.0",
"description": "A simple bookshop application, build in a self-contained all-in-one fashion, i.e. w/o reusing other packages.",
"repository": "https://github.wdf.sap.corp/caps/bookshop.git",
"license": "ISC",
"engines": {
"node": "^14"
},
"files": [
"db",
"srv"
],
"dependencies": {
"@sap-cloud-sdk/core": "^1.54.0",
"@sap/cds": "5.9.2",
"@sap/cds-dk": "4.9.1",
"@sap/cds-odata-v2-adapter-proxy": "^1.8.14",
"@sap/jobs-client": "^1.6.3",
"@sap/logging": "^6.1.1",
"@sap/xsenv": "^3.2.2",
"@sap/xssec": "^3.2.13",
"cf-http-client": "^1.3.0",
"cmis": "^1.0.3",
"compression": "^1.7.4",
"express": "^4.17.3",
"hdb": "^0.19.1",
"helmet": "^5.0.2",
"mqtt": "^4.3.7",
"mysql": "^2.18.1",
"passport": "^0.5.2",
"sap-cf-mailer": "^0.0.5"
},
"devDependencies": {
"@openui5/ts-types": "^1.100.0",
"@sap/cds-lsp": "^5.5.7",
"cds-swagger-ui-express": "^0.4.0",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"chai-subset": "^1.6.0",
"copyfiles": "2.4.1",
"jest": "^27.5.1",
"npm-run-all": "^4.1.5",
"sqlite3": "^5.0.2",
"supertest": "^6.2.2"
},
"scripts": {
"setup": "run-s deploy build start",
"update": "run-p update:**",
"update:root": "npm update",
"update:app": "cd app && npm update",
"update:approuter": "cd approuter && npm update",
"update:standalone-v2-proxy": "cd standalone-v2-proxy && npm update",
"deploy": "cds deploy --to sqlite:db/bookshop.db --no-save",
"deploy:cf": "cf deploy mta_archives/bookshop-demo_0.0.1.mtar -e cf.mtaext",
"deploy:cf:ui": "cf deploy mta_archives/bookshop-demo_0.0.1.mtar -e cf.mtaext -m bookshop-demo-deployer",
"deploy:cf:srv": "cf deploy mta_archives/bookshop-demo_0.0.1.mtar -e cf.mtaext -m bookshop-demo-srv",
"deploy:cf:app": "cf deploy mta_archives/bookshop-demo_0.0.1.mtar -e cf.mtaext -m bookshop-demo-ui",
"deploy:cf-hana-cloud": "cf deploy mta_archives/bookshop-demo_0.0.1.mtar -e cf-hana-cloud.mtaext",
"deploy:cf-hana-cloud-job-standard": "cf deploy mta_archives/bookshop-demo_0.0.1.mtar -e cf-hana-cloud-job-standard.mtaext",
"deploy:hana": "cds deploy --to hana --vcap-file ./default-env.json --auto-undeploy",
"deploy:xsa": "xs deploy mta_archives/bookshop-demo_0.0.1.mtar",
"create:xsa:uaa": "xs create-service xsuaa space 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",
"build": "run-s build:clean build:copycsntoproxy",
"build:clean": "cds build/all --clean",
"build:xs-security": "cds compile srv/ --to xsuaa > xs-security.json",
"build:cf": "cp mta-cf.yaml mta.yaml && mbt build -p=cf && rm mta.yaml",
"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/",
"debug": "node --inspect node_modules/@sap/cds/bin/cds.js run",
"start": "cds run",
"start:hana": "NODE_ENV=dev-hana cds run",
"start:forExcel": "node srv/index.js",
"build:deploy:start": "run-s build deploy start",
"watch": "cds run --with-mocks --in-memory --watch",
"test": "jest",
"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"
},
"cds": {
"hana": {
"deploy-format": "hdbtable"
},
"requires": {
"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"
}
},
"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"
},
"db": {
"kind": "sqlite",
"model": [
"db",
"srv"
],
"credentials": {
"database": "db/bookshop.db"
}
}
},
"[dev-uaa]": {
"requires": {
"uaa": {
"kind": "xsuaa"
}
},
"auth": {
"passport": {
"strategy": "JWT"
}
}
},
"[dev-hana]": {
"requires": {
"db": {
"kind": "hana"
}
}
},
"[production]": {
"requires": {
"db": {
"kind": "hana"
},
"uaa": {
"kind": "xsuaa"
}
},
"auth": {
"passport": {
"strategy": "JWT"
}
}
},
"odata": {
"version": "v4"
}
}
}