@bluealba/platform-cli 1.0.2 → 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.
package/dist/index.js CHANGED
@@ -460,7 +460,6 @@ function buildBootstrapBlock(platformName, applicationName) {
460
460
  - NODE_TLS_REJECT_UNAUTHORIZED=0
461
461
  - SERVICE_ACCESS_NAME=${applicationName}-bootstrap
462
462
  - WAIT_TIME=5000
463
- - SYNC_STRATEGY=\${PAE_BOOTSTRAP_SYNC_STRATEGY}
464
463
  - GATEWAY_SERVICE_URL=\${PAE_GATEWAY_URL}
465
464
  - SERVICE_ACCESS_SECRET=\${PAE_GATEWAY_SERVICE_ACCESS_SECRET}
466
465
  volumes:
@@ -488,8 +487,6 @@ function buildBackendBlock(platformName, applicationName, servicePort) {
488
487
  build:
489
488
  context: ../../${platformName}-${applicationName}/services/${serviceName}
490
489
  dockerfile: Dockerfile.development
491
- args:
492
- - BA_NPM_AUTH_TOKEN=$BA_NPM_AUTH_TOKEN
493
490
  ports:
494
491
  - ${servicePort}:80
495
492
  environment:
@@ -1127,8 +1124,6 @@ async function appendServiceToDockerCompose(dockerComposePath, serviceName, plat
1127
1124
  build:
1128
1125
  context: ../../${platformName}-${applicationName}/services/${serviceName}
1129
1126
  dockerfile: Dockerfile.development
1130
- args:
1131
- - BA_NPM_AUTH_TOKEN=$BA_NPM_AUTH_TOKEN
1132
1127
  ports:
1133
1128
  - ${port}:80
1134
1129
  environment:
@@ -1624,7 +1619,7 @@ async function installDependencies(layout, manifest, logger, signal, includeCore
1624
1619
  logger.log(`Installing dependencies in parallel: ${targets.map((t) => t.name).join(", ")}...`);
1625
1620
  await Promise.all(
1626
1621
  targets.map(
1627
- ({ name, dir }) => runCommand("npm", ["install"], dir, logger, signal).then(() => {
1622
+ ({ name, dir }) => runCommand("npm", ["install", "--prefer-offline"], dir, logger, signal).then(() => {
1628
1623
  logger.log(`\u2713 ${name} install done`);
1629
1624
  })
1630
1625
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluealba/platform-cli",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "Blue Alba Platform CLI",
5
5
  "license": "PolyForm-Noncommercial-1.0.0",
6
6
  "type": "module",
@@ -1,4 +1,4 @@
1
- FROM node:20.11-alpine as development
1
+ FROM node:20.11-alpine AS development
2
2
 
3
3
  ENV NODE_ENV=development
4
4
  ENV PORT=80
@@ -13,7 +13,7 @@
13
13
  "lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix"
14
14
  },
15
15
  "dependencies": {
16
- "@bluealba/pae-bootstrap-lib": "3.1.2",
16
+ "@bluealba/pae-bootstrap-lib": "3.2.0",
17
17
  "@bluealba/pae-core": "5.5.0",
18
18
  "copyfiles": "^2.4.1",
19
19
  "express": "^4.21.2"
@@ -1,4 +1,4 @@
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
@@ -1,4 +1,4 @@
1
- FROM node:20.11-alpine as development
1
+ FROM node:20.11-alpine AS development
2
2
 
3
3
  ENV NODE_ENV=development
4
4
  ENV PORT=80
@@ -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:
@@ -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,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
- }