@bluealba/platform-cli 0.3.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2068 -457
- package/package.json +7 -6
- package/templates/bootstrap-service-template/Dockerfile +1 -1
- package/templates/bootstrap-service-template/Dockerfile.development +1 -1
- package/templates/bootstrap-service-template/README.md +1 -1
- package/templates/bootstrap-service-template/package.json +5 -5
- package/templates/customization-ui-module-template/package.json +3 -3
- package/templates/platform-init-template/{{{platformName}}-local → {{platformName}}-core/local}/platform-docker-compose.yml +6 -6
- package/templates/platform-init-template/{{{platformName}}-local → {{platformName}}-core/local}/{{platformName}}-core-docker-compose.yml +7 -7
- package/templates/react-ui-module-template/package.json +2 -2
- package/templates/react-ui-module-template/src/Icon.tsx +1 -1
- package/templates/platform-init-template/{{platformName}}-local/docker-compose.yml +0 -3
- package/templates/platform-init-template/{{platformName}}-local/package.json +0 -18
- package/templates/platform-init-template/{{platformName}}-local/scripts/build.sh +0 -18
- package/templates/platform-init-template/{{platformName}}-local/scripts/install.sh +0 -18
- /package/templates/platform-init-template/{{{platformName}}-local → {{platformName}}-core/local}/.env.example +0 -0
- /package/templates/platform-init-template/{{{platformName}}-local → {{platformName}}-core/local}/environment/pae-nestjs-gateway-service.env +0 -0
- /package/templates/platform-init-template/{{{platformName}}-local → {{platformName}}-core/local}/nginx.conf +0 -0
- /package/templates/platform-init-template/{{{platformName}}-local → {{platformName}}-core/local}/ssl/cert.pem +0 -0
- /package/templates/platform-init-template/{{{platformName}}-local → {{platformName}}-core/local}/ssl/key.pem +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluealba/platform-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Blue Alba Platform CLI",
|
|
5
5
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
6
6
|
"type": "module",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "tsup",
|
|
16
16
|
"dev": "tsup --watch",
|
|
17
|
-
"start": "node dist/index.js"
|
|
17
|
+
"start": "node dist/index.js",
|
|
18
|
+
"install-local": "bash scripts/install-local.sh"
|
|
18
19
|
},
|
|
19
20
|
"dependencies": {
|
|
20
21
|
"chalk": "^5.3.0",
|
|
@@ -27,13 +28,13 @@
|
|
|
27
28
|
"devDependencies": {
|
|
28
29
|
"@types/node": "^25.5.0",
|
|
29
30
|
"@types/react": "^19.0.0",
|
|
30
|
-
"tsup": "^8.0.0"
|
|
31
|
-
"typescript": "^5.0.0"
|
|
31
|
+
"tsup": "^8.0.0"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
|
34
|
-
"node": ">=
|
|
34
|
+
"node": ">=22"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
|
+
"@bluealba:registry": "https://registry.npmjs.org/",
|
|
37
38
|
"access": "public"
|
|
38
39
|
}
|
|
39
|
-
}
|
|
40
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@{{organizationName}}/{{
|
|
2
|
+
"name": "@{{organizationName}}/{{bootstrapServiceName}}",
|
|
3
3
|
"displayName": "{{platformTitle}} Bootstrap Service",
|
|
4
4
|
"version": "0.1.0",
|
|
5
5
|
"private": true,
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@bluealba/pae-bootstrap-lib": "3.
|
|
17
|
-
"@bluealba/pae-core": "5.
|
|
16
|
+
"@bluealba/pae-bootstrap-lib": "3.1.2",
|
|
17
|
+
"@bluealba/pae-core": "5.5.0",
|
|
18
18
|
"copyfiles": "^2.4.1",
|
|
19
19
|
"express": "^4.21.2"
|
|
20
20
|
},
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"typescript": "5.8.3"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": ">=
|
|
36
|
+
"node": ">=22"
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
}
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"webpack-merge": "^5.8.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@bluealba/pae-ui-react-core": "4.
|
|
50
|
+
"@bluealba/pae-ui-react-core": "4.5.0",
|
|
51
51
|
"css-loader": "^7.1.2",
|
|
52
52
|
"react": "^18.3.1",
|
|
53
53
|
"react-dom": "^18.3.1",
|
|
54
54
|
"zustand": "^4.5.2"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
|
-
"node": ">=
|
|
57
|
+
"node": ">=22"
|
|
58
58
|
}
|
|
59
|
-
}
|
|
59
|
+
}
|
|
@@ -26,14 +26,14 @@ services:
|
|
|
26
26
|
retries: 20
|
|
27
27
|
|
|
28
28
|
pae-nestjs-gateway-service:
|
|
29
|
-
image: bluealba-ba-docker-virtual.jfrog.io/bluealba-pae-nestjs-gateway-service:3.
|
|
29
|
+
image: bluealba-ba-docker-virtual.jfrog.io/bluealba-pae-nestjs-gateway-service:3.9.0
|
|
30
30
|
ports:
|
|
31
31
|
- 9080:80
|
|
32
32
|
- 9443:443
|
|
33
33
|
volumes:
|
|
34
34
|
- ./ssl:/etc/ssl
|
|
35
35
|
env_file:
|
|
36
|
-
-
|
|
36
|
+
- ./environment/pae-nestjs-gateway-service.env
|
|
37
37
|
healthcheck:
|
|
38
38
|
test:
|
|
39
39
|
[
|
|
@@ -50,22 +50,22 @@ services:
|
|
|
50
50
|
condition: service_healthy
|
|
51
51
|
|
|
52
52
|
pae-shell-ui:
|
|
53
|
-
image: bluealba-ba-docker-virtual.jfrog.io/bluealba-pae-shell-ui:3.3.
|
|
53
|
+
image: bluealba-ba-docker-virtual.jfrog.io/bluealba-pae-shell-ui:3.3.3
|
|
54
54
|
ports:
|
|
55
55
|
- 9004:80
|
|
56
56
|
|
|
57
57
|
pae-admin-ui:
|
|
58
|
-
image: bluealba-ba-docker-virtual.jfrog.io/bluealba-pae-admin-ui:4.
|
|
58
|
+
image: bluealba-ba-docker-virtual.jfrog.io/bluealba-pae-admin-ui:4.6.1
|
|
59
59
|
ports:
|
|
60
60
|
- 9005:80
|
|
61
61
|
|
|
62
62
|
pae-documentation-ui:
|
|
63
|
-
image: bluealba-ba-docker-virtual.jfrog.io/bluealba-pae-documentation-ui:1.0.
|
|
63
|
+
image: bluealba-ba-docker-virtual.jfrog.io/bluealba-pae-documentation-ui:1.0.10
|
|
64
64
|
ports:
|
|
65
65
|
- 9006:80
|
|
66
66
|
|
|
67
67
|
pae-documentation:
|
|
68
|
-
image: bluealba-ba-docker-virtual.jfrog.io/bluealba-pae-documentation:1.0.
|
|
68
|
+
image: bluealba-ba-docker-virtual.jfrog.io/bluealba-pae-documentation:1.0.9
|
|
69
69
|
ports:
|
|
70
70
|
- 8585:80
|
|
71
71
|
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
# Core Services
|
|
2
2
|
services:
|
|
3
|
-
{{
|
|
3
|
+
{{bootstrapServiceName}}:
|
|
4
4
|
build:
|
|
5
|
-
context: ../
|
|
5
|
+
context: ../services/{{bootstrapServiceName}}
|
|
6
6
|
dockerfile: Dockerfile.development
|
|
7
7
|
environment:
|
|
8
8
|
- NODE_TLS_REJECT_UNAUTHORIZED=0
|
|
9
|
-
- SERVICE_ACCESS_NAME={{
|
|
9
|
+
- SERVICE_ACCESS_NAME={{bootstrapServiceName}}
|
|
10
10
|
- WAIT_TIME=5000
|
|
11
11
|
- SYNC_STRATEGY=${PAE_BOOTSTRAP_SYNC_STRATEGY}
|
|
12
12
|
- GATEWAY_SERVICE_URL=${PAE_GATEWAY_URL}
|
|
13
13
|
- SERVICE_ACCESS_SECRET=${PAE_GATEWAY_SERVICE_ACCESS_SECRET}
|
|
14
14
|
volumes:
|
|
15
|
-
- ${PWD}
|
|
15
|
+
- ${PWD}/:/app/out
|
|
16
16
|
depends_on:
|
|
17
17
|
pae-nestjs-gateway-service:
|
|
18
18
|
condition: service_healthy
|
|
19
19
|
|
|
20
|
-
{{
|
|
20
|
+
{{customizationUiName}}:
|
|
21
21
|
build:
|
|
22
|
-
context: ../
|
|
22
|
+
context: ../ui/{{customizationUiName}}
|
|
23
23
|
dockerfile: Dockerfile.development
|
|
24
24
|
ports:
|
|
25
25
|
- 9446:80
|
|
26
26
|
volumes:
|
|
27
|
-
- ${PWD}
|
|
27
|
+
- ${PWD}/:/app/out
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"lint:fix": "pae-ui-sdk lint --fix"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@bluealba/pae-ui-react-core": "4.
|
|
13
|
+
"@bluealba/pae-ui-react-core": "4.5.0",
|
|
14
14
|
"@bluealba/pae-ui-react-sdk": "1.0.2",
|
|
15
15
|
"@types/react": "18.3.3",
|
|
16
16
|
"@types/react-dom": "18.3.0",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"react-router-dom": "6.26.1"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": ">=
|
|
27
|
+
"node": ">=22"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
3
|
const Icon = () => (
|
|
4
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="currentColor"><path d="M440-91 160-252q-19-11-29.5-29T120-321v-318q0-22 10.5-40t29.5-29l280-161q19-11 40-11t40 11l280 161q19 11 29.5 29t10.5 40v318q0 22-10.5 40T800-252L520-91q-19 11-40 11t-40-11Zm0-366v274l40 23 40-23v-274l240-139v-42l-43-25-237 137-237-137-43 25v42l240 139Z"/></svg>
|
|
5
5
|
)
|
|
6
6
|
|
|
7
7
|
export default Icon
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@{{organizationName}}/{{platformName}}-local",
|
|
3
|
-
"displayName": "{{platformTitle}} Local",
|
|
4
|
-
"version": "0.1.0",
|
|
5
|
-
"description": "Local development scripts for the {{platformTitle}} platform",
|
|
6
|
-
"private": true,
|
|
7
|
-
"scripts": {
|
|
8
|
-
"install": "./scripts/install.sh",
|
|
9
|
-
"build": "./scripts/build.sh",
|
|
10
|
-
"start": "docker compose -p {{platformName}}-local -f docker-compose.yml up -d --build --remove-orphans --force-recreate",
|
|
11
|
-
"stop": "docker compose -p {{platformName}}-local -f docker-compose.yml down",
|
|
12
|
-
"restart": "npm run stop && npm run start",
|
|
13
|
-
"destroy": "docker compose -p {{platformName}}-local -f docker-compose.yml down -v --rmi all"
|
|
14
|
-
},
|
|
15
|
-
"engines": {
|
|
16
|
-
"node": ">=20"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
|
|
4
|
-
|
|
5
|
-
pids=()
|
|
6
|
-
for dir in "$ROOT"/*/; do
|
|
7
|
-
if [ "$dir" != "$ROOT/{{platformName}}-local/" ]; then
|
|
8
|
-
echo "Building $dir..."
|
|
9
|
-
(cd "$dir" && npm run build) &
|
|
10
|
-
pids+=($!)
|
|
11
|
-
fi
|
|
12
|
-
done
|
|
13
|
-
|
|
14
|
-
exit_code=0
|
|
15
|
-
for pid in "${pids[@]}"; do
|
|
16
|
-
wait "$pid" || exit_code=$?
|
|
17
|
-
done
|
|
18
|
-
exit $exit_code
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
|
|
4
|
-
|
|
5
|
-
pids=()
|
|
6
|
-
for dir in "$ROOT"/*/; do
|
|
7
|
-
if [ "$dir" != "$ROOT/{{platformName}}-local/" ]; then
|
|
8
|
-
echo "Installing $dir..."
|
|
9
|
-
(cd "$dir" && npm i) &
|
|
10
|
-
pids+=($!)
|
|
11
|
-
fi
|
|
12
|
-
done
|
|
13
|
-
|
|
14
|
-
exit_code=0
|
|
15
|
-
for pid in "${pids[@]}"; do
|
|
16
|
-
wait "$pid" || exit_code=$?
|
|
17
|
-
done
|
|
18
|
-
exit $exit_code
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|