mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 22:22:43 -05:00
✨ Improve bundle generation scripts.
This commit is contained in:
parent
810f868b67
commit
20b8269766
1 changed files with 56 additions and 16 deletions
72
manage.sh
72
manage.sh
|
@ -98,6 +98,54 @@ Copyright (c) UXBOX Labs SL
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function build-frontend-bundle {
|
||||||
|
echo ">> bundle frontend start";
|
||||||
|
|
||||||
|
local version=$(print-current-version);
|
||||||
|
local bundle_dir="./bundle-frontend";
|
||||||
|
|
||||||
|
build "frontend";
|
||||||
|
|
||||||
|
rm -rf $bundle_dir;
|
||||||
|
mv ./frontend/target/dist $bundle_dir;
|
||||||
|
echo $version > $bundle_dir/version.txt;
|
||||||
|
put-license-file $bundle_dir;
|
||||||
|
echo ">> bundle frontend end";
|
||||||
|
}
|
||||||
|
|
||||||
|
function build-backend-bundle {
|
||||||
|
echo ">> bundle backend start";
|
||||||
|
|
||||||
|
local version=$(print-current-version);
|
||||||
|
local bundle_dir="./bundle-backend";
|
||||||
|
|
||||||
|
build "backend";
|
||||||
|
|
||||||
|
rm -rf $bundle_dir;
|
||||||
|
mv ./backend/target/dist $bundle_dir;
|
||||||
|
echo $version > $bundle_dir/version.txt;
|
||||||
|
put-license-file $bundle_dir;
|
||||||
|
echo ">> bundle frontend end";
|
||||||
|
}
|
||||||
|
|
||||||
|
function build-exporter-bundle {
|
||||||
|
echo ">> bundle exporter start";
|
||||||
|
local version=$(print-current-version);
|
||||||
|
local bundle_dir="./bundle-exporter";
|
||||||
|
|
||||||
|
build "exporter";
|
||||||
|
|
||||||
|
rm -rf $bundle_dir;
|
||||||
|
mv ./exporter/target $bundle_dir;
|
||||||
|
|
||||||
|
echo $version > $bundle_dir/version.txt
|
||||||
|
put-license-file $bundle_dir;
|
||||||
|
|
||||||
|
echo ">> bundle exporter end";
|
||||||
|
}
|
||||||
|
|
||||||
|
# DEPRECATED: temporary mantained for backward compatibilty.
|
||||||
|
|
||||||
function build-app-bundle {
|
function build-app-bundle {
|
||||||
echo ">> bundle app start";
|
echo ">> bundle app start";
|
||||||
|
|
||||||
|
@ -117,22 +165,6 @@ function build-app-bundle {
|
||||||
echo ">> bundle app end";
|
echo ">> bundle app end";
|
||||||
}
|
}
|
||||||
|
|
||||||
function build-exporter-bundle {
|
|
||||||
echo ">> bundle exporter start";
|
|
||||||
local version=$(print-current-version);
|
|
||||||
local bundle_dir="./bundle-exporter";
|
|
||||||
|
|
||||||
build "exporter";
|
|
||||||
|
|
||||||
rm -rf $bundle_dir;
|
|
||||||
mv ./exporter/target $bundle_dir;
|
|
||||||
|
|
||||||
echo $version > $bundle_dir/version.txt
|
|
||||||
put-license-file $bundle_dir;
|
|
||||||
|
|
||||||
echo ">> bundle exporter end";
|
|
||||||
}
|
|
||||||
|
|
||||||
function usage {
|
function usage {
|
||||||
echo "PENPOT build & release manager"
|
echo "PENPOT build & release manager"
|
||||||
echo "USAGE: $0 OPTION"
|
echo "USAGE: $0 OPTION"
|
||||||
|
@ -182,6 +214,14 @@ case $1 in
|
||||||
build-app-bundle;
|
build-app-bundle;
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
build-frontend-bundle)
|
||||||
|
build-frontend-bundle;
|
||||||
|
;;
|
||||||
|
|
||||||
|
build-backend-bundle)
|
||||||
|
build-backend-bundle;
|
||||||
|
;;
|
||||||
|
|
||||||
build-exporter-bundle)
|
build-exporter-bundle)
|
||||||
build-exporter-bundle;
|
build-exporter-bundle;
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue