From f76fd943fea3687fd54f4892630e0b5bba291306 Mon Sep 17 00:00:00 2001 From: Sebastian Marcet Date: Tue, 10 Apr 2018 10:34:17 -0300 Subject: [PATCH] Updated puppet scripts to use webpack instead of bower ( deprecated) Change-Id: Id4848e588da4874638976362f23b1cf195b04b54 --- files/functions | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/files/functions b/files/functions index d28eeed..b5d8513 100644 --- a/files/functions +++ b/files/functions @@ -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