test
This commit is contained in:
parent
e83360d2af
commit
a1719cf5f7
@ -50,10 +50,9 @@ function update_script() {
|
|||||||
sed -i "s|\"version\": \"0.0.0\"|\"version\": \"$RELEASE\"|" backend/package.json
|
sed -i "s|\"version\": \"0.0.0\"|\"version\": \"$RELEASE\"|" backend/package.json
|
||||||
sed -i "s|\"version\": \"0.0.0\"|\"version\": \"$RELEASE\"|" frontend/package.json
|
sed -i "s|\"version\": \"0.0.0\"|\"version\": \"$RELEASE\"|" frontend/package.json
|
||||||
cd ./frontend || exit
|
cd ./frontend || exit
|
||||||
# First install to generate yarn.lock, then swap node-sass for sass
|
# Replace node-sass with sass in package.json before installation
|
||||||
|
sed -i 's/"node-sass".*$/"sass": "^1.92.1",/g' package.json
|
||||||
$STD yarn install --network-timeout 600000
|
$STD yarn install --network-timeout 600000
|
||||||
$STD yarn remove node-sass
|
|
||||||
$STD yarn add -D sass
|
|
||||||
$STD yarn build
|
$STD yarn build
|
||||||
)
|
)
|
||||||
msg_ok "Built Frontend"
|
msg_ok "Built Frontend"
|
||||||
|
@ -116,10 +116,9 @@ msg_ok "Set up Environment"
|
|||||||
msg_info "Building Frontend"
|
msg_info "Building Frontend"
|
||||||
cd ./frontend
|
cd ./frontend
|
||||||
export NODE_OPTIONS="--openssl-legacy-provider"
|
export NODE_OPTIONS="--openssl-legacy-provider"
|
||||||
# First install to generate yarn.lock, then swap node-sass for sass
|
# Replace node-sass with sass in package.json before installation
|
||||||
|
sed -i 's/"node-sass".*$/"sass": "^1.92.1",/g' package.json
|
||||||
$STD yarn install --network-timeout 600000
|
$STD yarn install --network-timeout 600000
|
||||||
$STD yarn remove node-sass
|
|
||||||
$STD yarn add -D sass
|
|
||||||
$STD yarn build
|
$STD yarn build
|
||||||
cp -r dist/* /app/frontend
|
cp -r dist/* /app/frontend
|
||||||
cp -r app-images/* /app/frontend/images
|
cp -r app-images/* /app/frontend/images
|
||||||
|
Loading…
x
Reference in New Issue
Block a user