mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
🎉 add command to build docs bundle
This commit is contained in:
parent
14e6ea9393
commit
977a2090fb
2 changed files with 32 additions and 2 deletions
34
manage.sh
34
manage.sh
|
@ -177,13 +177,27 @@ function build-exporter-bundle {
|
||||||
|
|
||||||
rm -rf $bundle_dir;
|
rm -rf $bundle_dir;
|
||||||
mv ./exporter/target $bundle_dir;
|
mv ./exporter/target $bundle_dir;
|
||||||
|
|
||||||
echo $version > $bundle_dir/version.txt
|
echo $version > $bundle_dir/version.txt
|
||||||
put-license-file $bundle_dir;
|
put-license-file $bundle_dir;
|
||||||
|
|
||||||
echo ">> bundle exporter end";
|
echo ">> bundle exporter end";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function build-docs-bundle {
|
||||||
|
echo ">> bundle docs start";
|
||||||
|
|
||||||
|
mkdir -p ./bundles
|
||||||
|
local version=$(print-current-version);
|
||||||
|
local bundle_dir="./bundles/docs";
|
||||||
|
|
||||||
|
build "docs";
|
||||||
|
|
||||||
|
rm -rf $bundle_dir;
|
||||||
|
mv ./docs/_dist $bundle_dir;
|
||||||
|
echo $version > $bundle_dir/version.txt;
|
||||||
|
put-license-file $bundle_dir;
|
||||||
|
echo ">> bundle docs end";
|
||||||
|
}
|
||||||
|
|
||||||
function build-docker-images {
|
function build-docker-images {
|
||||||
rsync -avr --delete ./bundles/frontend/ ./docker/images/bundle-frontend/;
|
rsync -avr --delete ./bundles/frontend/ ./docker/images/bundle-frontend/;
|
||||||
rsync -avr --delete ./bundles/backend/ ./docker/images/bundle-backend/;
|
rsync -avr --delete ./bundles/backend/ ./docker/images/bundle-backend/;
|
||||||
|
@ -204,12 +218,24 @@ function usage {
|
||||||
echo "Options:"
|
echo "Options:"
|
||||||
echo "- pull-devenv Pulls docker development oriented image"
|
echo "- pull-devenv Pulls docker development oriented image"
|
||||||
echo "- build-devenv Build docker development oriented image"
|
echo "- build-devenv Build docker development oriented image"
|
||||||
|
echo "- build-devenv-local Build a local docker development oriented image"
|
||||||
echo "- create-devenv Create the development oriented docker compose service."
|
echo "- create-devenv Create the development oriented docker compose service."
|
||||||
echo "- start-devenv Start the development oriented docker compose service."
|
echo "- start-devenv Start the development oriented docker compose service."
|
||||||
echo "- stop-devenv Stops the development oriented docker compose service."
|
echo "- stop-devenv Stops the development oriented docker compose service."
|
||||||
echo "- drop-devenv Remove the development oriented docker compose containers, volumes and clean images."
|
echo "- drop-devenv Remove the development oriented docker compose containers, volumes and clean images."
|
||||||
echo "- run-devenv Attaches to the running devenv container and starts development environment"
|
echo "- run-devenv Attaches to the running devenv container and starts development environment"
|
||||||
|
echo "- run-devenv-shell Attaches to the running devenv container and starts a bash shell."
|
||||||
|
echo "- log-devenv Show logs of the running devenv docker compose service."
|
||||||
echo ""
|
echo ""
|
||||||
|
echo "- build-bundle Build all bundles (frontend, backend and exporter)."
|
||||||
|
echo "- build-frontend-bundle Build frontend bundle"
|
||||||
|
echo "- build-backend-bundle Build backend bundle."
|
||||||
|
echo "- build-exporter-bundle Build exporter bundle."
|
||||||
|
echo "- build-docs-bundle Build docs bundle."
|
||||||
|
echo ""
|
||||||
|
echo "- build-docker-images Build all docker images (frontend, backend and exporter)."
|
||||||
|
echo ""
|
||||||
|
echo "- version Show penpot's version."
|
||||||
}
|
}
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
|
@ -276,6 +302,10 @@ case $1 in
|
||||||
build-exporter-bundle;
|
build-exporter-bundle;
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
build-docs-bundle)
|
||||||
|
build-docs-bundle;
|
||||||
|
;;
|
||||||
|
|
||||||
build-docker-images)
|
build-docker-images)
|
||||||
build-docker-images
|
build-docker-images
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue