Merge pull request #17 from SAP-samples/cleanup
cleaned up start scripts
This commit is contained in:
29
.vscode/launch.json
vendored
29
.vscode/launch.json
vendored
@@ -5,19 +5,19 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "cds run",
|
"name": "bookshop", "request": "launch",
|
||||||
"request": "launch",
|
"type": "node", "runtimeExecutable": "npx", "runtimeArgs": [ "-n", "--" ],
|
||||||
"type": "node",
|
"args": [ "cds", "run", "--in-memory" ],
|
||||||
"runtimeExecutable": "npx",
|
"cwd": "${workspaceFolder}/packages/bookshop",
|
||||||
"runtimeArgs": ["-n"],
|
"console": "integratedTerminal",
|
||||||
"args": ["--", "cds", "run", "--with-mocks", "--in-memory?"], // the leading "--" arg ensures it works with as well as without debugging
|
"skipFiles": ["<node_internals>/**"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "cds run ...", "request": "launch",
|
||||||
|
"type": "node", "runtimeExecutable": "npx", "runtimeArgs": [ "-n", "--" ],
|
||||||
|
"args": [ "cds", "run", "--with-mocks", "--in-memory?" ],
|
||||||
"cwd": "${workspaceFolder}/packages/${input:service}",
|
"cwd": "${workspaceFolder}/packages/${input:service}",
|
||||||
"console": "integratedTerminal",
|
"console": "integratedTerminal",
|
||||||
"serverReadyAction": {
|
|
||||||
"pattern": "server listening on (https?://\\S+|[0-9]+)",
|
|
||||||
"uriFormat": "http://localhost:%s",
|
|
||||||
"action": "openExternally"
|
|
||||||
},
|
|
||||||
"skipFiles": ["<node_internals>/**"]
|
"skipFiles": ["<node_internals>/**"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -31,12 +31,9 @@
|
|||||||
"bookstore",
|
"bookstore",
|
||||||
"media-server",
|
"media-server",
|
||||||
"office-supplies",
|
"office-supplies",
|
||||||
"orders-service",
|
"reviews-service"
|
||||||
"products-service",
|
|
||||||
"reviews-service",
|
|
||||||
"user-service"
|
|
||||||
],
|
],
|
||||||
"default": "bookstore"
|
"default": "bookshop"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
21
.vscode/tasks.json
vendored
21
.vscode/tasks.json
vendored
@@ -4,23 +4,14 @@
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"type": "shell", "label": "cds run bookshop",
|
"type": "npm", "script": "watch", "path": "packages/bookshop/",
|
||||||
"command": "npx", "args": [ "cds", "watch", "packages/bookshop" ],
|
"options": { "env": { "PORT": "4004" }},
|
||||||
"presentation": { "group": "A" },
|
"presentation": { "group": "A" }
|
||||||
"problemMatcher": []
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "shell", "label": "cds run bookshop-enhanced",
|
"type": "npm", "script": "watch", "path": "packages/reviews-service/",
|
||||||
"command": "npx", "args": [ "cds", "watch", "packages/bookshop-enhanced" ],
|
"options": { "env": { "PORT": "5005" }},
|
||||||
"presentation": { "group": "A" },
|
"presentation": { "group": "A" }
|
||||||
"problemMatcher": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "shell", "label": "cds run reviews-service",
|
|
||||||
"command": "npx", "args": [ "cds", "watch", "packages/reviews-service" ],
|
|
||||||
"options": {"env": { "PORT":"5005" }},
|
|
||||||
"presentation": { "group": "A" },
|
|
||||||
"problemMatcher": []
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
12
package.json
12
package.json
@@ -5,15 +5,13 @@
|
|||||||
"author": "daniel.hutzel@sap.com",
|
"author": "daniel.hutzel@sap.com",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"cleanup": "lerna clean -y && rm -fr node_modules",
|
|
||||||
"install": "(npm -s run lerna) && lerna bootstrap --hoist",
|
|
||||||
"lerna": "npx --no-install lerna -v > /dev/null || npm i lerna --no-save",
|
"lerna": "npx --no-install lerna -v > /dev/null || npm i lerna --no-save",
|
||||||
"test": "jest",
|
"install": "(npm -s run lerna) && lerna bootstrap --hoist",
|
||||||
"bookshop-enhanced": "cds watch packages/bookshop-enhanced",
|
"cleanup": "lerna clean -y && rm -fr node_modules",
|
||||||
"bookshop": "cds watch packages/bookshop",
|
"bookshop": "cds watch packages/bookshop",
|
||||||
"bookstore": "cds watch packages/bookstore",
|
"bookshop-enhanced": "cds watch packages/bookshop-enhanced",
|
||||||
"products-service": "cds watch packages/products-service",
|
"reviews-service": "cds watch packages/reviews-service",
|
||||||
"reviews-service": "cds watch packages/reviews-service"
|
"bookstore": "cds watch packages/bookstore"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sap/cds": "latest",
|
"@sap/cds": "latest",
|
||||||
|
|||||||
@@ -11,7 +11,9 @@
|
|||||||
"express": "*"
|
"express": "*"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "npx cds run"
|
"reviews-service": "PORT=5005 cds run ../reviews-service --bind --in-memory?",
|
||||||
|
"start": "cds run --in-memory?",
|
||||||
|
"watch": "cds watch"
|
||||||
},
|
},
|
||||||
"cds": {
|
"cds": {
|
||||||
"requires": {
|
"requires": {
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
"express": "*"
|
"express": "*"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "npx cds run"
|
"start": "cds run --in-memory?",
|
||||||
|
"watch": "cds watch"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,8 @@
|
|||||||
"app", "srv", "db"
|
"app", "srv", "db"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "cds run"
|
"start": "cds run --in-memory?",
|
||||||
|
"watch": "cds watch"
|
||||||
},
|
},
|
||||||
"cds": {
|
"cds": {
|
||||||
"requires": {
|
"requires": {
|
||||||
|
|||||||
@@ -8,6 +8,10 @@
|
|||||||
"@sap/cds": "latest",
|
"@sap/cds": "latest",
|
||||||
"express": "*"
|
"express": "*"
|
||||||
},
|
},
|
||||||
|
"scripts": {
|
||||||
|
"start": "cds run --in-memory?",
|
||||||
|
"watch": "cds watch"
|
||||||
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"db",
|
"db",
|
||||||
"srv",
|
"srv",
|
||||||
|
|||||||
Reference in New Issue
Block a user