mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
♻️ Refactor on docker and build scripts.
- Migrate to from ubuntu to debian. - Add new buildenv image. - Remove production images building from this repo. - Better comaptibility with other architectures (arm64). - Improved config management.
This commit is contained in:
16
frontend/scripts/build-app.sh
Executable file
16
frontend/scripts/build-app.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source ~/.bashrc
|
||||
export NODE_ENV=production;
|
||||
|
||||
set -ex
|
||||
|
||||
npx gulp dist:clean || exit 1;
|
||||
npx gulp dist || exit 1;
|
||||
|
||||
cp -r ./target/dist ./target/dist2
|
||||
mv ./target/dist2 ./target/dist/dbg
|
||||
|
||||
clojure -Adev tools.clj dist:all || exit 1;
|
||||
|
||||
npx gulp dist:gzip || exit 1;
|
||||
@@ -1,13 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
source ~/.bashrc
|
||||
|
||||
set -ex
|
||||
|
||||
npm ci
|
||||
|
||||
npx gulp dist:clean || exit 1
|
||||
npx gulp dist || exit 1
|
||||
|
||||
clojure -Adev tools.clj dbg-dist:all || exit 1
|
||||
|
||||
npx gulp dist:gzip || exit 1
|
||||
@@ -1,16 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
source ~/.bashrc
|
||||
|
||||
set -ex
|
||||
|
||||
npm ci
|
||||
|
||||
export NODE_ENV=production;
|
||||
|
||||
npx gulp dist:clean || exit 1;
|
||||
npx gulp dist || exit 1;
|
||||
|
||||
clojure -Adev tools.clj dist:all || exit 1
|
||||
|
||||
npx gulp dist:gzip || exit 1
|
||||
|
||||
Reference in New Issue
Block a user