This repository has been archived by the owner on Oct 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
52 lines (52 loc) · 2.23 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
{
"name": "lb4-ng-example",
"version": "1.0.0",
"description": "An example combining Loopback 4 /w Angular",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"setup:server": "cd server && npm i",
"setup:client": "cd client && npm i",
"setup:db": "sh ./bin/setup.sh && node server/dist/migrate",
"setup": "npm i && npm run setup:server && npm run setup:client && npm run setup:db",
"clean": "npx rimraf server/dist",
"prewatch:client": "npx rimraf server/public",
"watch:client": "cd client && start /min ng build --watch --output-path ../server/public",
"watch:server": "start /min npm run --prefix server build:watch",
"predev": "npm run clean",
"dev": "npx concurrently --success first --kill-others \"npm run watch:client\" \"npx wait-on -d 3000 server/public && npm run watch:server\" \"npx wait-on server/dist && cd server && npx nodemon --watch dist index.js\" ",
"prebuild:client": "npx rimraf server/public",
"build:client": "cd client && ng build --prod --output-path ../server/public",
"build:server": "npm run --prefix server build",
"prebuild": "npm run clean",
"build": "npm run build:client && npm run build:server",
"start:db": "docker start POSTGRES_LB4NGEX",
"start:server": "npm run --prefix server start",
"build:api": "npx openapi-generator generate -i http://127.0.0.1:3000/api/openapi.json -g typescript-angular -o client/src/app/api",
"pregen:apimodule": "npx rimraf client/src/app/api",
"gen:apimodule": "npx concurrently --success first --kill-others \"npm run start:server\" \"npx wait-on http://127.0.0.1:3000/api/openapi.json && npm run build:api\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/dougal83/lb4-ng-example.git"
},
"keywords": [
"Loopback",
"lb4",
"Angular",
"ng"
],
"author": "dougal83",
"license": "MIT",
"bugs": {
"url": "https://github.com/dougal83/lb4-ng-example/issues"
},
"homepage": "https://github.com/dougal83/lb4-ng-example#readme",
"devDependencies": {
"@openapitools/openapi-generator-cli": "0.0.11-4.0.0-beta3",
"concurrently": "^4.1.0",
"nodemon": "^1.19.1",
"rimraf": "^2.6.3",
"wait-on": "^3.2.0"
}
}