harbor/make/dev/nodeclarity/entrypoint.sh

26 lines
299 B
Bash
Raw Normal View History

2017-02-21 07:54:42 +01:00
#!/bin/bash
set -e
2017-03-01 10:14:09 +01:00
cd /clarity-seed
rm -rf dist/*
npm_proxy=
while getopts p: option
do
case "${option}"
in
p) npm_proxy=${OPTARG};;
esac
done
if [ ! -z "$npm_proxy" -a "$npm_proxy" != " " ]; then
npm config set proxy $npm_proxy
fi
2017-03-01 10:14:09 +01:00
npm install
2017-02-21 07:54:42 +01:00
ng build
2017-03-01 10:14:09 +01:00
cp -r ./src/i18n/ dist/
2017-02-21 07:54:42 +01:00