-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathpackage.json
136 lines (136 loc) · 6.02 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
{
"name": "pg-beershop",
"engines": {
"node": "^20"
},
"version": "1.0.0",
"description": "Sample project to demonstrate the use of @cap-js/postgres",
"main": "index.js",
"scripts": {
"update": "run-p update:**",
"update:root": "npm update",
"update:app": "cd app && npm update",
"test": "jest",
"docker:start:pg": "docker-compose -f stack.yml up -d",
"docker:start:pg:11": "docker-compose -f stack-pg-11.yml up -d",
"deploy:pg": "cds deploy --profile pg",
"deploy:pg:model-only": "cds deploy --profile pg --model-only",
"deploy:pg:data:delta": "cds deploy --profile pg --model-only",
"deploy:pg:data:full": "npx cds-dbm load --via full",
"docker:run:db": "docker run --env-file .env --name pg-beershop-db --network='pg-beershop_default' -t gregorwolf/pg-beershop-db:latest node_modules/@sap/cds/lib/dbs/cds-deploy.js",
"docker:run:db:debug": "docker run --env-file .env --name pg-beershop-db --network='pg-beershop_default' --entrypoint=sh -it gregorwolf/pg-beershop-db:latest",
"docker:run:srv": "docker run --env-file .env --name pg-beershop --network='pg-beershop_default' -p 4004:4004 -t gregorwolf/pg-beershop:latest",
"docker:start:ui": "docker run --name pg-beershop-ui --network='pg-beershop_default' -p 5000:5000 -t gregorwolf/pg-beershop-ui:latest",
"docker:start:srv": "docker start -ai pg-beershop",
"docker:shell": "docker exec -it pg-beershop /bin/bash",
"start": "cds-serve",
"start:app": "cds bind --exec -- npm start --prefix app --profile hybrid",
"start:sqlite": "cds watch --profile sqlite",
"start:issue": "run-s deploy:pg start:cds",
"start:cds": "cds run",
"docker:stop:pg": "docker-compose -f stack.yml down",
"docker:stop:pg:11": "docker-compose -f stack-pg-11.yml down",
"bind:uaa": "cds bind uaa --to pg-beershop-uaa --kind xsuaa --profile hybrid",
"build": "cds build --production",
"build:db": "./pg-build.sh",
"build:cf": "mbt build",
"build:ElasticBeanstalk": "run-s build build:zipsrv",
"build:zipsrv": "cd gen/srv && zip -r ../srv.zip .",
"build:docker": "run-s build build:db build:docker:db build:docker:srv build:docker:ui",
"build:docker:db": "docker build -t gregorwolf/pg-beershop-db:latest -f db-deployer-kubernetes/Dockerfile .",
"build:docker:srv": "docker build -t gregorwolf/pg-beershop:latest .",
"build:docker:ui": "docker build -t gregorwolf/pg-beershop-ui:latest app",
"pack": "npm run-s build pack:db",
"pack:db": "pack build gregorwolf/pg-beershop-db:latest --path gen/pg --buildpack gcr.io/paketo-buildpacks/nodejs --builder paketobuildpacks/builder:base --env BP_NODE_RUN_SCRIPTS=",
"push:docker": "run-s push:docker:db push:docker:srv push:docker:ui",
"push:docker:db": "docker push gregorwolf/pg-beershop-db:latest",
"push:docker:srv": "docker push gregorwolf/pg-beershop:latest",
"push:docker:ui": "docker push gregorwolf/pg-beershop-ui:latest",
"compile:tosql": "cds c srv -2 sql > beershop-cds.sql && node cdssql2pgsql.js > beershop.sql",
"create-service:pg:dbms": "cf create-service azure-postgresql-9-6-dbms basic azure-postgresql -c azure-pg-dbms.json",
"create-service:pg:db": "cf create-service azure-postgresql-9-6-database database beershop-database -c azure-pg-db.json",
"xsuaa:build": "cds compile srv/ --to xsuaa > xs-security.json",
"xsuaa:create": "cf create-service xsuaa application pg-beershop-uaa -c xs-security.json",
"xsuaa:update": "cf update-service pg-beershop-uaa -c xs-security.json",
"xsuaa:create:key": " cf create-service-key pg-beershop-uaa pg-beershop-uaa-key",
"xsuaa:download:key": "cf service-key pg-beershop-uaa pg-beershop-uaa-key",
"deploy:cf": "cf deploy mta_archives/pg-beershop_1.0.0.mtar --retries 0",
"deploy:cf:bg": "cf bg-deploy mta_archives/pg-beershop_1.0.0.mtar -f --no-confirm",
"deploy:cf:adminer": "cf deploy mta_archives/pg-beershop_1.0.0.mtar -m pg-beershop-adminer --retries 0",
"deploy:cf:db": "cf deploy mta_archives/pg-beershop_1.0.0.mtar -m pg-beershop-db-deployer --retries 0",
"deploy:cf:srv": "cf deploy mta_archives/pg-beershop_1.0.0.mtar -m pg-beershop-srv --retries 0",
"deploy:cf:app": "cf deploy mta_archives/pg-beershop_1.0.0.mtar -m pg-beershop-app --retries 0",
"deploy:cf:update": "cf deploy mta_archives/pg-beershop_1.0.0.mtar -e update.mtaext --retries 0",
"test:db": "node test/test-db.js",
"undeploy:cf": "cf undeploy pg-beershop --delete-service-keys --delete-services --delete-service-brokers",
"copy:db:gen": "copyfiles -u 2 -a ./gen/db/* ./gen/db/**/* gen/db-with-express",
"heroku-postbuild": "echo heroku postbuild skipped"
},
"repository": {
"type": "git",
"url": "git+https://github.com/gregorwolf/pg-beershop.git"
},
"keywords": [],
"author": "Gregor Wolf",
"license": "derived Beer-Ware",
"dependencies": {
"@cap-js-community/odata-v2-adapter": "^1",
"@cap-js/postgres": "^1",
"@sap/audit-logging": "^5",
"@sap/cds": "^7",
"@sap/xsenv": "^4",
"@sap/xssec": "^3",
"applicationinsights": "^2",
"copyfiles": "^2",
"express": "^4",
"passport": "^0",
"pg": "^8"
},
"devDependencies": {
"@sap/cds-dk": "^7",
"@sap/ux-specification": "^1",
"cds-launchpad-plugin": "^2",
"chai": "^4",
"chai-as-promised": "^7",
"chai-subset": "^1",
"dotenv": "^16.3.1",
"jest": "^29",
"mbt": "^1",
"npm-run-all": "^4",
"sqlite3": "^5.1.6"
},
"cds": {
"features": {},
"cov2ap": {
"plugin": true
},
"requires": {
"kinds": {
"sql": {
"[kyma]": {
"kind": "postgres"
}
}
},
"auth": {
"kind": "mocked",
"[heroku]": {
"impl": "./heroku/mock-auth-handler.js"
},
"[kyma]": {
"kind": "mocked"
},
"[production]": {
"kind": "xsuaa"
}
}
}
},
"sapux": [
"app/Beers-display",
"app/beers-manage",
"app/Breweries-manage",
"app/breweries-manage-v2",
"app/TypeChecksWithDraft-manage"
]
}