From cc52455d27c1a5d17d6d090bb1a60f40d2cd3ab3 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Tue, 10 Oct 2023 20:04:56 +0200 Subject: [PATCH] test yarn --- scripts/install | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/scripts/install b/scripts/install index 66c26ae..1ff9bdf 100755 --- a/scripts/install +++ b/scripts/install @@ -19,8 +19,8 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version # Upgrade NPM ynh_npm install --global npm@latest -# Install vite -ynh_npm install --global vite +# Install Yarn +ynh_npm install --global yarn #================================================= @@ -54,18 +54,13 @@ ynh_add_nginx_config pushd $install_dir ynh_use_nodejs - ynh_script_progression --message="Fetching npm dev dependencies... This can be very long, be patient !" --weight=18 - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$install_dir" NODE_ENV=production $ynh_npm ci --ignore-scripts + ynh_script_progression --message="Fetching Yarn dev dependencies... This can be very long, be patient !" --weight=18 + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --immutable --immutable-cache --check-cache --ignore-scripts --network-timeout=100000 - #fix dependency not installed - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$install_dir" NODE_ENV=production $ynh_npm install @sveltejs/kit + ynh_script_progression --message="Building Yarn dev dependencies... This can be very long, be patient !" --weight=25 + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run build - ynh_script_progression --message="Building npm dev dependencies... This can be very long, be patient !" --weight=25 - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$install_dir" NODE_ENV=production $ynh_npm run build - - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$install_dir" NODE_ENV=production $ynh_npm ci --ignore-scripts --omit=dev # optional - ynh_script_progression --message="Cleaning cache... " --weight=3 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn cache clean 2>&1