build script: simplify client-watch task

This commit is contained in:
Starbeamrainbowlabs 2019-03-10 00:14:59 +00:00
parent 782b849a53
commit b5c4d7d2fc
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

6
build
View file

@ -137,11 +137,7 @@ function task_dev-server-stop {
function task_client {
task_begin "Packaging Javascript";
node_modules/rollup/bin/rollup --sourcemap --config rollup.config.js;
exit_code=$?;
task_end ${exit_code};
if [[ "${exit_code}" -ne 0 ]]; then
exit ${exit_code};
fi
task_end $? "Error: rollup packing failed!";
task_begin "Copying html";
cp client_src/index.html "${build_output_folder}";