From 66dd264f7b15c05006faa00694c88c56794edc54 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 11 Jun 2017 11:29:03 +0200 Subject: Better build/dev scripts --- scripts/build/client.sh | 7 +++++++ scripts/build/client/prod.sh | 7 ------- scripts/build/server.sh | 5 +++++ scripts/build/server/prod.sh | 5 ----- 4 files changed, 12 insertions(+), 12 deletions(-) create mode 100755 scripts/build/client.sh delete mode 100755 scripts/build/client/prod.sh create mode 100755 scripts/build/server.sh delete mode 100755 scripts/build/server/prod.sh (limited to 'scripts/build') diff --git a/scripts/build/client.sh b/scripts/build/client.sh new file mode 100755 index 000000000..65b67edcf --- /dev/null +++ b/scripts/build/client.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +cd client || exit -1 + +rm -rf ./compiled + +npm run webpack -- --config config/webpack.prod.js --progress --profile --bail diff --git a/scripts/build/client/prod.sh b/scripts/build/client/prod.sh deleted file mode 100755 index 65b67edcf..000000000 --- a/scripts/build/client/prod.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env sh - -cd client || exit -1 - -rm -rf ./compiled - -npm run webpack -- --config config/webpack.prod.js --progress --profile --bail diff --git a/scripts/build/server.sh b/scripts/build/server.sh new file mode 100755 index 000000000..811da2154 --- /dev/null +++ b/scripts/build/server.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env sh + +rm -rf ./dist + +npm run tsc diff --git a/scripts/build/server/prod.sh b/scripts/build/server/prod.sh deleted file mode 100755 index 811da2154..000000000 --- a/scripts/build/server/prod.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env sh - -rm -rf ./dist - -npm run tsc -- cgit v1.2.3