@bluealba/platform-cli 1.0.2 → 1.1.1-alpha.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 +1 -6
- package/package.json +1 -1
- package/templates/bootstrap-service-template/Dockerfile.development +1 -1
- package/templates/bootstrap-service-template/package.json +1 -1
- package/templates/customization-ui-module-template/Dockerfile.development +1 -1
- package/templates/nestjs-service-module-template/Dockerfile.development +1 -1
- package/templates/platform-init-template/{{platformName}}-core/local/.env.example +1 -1
- package/templates/platform-init-template/{{platformName}}-core/local/platform-docker-compose.yml +1 -1
- package/templates/platform-init-template/{{platformName}}-core/local/{{platformName}}-core-docker-compose.yml +0 -1
- package/templates/react-ui-module-template/Dockerfile.development +1 -3
- package/templates/react-ui-module-template/Dockerfile_nginx +0 -11
- package/templates/react-ui-module-template/nginx/default.conf +0 -23
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
|
@@ -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
|
-
|
|
9
|
+
PAE_FAVICON=/<platform-name>-customization-ui/assets/favicon.ico
|
|
10
10
|
|
|
11
11
|
#
|
|
12
12
|
# DB
|
package/templates/platform-init-template/{{platformName}}-core/local/platform-docker-compose.yml
CHANGED
|
@@ -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.
|
|
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,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
|
-
}
|