2020-07-02 03:42:01 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2023-12-22 06:40:24 -05:00
|
|
|
export CURRENT_VERSION=$1;
|
2022-01-20 08:27:03 -05:00
|
|
|
|
2020-07-03 09:29:26 -05:00
|
|
|
yarn install
|
2020-07-02 03:42:01 -05:00
|
|
|
rm -rf target
|
|
|
|
|
|
|
|
export NODE_ENV=production;
|
|
|
|
|
|
|
|
# Build the application
|
2024-10-14 16:16:34 -05:00
|
|
|
clojure -M:dev:shadow-cljs release main;
|
2020-07-02 03:42:01 -05:00
|
|
|
|
|
|
|
# Remove source
|
2022-01-20 08:27:03 -05:00
|
|
|
rm -rf target/app;
|
2020-07-02 03:42:01 -05:00
|
|
|
|
|
|
|
# Copy package*.json files
|
2024-04-10 07:58:12 -05:00
|
|
|
cp ../.yarnrc.yml target/;
|
2022-01-20 08:27:03 -05:00
|
|
|
cp yarn.lock target/;
|
|
|
|
cp package.json target/;
|
|
|
|
|
|
|
|
sed -i -re "s/\%version\%/$CURRENT_VERSION/g" ./target/app.js;
|