0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00
penpot/exporter/scripts/build
2024-10-15 09:13:46 +02:00

23 lines
382 B
Bash
Executable file

#!/usr/bin/env bash
set -ex
export CURRENT_VERSION=$1;
yarn install
rm -rf target
export NODE_ENV=production;
# Build the application
clojure -M:dev:shadow-cljs release main;
# Remove source
rm -rf target/app;
# Copy package*.json files
cp ../.yarnrc.yml target/;
cp yarn.lock target/;
cp package.json target/;
sed -i -re "s/\%version\%/$CURRENT_VERSION/g" ./target/app.js;