diff options
Diffstat (limited to 'scripts/build.sh')
-rwxr-xr-x | scripts/build.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh index 7db02bd..6be51ca 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,10 +1,15 @@ #!/usr/bin/env bash declare -a arr=("core" "client" "server") +rm -rf docs || exit 0 +mkdir docs || exit 0 for i in "${arr[@]}" do cd $i yarn run build + mkdir ../docs/$i + cp -R docs/* ../docs/$i + rm -rf docs cd .. done |