0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-09 21:41:23 -05:00

misc: more speed improvement on develop images building

This commit is contained in:
Andrey Antukh 2019-07-04 09:40:17 +02:00
parent d8e205ec25
commit d908cf566a
6 changed files with 27 additions and 11 deletions

View file

@ -14,10 +14,12 @@
"dist:main": "clojure -Adev tools.clj dist main",
"dist:view": "clojure -Adev tools.clj dist view",
"dist:worker": "clojure -Adev tools.clj dist worker",
"dist:all": "clojure -Adev tools.clj dist-all",
"dist:assets": "NODE_ENV=production gulp dist",
"build:main": "clojure -Adev tools.clj build main",
"build:view": "clojure -Adev tools.clj build view",
"build:worker": "clojure -Adev tools.clj build worker",
"build:all": "clojure -Adev tools.clj build-all",
"build:assets": "gulp dist",
"start": "npm run figwheel",
"build:test": "clojure -Adev tools.clj build-tests",

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
source ~/.bashrc
npm install
npm ci
npm run build:test || exit 1;
node ./target/tests/main

View file

@ -1,10 +1,11 @@
#!/usr/bin/env bash
source ~/.bashrc
npm install
npm ci
npm run dist:clean || exit 1;
npm run build:assets || exit 1;
npm run build:main || exit 1;
npm run build:view || exit 1;
npm run build:worker || exit 1;
npm run build:all || exit 1;
# npm run build:main || exit 1;
# npm run build:view || exit 1;
# npm run build:worker || exit 1;

View file

@ -1,10 +1,11 @@
#!/usr/bin/env bash
source ~/.bashrc
npm install
npm ci
npm run dist:clean || exit 1;
npm run dist:assets || exit 1;
npm run dist:main || exit 1;
npm run dist:view || exit 1;
npm run dist:worker || exit 1;
npm run dist:all || exit 1;
# npm run dist:main || exit 1;
# npm run dist:view || exit 1;
# npm run dist:worker || exit 1;

View file

@ -110,6 +110,18 @@
build
(:worker figwheel-builds))))
(defmethod task "build-all"
[args]
(task ["build" "main"])
(task ["build" "view"])
(task ["build" "worker"]))
(defmethod task "dist-all"
[args]
(task ["dist" "main"])
(task ["dist" "view"])
(task ["dist" "worker"]))
;;; Build script entrypoint. This should be the last expression.
(task *command-line-args*)

View file

@ -134,7 +134,7 @@ function build-backend-local {
rm -rf ./backend/dist
rsync -avr \
rsync -ar \
--exclude="/test" \
--exclude="/resources/public/media" \
--exclude="/target" \
@ -193,7 +193,7 @@ function run-develop {
build-develop-frontend-image
fi
echo "Running production images..."
echo "Running develop images..."
sudo docker-compose -p uxbox-develop -f ./docker/docker-compose-develop.yml up -d
}