Updated puppet scripts to use webpack

instead of bower ( deprecated)

Change-Id: Id4848e588da4874638976362f23b1cf195b04b54
This commit is contained in:
Sebastian Marcet 2018-04-10 10:34:17 -03:00
parent 33f81f0190
commit f76fd943fe
1 changed files with 4 additions and 12 deletions

View File

@ -88,7 +88,8 @@ function site_init {
fi
update_node
install_bower
npm install
npm run build
# activate site
rm -rf $SITE_ROOT/w
ln -s $SITE_ROOT/slot0 $SITE_ROOT/w
@ -140,16 +141,6 @@ function update_node {
n latest;
}
function install_bower {
npm install -g bower;
npm install -g webpack;
cd $target_dir;
# run bower
if [ -f "$target_dir/bower.json" ]; then
bower install --allow-root --config.interactive=false
fi
}
function site_update {
if [ ! $1 ]; then
echo "ERROR: missing site parameter"
@ -238,7 +229,8 @@ function site_update {
cd $target_dir
php artisan migrate --env=$LARAVEL_ENV --force
update_node
install_bower
npm install
npm run build
# activate site
rm -rf $SITE_ROOT/w
ln -s $target_dir $SITE_ROOT/w