mirror of
https://github.com/YunoHost-Apps/lingva_ynh.git
synced 2024-09-03 19:36:20 +02:00
perbaiki npm
This commit is contained in:
parent
d0ccedf6e8
commit
286fa35e3b
3 changed files with 9 additions and 6 deletions
|
@ -41,9 +41,10 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Rebuilding the app..." --weight=1
|
ynh_script_progression --message="Rebuilding the app..." --weight=1
|
||||||
|
|
||||||
npm install --prefix "$install_dir"
|
ynh_use_nodejs
|
||||||
|
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install
|
||||||
npx next telemetry disable
|
npx next telemetry disable
|
||||||
npm run build --prefix "$install_dir"
|
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm build
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALISATION
|
# GENERIC FINALISATION
|
||||||
|
|
|
@ -55,9 +55,10 @@ chown $app:$app "$install_dir/.env.local"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Building the app..." --weight=1
|
ynh_script_progression --message="Building the app..." --weight=1
|
||||||
|
|
||||||
CYPRESS_CACHE_FOLDER="$install_dir/.cache/cypress npm install --prefix "$install_dir"
|
ynh_use_nodejs
|
||||||
|
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install
|
||||||
npx next telemetry disable
|
npx next telemetry disable
|
||||||
CYPRESS_CACHE_FOLDER="$install_dir/.cache/cypress npm run build --prefix "$install_dir"
|
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm build
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -116,9 +116,10 @@ chown $app:$app "$install_dir/.env.local"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Rebuilding the app..." --weight=1
|
ynh_script_progression --message="Rebuilding the app..." --weight=1
|
||||||
|
|
||||||
CYPRESS_CACHE_FOLDER="$install_dir/.cache/cypress" npm install --prefix "$install_dir"
|
ynh_use_nodejs
|
||||||
|
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install
|
||||||
npx next telemetry disable
|
npx next telemetry disable
|
||||||
CYPRESS_CACHE_FOLDER="$install_dir/.cache/cypress" npm run build --prefix "$install_dir"
|
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm build
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
Loading…
Add table
Reference in a new issue