-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
35 lines (35 loc) · 1.67 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
{
"private": true,
"name": "example-cap-server",
"version": "1.0.0",
"scripts": {
"start": "npm run serve",
"serve": "cds-serve",
"copy-library": "npx shx rm -rf node_modules/@cap-js-community/feature-toggle-library && npx shx mkdir -p node_modules/@cap-js-community/feature-toggle-library && npx shx cp -R ../package.json ../index.cds ../cds-plugin.js ../src node_modules/@cap-js-community/feature-toggle-library",
"build": "npm run build:cds && npm run build:deps && npm run build:copy-library",
"build:cds": "npx --package=@sap/[email protected] -- cds build --production",
"build:deps": "npm i --omit=dev --prefix=gen/srv",
"build:copy-library": "npx shx rm -rf gen/srv/node_modules/@cap-js-community/feature-toggle-library && npx shx mkdir -p gen/srv/node_modules/@cap-js-community/feature-toggle-library && npx shx cp -R ../package.json ../index.cds ../cds-plugin.js ../src gen/srv/node_modules/@cap-js-community/feature-toggle-library",
"deploy": "npm run build && cf push",
"cloc": "npx cloc --vcs=git --read-lang-def=../cloc.def .",
"reset-library-dependency": "sed -i '' 's/\"@cap-js-community\\/feature-toggle-library\": \".*\"/\"@cap-js-community\\/feature-toggle-library\": \"*\"/' package.json",
"upgrade": "npm up --save && npx shx rm -rf node_modules && npm i && npm run reset-library-dependency"
},
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@cap-js-community/feature-toggle-library": "*",
"@sap/cds": "^8.7.2",
"@sap/cds-mtxs": "^2.5.1",
"express": "^4.21.2"
},
"cds": {
"requires": {
"toggles": true
},
"featureToggles": {
"configFile": "./srv/feature/toggles.yaml"
}
}
}