prepare for depoyment
This commit is contained in:
@@ -4,6 +4,8 @@ set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
xtrace="false"
|
||||
debug="false"
|
||||
distDirectory=${DIST_DIRECTORY:-"dist"}
|
||||
|
||||
if [[ ! -z "${distDirectory}" ]]; then
|
||||
@@ -12,6 +14,19 @@ if [[ ! -z "${distDirectory}" ]]; then
|
||||
rm -rf ${distDirectory}
|
||||
fi
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case $1 in
|
||||
--xtrace|-x)
|
||||
xtrace="true"
|
||||
shift
|
||||
;;
|
||||
--debug|-d)
|
||||
debug="true"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
bun run lint
|
||||
bun run build:node
|
||||
bun run build:browser
|
||||
@@ -24,8 +39,8 @@ cp .npmrc ./${distDirectory}
|
||||
echo "Copying [.nvmrc] to [${distDirectory}]"
|
||||
cp .nvmrc ./${distDirectory}
|
||||
|
||||
echo "Copying [README.md] to [${distDirectory}]"
|
||||
cp README ./${distDirectory}
|
||||
# echo "Copying [README.md] to [${distDirectory}]"
|
||||
# cp README ./${distDirectory}
|
||||
|
||||
ls ${distDirectory}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user