From c93841cee786046e2ee1307661caae3cb9c3b787 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Wed, 12 Jun 2024 12:18:19 +0200 Subject: [PATCH 1/4] Update install --- scripts/install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 5f0983b..c2bab24 100755 --- a/scripts/install +++ b/scripts/install @@ -42,12 +42,13 @@ ynh_add_nginx_config #================================================= # BUILD APP #================================================= -ynh_script_progression --message="Building __APP__..." +ynh_script_progression --message="Building $app..." pushd $install_dir ynh_use_nodejs - ynh_npm install yarn - ynh_npm install vite + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install yarn + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install vite + ynh_script_progression --message="npm install... This can be very long, be patient !" --weight=18 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --network-timeout=100000 From 020db917b9b55575c59dda2a7472c00baec1dd0c Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Wed, 12 Jun 2024 12:25:31 +0200 Subject: [PATCH 2/4] Update install --- scripts/install | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/install b/scripts/install index c2bab24..24383f8 100755 --- a/scripts/install +++ b/scripts/install @@ -46,7 +46,6 @@ ynh_script_progression --message="Building $app..." pushd $install_dir ynh_use_nodejs - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install yarn ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install vite ynh_script_progression --message="npm install... This can be very long, be patient !" --weight=18 From f533d675355b1d9d7a182b89bdaf2628756ba55f Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Wed, 12 Jun 2024 12:28:30 +0200 Subject: [PATCH 3/4] yarn repo --- manifest.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manifest.toml b/manifest.toml index aa5ce1f..8149b58 100644 --- a/manifest.toml +++ b/manifest.toml @@ -58,3 +58,8 @@ ram.runtime = "50M" [resources.ports] main.default = 9494 + [resources.apt] + extras.yarn.repo = "deb https://dl.yarnpkg.com/debian/ stable main" + extras.yarn.key = "https://dl.yarnpkg.com/debian/pubkey.gpg" + extras.yarn.packages = "yarn" + From dd1f3dd02b641ff9c1e2a970662b144f4ce2f864 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Wed, 12 Jun 2024 12:33:10 +0200 Subject: [PATCH 4/4] Update upgrade --- scripts/upgrade | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 9272c9a..13f2021 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -57,7 +57,6 @@ ynh_script_progression --message="Building __APP__..." pushd $install_dir ynh_use_nodejs - ynh_npm install yarn ynh_npm install vite ynh_script_progression --message="npm install... This can be very long, be patient !" --weight=18