mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 05:26:11 +02:00
✨ Improve build scripts.
This commit is contained in:
parent
6891826c78
commit
32afe57e18
16 changed files with 174 additions and 144 deletions
17
frontend/scripts/build
Executable file
17
frontend/scripts/build
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
CURRENT_VERSION=$1;
|
||||
CURRENT_HASH=$(git rev-parse --short HEAD);
|
||||
EXTRA_PARAMS=$SHADOWCLJS_EXTRA_PARAMS;
|
||||
|
||||
yarn install || exit 1;
|
||||
npx gulp clean || exit 1;
|
||||
npx shadow-cljs release main --config-merge "{:release-version \"${CURRENT_HASH}\"}" $EXTRA_PARAMS || exit 1
|
||||
npx gulp build || exit 1;
|
||||
npx gulp dist:clean || exit 1;
|
||||
npx gulp dist:copy || exit 1;
|
||||
|
||||
sed -i -re "s/\%version\%/$CURRENT_VERSION/g" ./target/dist/index.html;
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
source ~/.bashrc
|
||||
|
||||
set -ex;
|
||||
|
||||
yarn install
|
||||
clojure -Adev tools.clj build:tests
|
||||
node ./target/tests/main
|
|
@ -1,21 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
source ~/.bashrc
|
||||
|
||||
set -ex
|
||||
|
||||
if [ -z "${TAG}" ]; then
|
||||
export TAG=$(git log -n 1 --pretty=format:%H -- ./);
|
||||
fi
|
||||
|
||||
yarn install
|
||||
|
||||
export NODE_ENV=production;
|
||||
|
||||
# Clean the output directory
|
||||
npx gulp clean || exit 1;
|
||||
|
||||
npx shadow-cljs release main --config-merge "{:release-version \"${TAG}\"}" $SHADOWCLJS_EXTRA_PARAMS
|
||||
npx gulp build || exit 1;
|
||||
npx gulp dist:clean || exit 1;
|
||||
npx gulp dist:copy || exit 1;
|
Loading…
Add table
Add a link
Reference in a new issue