@bluealba/platform-cli 1.0.1 → 1.1.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 (52) hide show
  1. package/dist/index.js +278 -15
  2. package/docs/404.mdx +5 -0
  3. package/docs/architecture/api-explorer.mdx +478 -0
  4. package/docs/architecture/architecture-diagrams.mdx +12 -0
  5. package/docs/architecture/authentication-system.mdx +903 -0
  6. package/docs/architecture/authorization-system.mdx +886 -0
  7. package/docs/architecture/bootstrap.mdx +1442 -0
  8. package/docs/architecture/gateway-architecture.mdx +845 -0
  9. package/docs/architecture/multi-tenancy.mdx +1150 -0
  10. package/docs/architecture/overview.mdx +776 -0
  11. package/docs/architecture/scheduler.mdx +818 -0
  12. package/docs/architecture/shell.mdx +885 -0
  13. package/docs/architecture/ui-extension-points.mdx +781 -0
  14. package/docs/architecture/user-states.mdx +794 -0
  15. package/docs/development/overview.mdx +21 -0
  16. package/docs/development/workflow.mdx +914 -0
  17. package/docs/getting-started/core-concepts.mdx +892 -0
  18. package/docs/getting-started/installation.mdx +780 -0
  19. package/docs/getting-started/overview.mdx +83 -0
  20. package/docs/getting-started/quick-start.mdx +940 -0
  21. package/docs/guides/adding-documentation-sites.mdx +1367 -0
  22. package/docs/guides/creating-services.mdx +1736 -0
  23. package/docs/guides/creating-ui-modules.mdx +1860 -0
  24. package/docs/guides/identity-providers.mdx +1007 -0
  25. package/docs/guides/mermaid-diagrams.mdx +212 -0
  26. package/docs/guides/using-feature-flags.mdx +1059 -0
  27. package/docs/guides/working-with-rooms.mdx +566 -0
  28. package/docs/index.mdx +57 -0
  29. package/docs/platform-cli/commands.mdx +604 -0
  30. package/docs/platform-cli/overview.mdx +195 -0
  31. package/package.json +5 -2
  32. package/skills/ba-platform/platform-cli.skill.md +26 -0
  33. package/skills/ba-platform/platform.skill.md +35 -0
  34. package/templates/application-monorepo-template/gitignore +95 -0
  35. package/templates/bootstrap-service-template/Dockerfile.development +1 -1
  36. package/templates/bootstrap-service-template/gitignore +57 -0
  37. package/templates/bootstrap-service-template/package.json +1 -1
  38. package/templates/bootstrap-service-template/src/main.ts +6 -16
  39. package/templates/customization-ui-module-template/Dockerfile.development +1 -1
  40. package/templates/customization-ui-module-template/gitignore +73 -0
  41. package/templates/nestjs-service-module-template/Dockerfile.development +1 -1
  42. package/templates/nestjs-service-module-template/gitignore +56 -0
  43. package/templates/platform-init-template/{{platformName}}-core/gitignore +97 -0
  44. package/templates/platform-init-template/{{platformName}}-core/local/.env.example +1 -1
  45. package/templates/platform-init-template/{{platformName}}-core/local/platform-docker-compose.yml +1 -1
  46. package/templates/platform-init-template/{{platformName}}-core/local/{{platformName}}-core-docker-compose.yml +0 -1
  47. package/templates/react-ui-module-template/Dockerfile +1 -1
  48. package/templates/react-ui-module-template/Dockerfile.development +1 -3
  49. package/templates/react-ui-module-template/caddy/Caddyfile +1 -1
  50. package/templates/react-ui-module-template/gitignore +72 -0
  51. package/templates/react-ui-module-template/Dockerfile_nginx +0 -11
  52. package/templates/react-ui-module-template/nginx/default.conf +0 -23
@@ -0,0 +1,97 @@
1
+ # Logs
2
+ logs
3
+ *.log
4
+ npm-debug.log*
5
+ yarn-debug.log*
6
+ yarn-error.log*
7
+
8
+ # Runtime data
9
+ pids
10
+ *.pid
11
+ *.seed
12
+ *.pid.lock
13
+
14
+ # Directory for instrumented libs generated by jscoverage/JSCover
15
+ lib-cov
16
+
17
+ # Coverage directory used by tools like istanbul
18
+ coverage
19
+
20
+ # nyc test coverage
21
+ .nyc_output
22
+
23
+ # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24
+ .grunt
25
+
26
+ # Bower dependency directory (https://bower.io/)
27
+ bower_components
28
+
29
+ # node-waf configuration
30
+ .lock-wscript
31
+
32
+ # Compiled binary addons (https://nodejs.org/api/addons.html)
33
+ build/Release
34
+
35
+ # Dependency directories
36
+ node_modules/
37
+ jspm_packages/
38
+
39
+ # TypeScript v1 declaration files
40
+ typings/
41
+
42
+ # Optional npm cache directory
43
+ .npm
44
+
45
+ # Optional eslint cache
46
+ .eslintcache
47
+
48
+ # Optional REPL history
49
+ .node_repl_history
50
+
51
+ # Output of 'npm pack'
52
+ *.tgz
53
+
54
+ # Yarn Integrity file
55
+ .yarn-integrity
56
+
57
+ # dotenv environment variables file
58
+ # .env
59
+
60
+ # next.js build output
61
+ .next
62
+ dist
63
+
64
+ # Editor directories and files
65
+ .idea
66
+ .vscode
67
+ *.suo
68
+ *.ntvs*
69
+ *.njsproj
70
+ *.sln
71
+ *.sw?
72
+ .DS_Store
73
+
74
+ # Monorepo directories
75
+ packages/*/node_modules
76
+ packages/*/dist
77
+ # packages/*/tsconfig.tsbuildinfo
78
+ # packages/*/tsconfig.json
79
+ # packages/*/tsconfig.build.json
80
+ # packages/*/tsconfig.build.tsbuildinfo
81
+ # packages/*/tsconfig.build.tsbuildinfo
82
+
83
+
84
+ # Turbo directories
85
+ .turbo
86
+
87
+ # dependencies management script
88
+ .package-json-backup.json
89
+ .changeset-in-progress
90
+ .tools
91
+
92
+ *storybook.log
93
+ storybook-static
94
+
95
+ version.json
96
+
97
+ .release-notes/
@@ -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=/{{platformName}}-customization-ui/assets/favicon.ico
9
+ PAE_FAVICON=/<platform-name>-customization-ui/assets/favicon.ico
10
10
 
11
11
  #
12
12
  # DB
@@ -26,7 +26,7 @@ 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.9.0
29
+ image: bluealba-ba-docker-virtual.jfrog.io/bluealba-pae-nestjs-gateway-service:3.9.1
30
30
  ports:
31
31
  - 9080:80
32
32
  - 9443:443
@@ -8,7 +8,6 @@ services:
8
8
  - NODE_TLS_REJECT_UNAUTHORIZED=0
9
9
  - SERVICE_ACCESS_NAME={{bootstrapServiceName}}
10
10
  - WAIT_TIME=5000
11
- - SYNC_STRATEGY=${PAE_BOOTSTRAP_SYNC_STRATEGY}
12
11
  - GATEWAY_SERVICE_URL=${PAE_GATEWAY_URL}
13
12
  - SERVICE_ACCESS_SECRET=${PAE_GATEWAY_SERVICE_ACCESS_SECRET}
14
13
  volumes:
@@ -12,4 +12,4 @@ COPY ./apps/{{platformName}}-{{applicationName}}-ui/version.json /usr/share/ngin
12
12
  COPY ./apps/{{platformName}}-{{applicationName}}-ui/dist /usr/share/caddy/
13
13
  COPY ./apps/{{platformName}}-{{applicationName}}-ui/caddy/Caddyfile /etc/caddy/Caddyfile
14
14
 
15
- EXPOSE 8080
15
+ EXPOSE 80
@@ -1,10 +1,8 @@
1
- FROM node:20-alpine as development
1
+ FROM node:20-alpine AS development
2
2
 
3
3
  ENV NODE_ENV=development
4
4
  ENV PORT=80
5
5
 
6
- ARG BA_NPM_AUTH_TOKEN
7
-
8
6
  WORKDIR /app/out/{{uiBaseDir}}/{{platformName}}-{{applicationName}}-ui
9
7
 
10
8
  EXPOSE 80
@@ -1,4 +1,4 @@
1
- :8080 {
1
+ :80 {
2
2
  root * /usr/share/caddy/
3
3
  encode gzip
4
4
  file_server {
@@ -0,0 +1,72 @@
1
+ # Logs
2
+ logs
3
+ *.log
4
+ npm-debug.log*
5
+ yarn-debug.log*
6
+ yarn-error.log*
7
+
8
+ # Runtime data
9
+ pids
10
+ *.pid
11
+ *.seed
12
+ *.pid.lock
13
+
14
+ # Directory for instrumented libs generated by jscoverage/JSCover
15
+ lib-cov
16
+
17
+ # Coverage directory used by tools like istanbul
18
+ coverage
19
+
20
+ # nyc test coverage
21
+ .nyc_output
22
+
23
+ # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24
+ .grunt
25
+
26
+ # Bower dependency directory (https://bower.io/)
27
+ bower_components
28
+
29
+ # node-waf configuration
30
+ .lock-wscript
31
+
32
+ # Compiled binary addons (https://nodejs.org/api/addons.html)
33
+ build/Release
34
+
35
+ # Dependency directories
36
+ node_modules/
37
+ jspm_packages/
38
+
39
+ # TypeScript v1 declaration files
40
+ typings/
41
+
42
+ # Optional npm cache directory
43
+ .npm
44
+
45
+ # Optional eslint cache
46
+ .eslintcache
47
+
48
+ # Optional REPL history
49
+ .node_repl_history
50
+
51
+ # Output of 'npm pack'
52
+ *.tgz
53
+
54
+ # Yarn Integrity file
55
+ .yarn-integrity
56
+
57
+ # dotenv environment variables file
58
+ .env
59
+
60
+ # next.js build output
61
+ .next
62
+ dist
63
+
64
+ # Editor directories and files
65
+ .idea
66
+ .vscode
67
+ *.suo
68
+ *.ntvs*
69
+ *.njsproj
70
+ *.sln
71
+ *.sw?
72
+ .DS_Store
@@ -1,11 +0,0 @@
1
- FROM nginxinc/nginx-unprivileged:mainline-alpine-slim
2
-
3
- WORKDIR /usr/share/nginx/html
4
-
5
- COPY ./version.json ./version.json
6
- COPY ./dist /usr/share/nginx/html
7
-
8
- COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
9
-
10
- EXPOSE 8080
11
-
@@ -1,23 +0,0 @@
1
- server {
2
- listen 8080;
3
- listen [::]:8080;
4
- server_name localhost;
5
-
6
- location / {
7
- root /usr/share/nginx/html;
8
- index index.html index.htm;
9
- add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
10
- add_header Pragma "no-cache";
11
- add_header Expires "0";
12
- }
13
-
14
- location /version {
15
- default_type application/json;
16
- alias /usr/share/nginx/html/version.json;
17
- }
18
-
19
- error_page 500 502 503 504 /50x.html;
20
- location = /50x.html {
21
- root /usr/share/nginx/html;
22
- }
23
- }