architwin 1.2.5 → 1.2.6
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/package.json +2 -2
- package/pre_deploy.sh +2 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "architwin",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "ArchiTwin Library for Matterport",
|
|
5
5
|
"main": "./lib/architwin.js",
|
|
6
6
|
"types": "./lib/architwin.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
24
24
|
"build": "tsc && terser lib/architwin.js -o lib/architwin.js",
|
|
25
|
-
"deploy:package": ". ~/.nvm/nvm.sh
|
|
25
|
+
"deploy:package": ". ~/.nvm/nvm.sh && ./pre_deploy.sh && ./post_deploy.sh"
|
|
26
26
|
},
|
|
27
27
|
"author": "",
|
|
28
28
|
"license": "ISC",
|
package/pre_deploy.sh
CHANGED
|
@@ -9,10 +9,6 @@
|
|
|
9
9
|
|
|
10
10
|
# === to support environment files ===
|
|
11
11
|
|
|
12
|
-
echo "\n=> Inside pre_deploy..."
|
|
13
|
-
# Pause the script
|
|
14
|
-
read -p "Press Enter to continue..."
|
|
15
|
-
|
|
16
12
|
# Load nvm
|
|
17
13
|
export NVM_DIR="$HOME/.nvm"
|
|
18
14
|
# This loads nvm
|
|
@@ -20,9 +16,6 @@ export NVM_DIR="$HOME/.nvm"
|
|
|
20
16
|
# This loads nvm bash_completion
|
|
21
17
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
|
22
18
|
|
|
23
|
-
# echo "\n=> Force remove node_modules and reinstall node lts/hydrogen..."
|
|
24
|
-
# rm -Rf node_modules && nvm install lts/hydrogen && yarn install
|
|
25
|
-
|
|
26
19
|
set -a
|
|
27
20
|
. .env.local
|
|
28
21
|
set +a
|
|
@@ -47,6 +40,8 @@ git push -f --tags -v
|
|
|
47
40
|
echo "\n=> Locally, checkout deployment TAG and build..."
|
|
48
41
|
git checkout $TAG
|
|
49
42
|
|
|
43
|
+
echo "\n=> Building..."
|
|
44
|
+
npm run build
|
|
50
45
|
|
|
51
46
|
# We must clear temp TAG!!!
|
|
52
47
|
echo "\n Cleaning up environment..."
|