-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample-library-native-app-nodejs.native-app
More file actions
87 lines (87 loc) · 2.99 KB
/
sample-library-native-app-nodejs.native-app
File metadata and controls
87 lines (87 loc) · 2.99 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
{
"id": "sample-library-native-app-nodejs",
"name": "sample-library-native-app-nodejs",
"description": "Sample library REST service (Fastify + Zod) exposed as a Dirigible-managed local native application.",
"basePath": "library-native-app-nodejs",
"type": "local",
"config": {
"defaultPort": 8080,
"lifecycle": {
"start": {
"mode": "lazy",
"commands": [
{
"os": "mac",
"executable": "sh",
"dir": "sample-library-native-app-nodejs",
"arguments": [
{ "name": "-c", "value": "npm install --silent --no-audit --no-fund && exec npm run build:start -- \"$@\"" },
{ "name": "sample-library-native-app-nodejs", "value": "" },
{ "name": "--library-address", "value": "42 Wallaby Way, Sydney" },
{ "name": "--library-phone", "value": "+61-2-9999-0042" }
]
},
{
"os": "linux",
"executable": "sh",
"dir": "sample-library-native-app-nodejs",
"arguments": [
{ "name": "-c", "value": "npm install --silent --no-audit --no-fund && exec npm run build:start -- \"$@\"" },
{ "name": "sample-library-native-app-nodejs", "value": "" },
{ "name": "--library-address", "value": "42 Wallaby Way, Sydney" },
{ "name": "--library-phone", "value": "+61-2-9999-0042" }
]
},
{
"os": "windows",
"executable": "cmd.exe",
"dir": "sample-library-native-app-nodejs",
"arguments": [
{ "name": "/c", "value": "npm install --silent --no-audit --no-fund && npm run build:start -- --library-address=\"42 Wallaby Way, Sydney\" --library-phone=\"+61-2-9999-0042\"" }
]
}
]
},
"stop": {
"commands": [
{
"os": "mac",
"executable": "sh",
"dir": "sample-library-native-app-nodejs",
"arguments": [
{ "name": "-c", "value": "PORT=\"$DIRIGIBLE_NATIVE_APP_PORT\" npm stop" }
]
},
{
"os": "linux",
"executable": "sh",
"dir": "sample-library-native-app-nodejs",
"arguments": [
{ "name": "-c", "value": "PORT=\"$DIRIGIBLE_NATIVE_APP_PORT\" npm stop" }
]
},
{
"os": "windows",
"executable": "cmd.exe",
"dir": "sample-library-native-app-nodejs",
"arguments": [
{ "name": "/c", "value": "set \"PORT=%DIRIGIBLE_NATIVE_APP_PORT%\" && npm run stop:win" }
]
}
]
}
},
"security": {
"authentication": {
"type": "basic",
"credentials": {
"user": "${SAMPLE_APP_USER}.{admin}",
"password": "${SAMPLE_APP_PASS}.{admin}"
}
},
"exposedPaths": [
{ "path": "/rest/api/v1", "scopes": ["library-admin"] }
]
}
}
}