@bluealba/platform-cli 0.3.0 → 0.3.1-feature-platform-cli-prefix-221
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 +627 -307
- package/package.json +5 -5
- package/templates/bootstrap-service-template/package.json +2 -2
- package/templates/customization-ui-module-template/Dockerfile +4 -4
- package/templates/customization-ui-module-template/Dockerfile.development +1 -1
- package/templates/customization-ui-module-template/package.json +5 -5
- package/templates/customization-ui-module-template/tsconfig.json +1 -1
- package/templates/customization-ui-module-template/webpack.config.js +2 -2
- package/templates/platform-init-template/{local → {{platformName}}-core/local}/.env.example +1 -1
- package/templates/platform-init-template/{local → {{platformName}}-core/local}/platform-docker-compose.yml +1 -1
- package/templates/platform-init-template/{local/core-docker-compose.yml → {{platformName}}-core/local/{{platformName}}-core-docker-compose.yml} +7 -7
- package/templates/react-ui-module-template/Dockerfile +3 -3
- package/templates/react-ui-module-template/Dockerfile.development +1 -1
- 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/local/docker-compose.yml +0 -3
- package/templates/platform-init-template/local/package.json +0 -18
- package/templates/platform-init-template/local/scripts/build.sh +0 -18
- package/templates/platform-init-template/local/scripts/install.sh +0 -18
- /package/templates/customization-ui-module-template/src/{platform-customization-ui.tsx → {{platformName}}-customization-ui.tsx} +0 -0
- /package/templates/platform-init-template/{core → {{platformName}}-core}/.changeset/config.json +0 -0
- /package/templates/platform-init-template/{core → {{platformName}}-core}/.nvmrc +0 -0
- /package/templates/platform-init-template/{core → {{platformName}}-core}/.syncpackrc +0 -0
- /package/templates/platform-init-template/{local → {{platformName}}-core/local}/environment/pae-nestjs-gateway-service.env +0 -0
- /package/templates/platform-init-template/{local → {{platformName}}-core/local}/nginx.conf +0 -0
- /package/templates/platform-init-template/{local → {{platformName}}-core/local}/ssl/cert.pem +0 -0
- /package/templates/platform-init-template/{local → {{platformName}}-core/local}/ssl/key.pem +0 -0
- /package/templates/platform-init-template/{core → {{platformName}}-core}/package.json +0 -0
- /package/templates/platform-init-template/{core → {{platformName}}-core}/packages-versions.json +0 -0
- /package/templates/platform-init-template/{core → {{platformName}}-core}/scripts/preinstall.mjs +0 -0
- /package/templates/platform-init-template/{core → {{platformName}}-core}/services/.gitkeep +0 -0
- /package/templates/platform-init-template/{core → {{platformName}}-core}/turbo.json +0 -0
- /package/templates/platform-init-template/{core → {{platformName}}-core}/ui/.gitkeep +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluealba/platform-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1-feature-platform-cli-prefix-221",
|
|
4
4
|
"description": "Blue Alba Platform CLI",
|
|
5
5
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
6
6
|
"type": "module",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^25.5.0",
|
|
29
29
|
"@types/react": "^19.0.0",
|
|
30
|
-
"tsup": "^8.0.0"
|
|
31
|
-
"typescript": "^5.0.0"
|
|
30
|
+
"tsup": "^8.0.0"
|
|
32
31
|
},
|
|
33
32
|
"engines": {
|
|
34
|
-
"node": ">=
|
|
33
|
+
"node": ">=22"
|
|
35
34
|
},
|
|
36
35
|
"publishConfig": {
|
|
36
|
+
"@bluealba:registry": "https://registry.npmjs.org/",
|
|
37
37
|
"access": "public"
|
|
38
38
|
}
|
|
39
|
-
}
|
|
39
|
+
}
|
|
@@ -8,10 +8,10 @@ ENV NAME=$NAME
|
|
|
8
8
|
ARG DISPLAY_NAME
|
|
9
9
|
ENV DISPLAY_NAME=$DISPLAY_NAME
|
|
10
10
|
|
|
11
|
-
COPY ./ui/
|
|
12
|
-
COPY ./ui/
|
|
13
|
-
COPY ./ui/
|
|
14
|
-
COPY ./ui/
|
|
11
|
+
COPY ./ui/{{platformName}}-customization-ui/caddy/Caddyfile /etc/caddy/Caddyfile
|
|
12
|
+
COPY ./ui/{{platformName}}-customization-ui/assets /usr/share/caddy/assets/
|
|
13
|
+
COPY ./ui/{{platformName}}-customization-ui/dist /usr/share/caddy/
|
|
14
|
+
COPY ./ui/{{platformName}}-customization-ui/CHANGELOG.md /usr/share/caddy/CHANGELOG.md
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
EXPOSE 8080
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@{{organizationName}}/
|
|
2
|
+
"name": "@{{organizationName}}/{{platformName}}-customization-ui",
|
|
3
3
|
"displayName": "Platform Customization UI",
|
|
4
4
|
"version": "1.0.0",
|
|
5
|
-
"main": "./distLib/
|
|
6
|
-
"types": "./distLib/
|
|
5
|
+
"main": "./distLib/{{platformName}}-customization-ui.js",
|
|
6
|
+
"types": "./distLib/{{platformName}}-customization-ui.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"distLib"
|
|
9
9
|
],
|
|
@@ -54,6 +54,6 @@
|
|
|
54
54
|
"zustand": "^4.5.2"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
|
-
"node": ">=
|
|
57
|
+
"node": ">=22"
|
|
58
58
|
}
|
|
59
|
-
}
|
|
59
|
+
}
|
|
@@ -14,9 +14,9 @@ module.exports = (webpackConfigEnv, argv) => {
|
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
return merge(defaultConfig, {
|
|
17
|
-
entry: './src/
|
|
17
|
+
entry: './src/{{platformName}}-customization-ui.tsx',
|
|
18
18
|
output: {
|
|
19
|
-
filename: '
|
|
19
|
+
filename: '{{platformName}}-customization-ui.js',
|
|
20
20
|
},
|
|
21
21
|
// modify the webpack config however you'd like to by adding to this object
|
|
22
22
|
externals: ['@bluealba/pae-ui-react-core'],
|
|
@@ -6,7 +6,7 @@ PAE_AUTH_JWT_SECRET=
|
|
|
6
6
|
PAE_GATEWAY_SERVICE_ACCESS_SECRET=
|
|
7
7
|
PAE_GATEWAY_URL=https://pae-nestjs-gateway-service:443
|
|
8
8
|
PAE_GATEWAY_HOST_URL=https://localhost:443
|
|
9
|
-
# PAE_FAVICON=/
|
|
9
|
+
# PAE_FAVICON=/{{platformName}}-customization-ui/assets/favicon.ico
|
|
10
10
|
|
|
11
11
|
#
|
|
12
12
|
# DB
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
# Core Services
|
|
2
2
|
services:
|
|
3
|
-
|
|
3
|
+
{{platformName}}-bootstrap-service:
|
|
4
4
|
build:
|
|
5
|
-
context: ../
|
|
5
|
+
context: ../services/{{platformName}}-bootstrap-service
|
|
6
6
|
dockerfile: Dockerfile.development
|
|
7
7
|
environment:
|
|
8
8
|
- NODE_TLS_REJECT_UNAUTHORIZED=0
|
|
9
|
-
- SERVICE_ACCESS_NAME=
|
|
9
|
+
- SERVICE_ACCESS_NAME={{platformName}}-bootstrap-service
|
|
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
|
+
{{platformName}}-customization-ui:
|
|
21
21
|
build:
|
|
22
|
-
context: ../
|
|
22
|
+
context: ../ui/{{platformName}}-customization-ui
|
|
23
23
|
dockerfile: Dockerfile.development
|
|
24
24
|
ports:
|
|
25
25
|
- 9446:80
|
|
26
26
|
volumes:
|
|
27
|
-
- ${PWD}
|
|
27
|
+
- ${PWD}/:/app/out
|
|
@@ -8,8 +8,8 @@ ENV NAME=$NAME
|
|
|
8
8
|
ARG DISPLAY_NAME
|
|
9
9
|
ENV DISPLAY_NAME=$DISPLAY_NAME
|
|
10
10
|
|
|
11
|
-
COPY ./apps/{{applicationName}}-ui/version.json /usr/share/nginx/html/version.json
|
|
12
|
-
COPY ./apps/{{applicationName}}-ui/dist /usr/share/caddy/
|
|
13
|
-
COPY ./apps/{{applicationName}}-ui/caddy/Caddyfile /etc/caddy/Caddyfile
|
|
11
|
+
COPY ./apps/{{platformName}}-{{applicationName}}-ui/version.json /usr/share/nginx/html/version.json
|
|
12
|
+
COPY ./apps/{{platformName}}-{{applicationName}}-ui/dist /usr/share/caddy/
|
|
13
|
+
COPY ./apps/{{platformName}}-{{applicationName}}-ui/caddy/Caddyfile /etc/caddy/Caddyfile
|
|
14
14
|
|
|
15
15
|
EXPOSE 8080
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@{{organizationName}}/{{applicationName}}-ui",
|
|
2
|
+
"name": "@{{organizationName}}/{{platformName}}-{{applicationName}}-ui",
|
|
3
3
|
"version": "0.1.0",
|
|
4
4
|
"displayName": "{{applicationDisplayName}}",
|
|
5
5
|
"scripts": {
|
|
@@ -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 tradewinds-local -f docker-compose.yml up -d --build --remove-orphans --force-recreate",
|
|
11
|
-
"stop": "docker compose -p tradewinds-local -f docker-compose.yml down",
|
|
12
|
-
"restart": "npm run stop && npm run start",
|
|
13
|
-
"destroy": "docker compose -p tradewinds-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/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/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
|
/package/templates/platform-init-template/{core → {{platformName}}-core}/.changeset/config.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/templates/platform-init-template/{local → {{platformName}}-core/local}/ssl/cert.pem
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/templates/platform-init-template/{core → {{platformName}}-core}/packages-versions.json
RENAMED
|
File without changes
|
/package/templates/platform-init-template/{core → {{platformName}}-core}/scripts/preinstall.mjs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|