@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.
Files changed (20) hide show
  1. package/dist/index.js +2068 -457
  2. package/package.json +7 -6
  3. package/templates/bootstrap-service-template/Dockerfile +1 -1
  4. package/templates/bootstrap-service-template/Dockerfile.development +1 -1
  5. package/templates/bootstrap-service-template/README.md +1 -1
  6. package/templates/bootstrap-service-template/package.json +5 -5
  7. package/templates/customization-ui-module-template/package.json +3 -3
  8. package/templates/platform-init-template/{{{platformName}}-local → {{platformName}}-core/local}/platform-docker-compose.yml +6 -6
  9. package/templates/platform-init-template/{{{platformName}}-local → {{platformName}}-core/local}/{{platformName}}-core-docker-compose.yml +7 -7
  10. package/templates/react-ui-module-template/package.json +2 -2
  11. package/templates/react-ui-module-template/src/Icon.tsx +1 -1
  12. package/templates/platform-init-template/{{platformName}}-local/docker-compose.yml +0 -3
  13. package/templates/platform-init-template/{{platformName}}-local/package.json +0 -18
  14. package/templates/platform-init-template/{{platformName}}-local/scripts/build.sh +0 -18
  15. package/templates/platform-init-template/{{platformName}}-local/scripts/install.sh +0 -18
  16. /package/templates/platform-init-template/{{{platformName}}-local → {{platformName}}-core/local}/.env.example +0 -0
  17. /package/templates/platform-init-template/{{{platformName}}-local → {{platformName}}-core/local}/environment/pae-nestjs-gateway-service.env +0 -0
  18. /package/templates/platform-init-template/{{{platformName}}-local → {{platformName}}-core/local}/nginx.conf +0 -0
  19. /package/templates/platform-init-template/{{{platformName}}-local → {{platformName}}-core/local}/ssl/cert.pem +0 -0
  20. /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.1",
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": ">=18"
34
+ "node": ">=22"
35
35
  },
36
36
  "publishConfig": {
37
+ "@bluealba:registry": "https://registry.npmjs.org/",
37
38
  "access": "public"
38
39
  }
39
- }
40
+ }
@@ -5,7 +5,7 @@ ENV PORT=3000
5
5
 
6
6
  RUN apk -U upgrade --no-cache
7
7
 
8
- WORKDIR /app/out/{{bootstrapName}}-bootstrap-service
8
+ WORKDIR /app/out/{{bootstrapServiceName}}
9
9
 
10
10
  COPY ./out/ /app/out
11
11
 
@@ -3,7 +3,7 @@ FROM node:20.11-alpine as development
3
3
  ENV NODE_ENV=development
4
4
  ENV PORT=80
5
5
 
6
- WORKDIR /app/out/{{bootstrapServiceDir}}/{{bootstrapName}}-bootstrap-service
6
+ WORKDIR /app/out/{{bootstrapServiceDir}}/{{bootstrapServiceName}}
7
7
 
8
8
  EXPOSE 80
9
9
 
@@ -1,4 +1,4 @@
1
- # {{bootstrapName}}-bootstrap-service
1
+ # {{bootstrapServiceName}}
2
2
 
3
3
  A service that defines the {{platformTitle}} elements such as modules, operations, roles, etc.
4
4
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "@{{organizationName}}/{{bootstrapName}}-bootstrap-service",
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.0.0",
17
- "@bluealba/pae-core": "5.2.0",
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": ">=20"
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.3.0",
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": ">=20"
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.6.1
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
- - ${PWD}/environment/pae-nestjs-gateway-service.env
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.0
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.4.0
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.7
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.7
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
- {{platformName}}-bootstrap-service:
3
+ {{bootstrapServiceName}}:
4
4
  build:
5
- context: ../{{platformName}}-core/services/{{platformName}}-bootstrap-service
5
+ context: ../services/{{bootstrapServiceName}}
6
6
  dockerfile: Dockerfile.development
7
7
  environment:
8
8
  - NODE_TLS_REJECT_UNAUTHORIZED=0
9
- - SERVICE_ACCESS_NAME={{platformName}}-bootstrap-service
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}/../:/app/out
15
+ - ${PWD}/:/app/out
16
16
  depends_on:
17
17
  pae-nestjs-gateway-service:
18
18
  condition: service_healthy
19
19
 
20
- {{platformName}}-customization-ui:
20
+ {{customizationUiName}}:
21
21
  build:
22
- context: ../{{platformName}}-core/ui/{{platformName}}-customization-ui
22
+ context: ../ui/{{customizationUiName}}
23
23
  dockerfile: Dockerfile.development
24
24
  ports:
25
25
  - 9446:80
26
26
  volumes:
27
- - ${PWD}/../:/app/out
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.4.0",
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": ">=20"
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" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M8.856 17.225A1.388 1.388 0 1 0 8.88 20a1.388 1.388 0 0 0 -0.025 -2.775m5.537 -10.559a1.388 1.388 0 1 0 -0.022 -2.775 1.388 1.388 0 0 0 0.022 2.775m-3.787 6.587a1.388 1.388 0 1 0 0.022 2.775 1.388 1.388 0 0 0 -0.022 -2.775m5.521 3.971a1.388 1.388 0 1 0 0.02 2.775 1.388 1.388 0 0 0 -0.02 -2.775m0 -14.447a1.388 1.388 0 1 0 -0.024 -2.775 1.388 1.388 0 0 0 0.024 2.775m-8.32 10.476a1.388 1.388 0 1 0 -0.024 -2.775 1.388 1.388 0 0 0 0.024 2.775M3.9 7.766a1.388 1.388 0 1 0 -0.025 -2.775 1.388 1.388 0 0 0 0.025 2.775m0 7.133a1.388 1.388 0 1 0 -1.291 -0.856 1.388 1.388 0 0 0 1.291 0.854zm3.906 -5.456a1.388 1.388 0 1 0 -1.399 -1.39 1.393 1.393 0 0 0 1.4 1.388zm6.587 6.587a1.388 1.388 0 1 0 -0.022 -2.775 1.388 1.388 0 0 0 0.022 2.775m-5.188 -10.751a1.4 1.4 0 1 0 2.797 0.024 1.4 1.4 0 0 0 -2.797 -0.025m-0.35 -2.504a1.388 1.388 0 1 0 -0.024 -2.78 1.388 1.388 0 0 0 0.024 2.782z" fill="currentColor" /></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,3 +0,0 @@
1
- include:
2
- - path: ./{{platformName}}-core-docker-compose.yml
3
- - path: ./platform-docker-compose.yml
@@ -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