@chat21/chat21-web-widget 5.0.71-rc.5 → 5.0.71-rc.7

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/Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
1
  ### STAGE 1: Build ###
2
2
 
3
3
  # We label our stage as ‘builder’
4
- FROM node:14.21.2-alpine as builder
4
+ FROM node:16.20.2-alpine3.18 as builder
5
5
 
6
6
  COPY package.json package-lock.json ./
7
7
 
@@ -15,7 +15,7 @@ COPY . .
15
15
 
16
16
  ## Build the angular app in production mode and store the artifacts in dist folder
17
17
 
18
- RUN npm run ng build --configuration="prod" --output-path=dist --base-href="./" --output-hashing=none --build-optimizer=false --vendor-chunk
18
+ RUN npm run ng build -- --configuration="prod" --output-path=dist --base-href="./" --output-hashing=none --build-optimizer=false --vendor-chunk
19
19
 
20
20
 
21
21
  ### STAGE 2: Setup ###
@@ -2,12 +2,7 @@
2
2
  version=`node -e 'console.log(require("./package.json").version)'`
3
3
  echo "version $version"
4
4
 
5
- ng build --configuration="pre" --aot=true --base-href --build-optimizer=true
6
-
7
- ### SET HASHING : START ###
8
- cp ./src/launch_template.js ./dist/launch.js
9
- node ./src/build_launch.js
10
- ### SET HASHING : END ###
5
+ ng build --configuration="pre" --aot=true --base-href --output-hashing none --build-optimizer=true
11
6
 
12
7
  # ########## --->>>> NATIVE-MQTT folder START <<<<<------ ########## #
13
8
 
@@ -28,13 +23,11 @@ node ./src/build_launch.js
28
23
 
29
24
  # ########## --->>>> FIREBASE folder START <<<<<------ ########## #
30
25
  cd dist
31
- aws s3 sync . s3://tiledesk-widget-pre/v5/$version/ --cache-control max-age=300 --exclude='launch.js' #7days
32
- aws s3 sync . s3://tiledesk-widget-pre/v5/$version/ --cache-control "no-store,no-cache,private" --exclude='*' --include='launch.js'
33
- aws s3 sync . s3://tiledesk-widget-pre/v5/ --cache-control max-age=300 --exclude='launch.js' #7days
34
- aws s3 sync . s3://tiledesk-widget-pre/v5/ --cache-control "no-store,no-cache,private" --exclude='*' --include='launch.js'
26
+ aws s3 sync . s3://tiledesk-widget-pre/v5/$version/ --cache-control max-age=300
27
+ aws s3 sync . s3://tiledesk-widget-pre/v5/ --cache-control max-age=300
35
28
  cd ..
36
29
 
37
- aws cloudfront create-invalidation --distribution-id E2V5O0YPR61V8P --paths "/*"
30
+ #aws cloudfront create-invalidation --distribution-id E3EJDWEHY08CZZ --paths "/*"
38
31
  # echo new version deployed $NEW_VER/$NEW_BUILD/ on s3://tiledesk-widget-pre/v2
39
32
  echo new version deployed $version/ on s3://tiledesk-widget-pre/v5 and s3://tiledesk-widget-pre/v5/$version/
40
33
  echo available on https://s3.eu-west-1.amazonaws.com/tiledesk-widget-pre/v5/index.html
@@ -3,13 +3,7 @@ version=`node -e 'console.log(require("./package.json").version)'`
3
3
  echo "version $version"
4
4
 
5
5
  # --build-optimizer=false if localstorage is disabled (webview) appears https://github.com/firebase/angularfire/issues/970
6
- ng build --configuration="prod" --aot=true --build-optimizer=true --vendor-chunk=true
7
- ##--base-href='./v5/' --output-hashing none
8
-
9
- ### SET HASHING : START ###
10
- cp ./src/launch_template.js ./dist/launch.js
11
- node ./src/build_launch.js
12
- ### SET HASHING : END ###
6
+ ng build --configuration="prod" --aot=true --base-href --output-hashing none --build-optimizer=true --vendor-chunk=true
13
7
 
14
8
  #### FIREBASE #####
15
9
  # cd dist
@@ -18,13 +12,12 @@ node ./src/build_launch.js
18
12
  # aws s3 sync . s3://tiledesk-widget/v5/ --cache-control max-age=300
19
13
  # cd ..
20
14
 
15
+
21
16
  # #### MQTT #####
22
17
  cd dist
23
18
  # aws s3 sync . s3://tiledesk-widget/v5/latest/
24
- aws s3 sync . s3://tiledesk-widget/v6/$version/ --cache-control max-age=86400 --exclude='launch.js' #8days
25
- aws s3 sync . s3://tiledesk-widget/v6/$version/ --cache-control "no-store,no-cache,private" --exclude='*' --include='launch.js'
26
- aws s3 sync . s3://tiledesk-widget/v6/ --cache-control max-age=86400 --exclude='launch.js' #8days
27
- aws s3 sync . s3://tiledesk-widget/v6/ --cache-control "no-store,no-cache,private" --exclude='*' --include='launch.js'
19
+ aws s3 sync . s3://tiledesk-widget/v6/$version/ --cache-control max-age=300
20
+ aws s3 sync . s3://tiledesk-widget/v6/ --cache-control max-age=300
28
21
  cd ..
29
22
 
30
23
  aws cloudfront create-invalidation --distribution-id E3EJDWEHY08CZZ --paths "/*"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-web-widget",
3
3
  "author": "Tiledesk SRL",
4
- "version": "5.0.71-rc.5",
4
+ "version": "5.0.71-rc.7",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.tiledesk.com",
7
7
  "repository": {