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" + diff --git a/scripts/install b/scripts/install index 5f0983b..24383f8 100755 --- a/scripts/install +++ b/scripts/install @@ -42,12 +42,12 @@ 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 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 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