From d24bf59dba1058831fe32e27e77eff81adb9dfaf Mon Sep 17 00:00:00 2001 From: Kay0u Date: Wed, 3 Jun 2020 23:39:16 +0200 Subject: [PATCH 1/2] https://github.com/YunoHost/yunohost-admin/pull/304 --- ynh-dev | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ynh-dev b/ynh-dev index 04a7930..8f3b565 100755 --- a/ynh-dev +++ b/ynh-dev @@ -165,7 +165,6 @@ function attach_ynhdev() # './ynh-dev use-git yunohost-admin' if [[ ! -L ./yunohost-admin/src/dist ]] then - ln -s /var/cache/ynh-dev/yunohost-admin/bower_components ./yunohost-admin/src/ ln -s /var/cache/ynh-dev/yunohost-admin/node_modules ./yunohost-admin/src/ ln -s /var/cache/ynh-dev/yunohost-admin/dist ./yunohost-admin/src/ fi @@ -287,7 +286,7 @@ function use_git() then info "Installing dependencies to develop in yunohost-admin ..." - curl -sL https://deb.nodesource.com/setup_6.x | bash - + curl -sL https://deb.nodesource.com/setup_10.x | bash - apt install nodejs -y npm install -g bower @@ -296,7 +295,6 @@ function use_git() cd /ynh-dev/yunohost-admin/src npm install --no-bin-links - su ynhdev -c "bower install" su ynhdev -c "gulp build --dev" create_sym_link "/ynh-dev/yunohost-admin/src" "/usr/share/yunohost/admin" From 398f0931aaa94c4e1167f507ec71af29c0b8897b Mon Sep 17 00:00:00 2001 From: Kay0u Date: Thu, 4 Jun 2020 00:08:22 +0200 Subject: [PATCH 2/2] use the default task of gulp --- ynh-dev | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ynh-dev b/ynh-dev index 8f3b565..bf5ce4f 100755 --- a/ynh-dev +++ b/ynh-dev @@ -295,8 +295,6 @@ function use_git() cd /ynh-dev/yunohost-admin/src npm install --no-bin-links - su ynhdev -c "gulp build --dev" - create_sym_link "/ynh-dev/yunohost-admin/src" "/usr/share/yunohost/admin" success "Now using Git repository for yunohost-admin" @@ -308,7 +306,7 @@ function use_git() warn "don't need to re-run npm yourself everytime you change " warn "something ! " warn "-------------------------------------------------------- " - su ynhdev -c "gulp watch --dev" + su ynhdev -c "gulp --dev" ;; esac