0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-09 06:11:23 -05:00

misc: simplify the build scripts

This commit is contained in:
Andrey Antukh 2019-07-19 08:37:21 +00:00
parent 53e74ec5cd
commit 3f62d7cb65
6 changed files with 22 additions and 37 deletions

View file

@ -1,10 +0,0 @@
#!/usr/bin/env bash
source ~/.bashrc
echo `env`
cd /home/uxbox/uxbox/frontend
npm install || exit 1;
npm run dist
# TODO: WIP

View file

@ -5,7 +5,7 @@ tmux -2 new-session -d -s uxbox
tmux new-window -t uxbox:1 -n 'figwheel'
tmux select-window -t uxbox:1
tmux send-keys -t uxbox 'cd uxbox/frontend' enter C-l
tmux send-keys -t uxbox 'npm run start' enter
tmux send-keys -t uxbox 'clojure -Adev tools.clj figwheel' enter
tmux new-window -t uxbox:2 -n 'backend'
tmux select-window -t uxbox:2
@ -16,7 +16,7 @@ tmux send-keys -t uxbox 'clojure -Adev:repl' enter
tmux rename-window -t uxbox:0 'gulp'
tmux select-window -t uxbox:0
tmux send-keys -t uxbox 'cd uxbox/frontend' enter C-l
tmux send-keys -t uxbox 'if [ ! -e ./node_modules ]; then npm install; fi' enter C-l
tmux send-keys -t uxbox 'npm run watch' enter
tmux send-keys -t uxbox 'if [ ! -e ./node_modules ]; then npm ci; fi' enter C-l
tmux send-keys -t uxbox 'npx gulp watch' enter
tmux -2 attach-session -t uxbox

View file

@ -8,23 +8,7 @@
"type": "git",
"url": "https://github.com/uxbox/uxbox"
},
"scripts": {
"watch": "gulp watch",
"dist:clean": "gulp dist:clean",
"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",
"figwheel": "clojure -Adev tools.clj figwheel"
},
"scripts": {},
"devDependencies": {
"gulp": "4.0.2",
"gulp-autoprefixer": "^6.1.0",

View file

@ -1,7 +1,10 @@
#!/usr/bin/env bash
source ~/.bashrc
set -ex;
npm ci
npm run build:test || exit 1;
clojure -Adev tools.clj build-tests
node ./target/tests/main

View file

@ -1,8 +1,11 @@
#!/usr/bin/env bash
source ~/.bashrc
set -ex
npm ci
npm run dist:clean || exit 1;
npm run build:assets || exit 1;
npm run build:all || exit 1;
npx gulp dist:clean || exit 1
npx gulp dist || exit 1
clojure -Adev tools.clj build-all || exit 1

View file

@ -1,8 +1,13 @@
#!/usr/bin/env bash
source ~/.bashrc
set -ex
npm ci
npm run dist:clean || exit 1;
npm run dist:assets || exit 1;
npm run dist:all || exit 1;
export NODE_ENV=production;
npx gulp dist:clean || exit 1;
npx gulp dist || exit 1;
clojure -Adev tools.clj dist-all