1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/thelounge_ynh.git synced 2024-09-03 20:35:54 +02:00

Merge pull request #52 from YunoHost-Apps/yarn

Yarn
This commit is contained in:
Éric Gaspar 2022-01-04 11:24:27 +01:00 committed by GitHub
commit f7fdd8686a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View file

@ -126,9 +126,9 @@ ynh_script_progression --message="Installing The Lounge..." --weight=10
pushd $final_path pushd $final_path
ynh_use_nodejs ynh_use_nodejs
NODE_ENV=production ynh_exec_warn_less yarn install ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install
NODE_ENV=production yarn add webpack webpack-cli --dev ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn build
NODE_ENV=production ynh_exec_warn_less yarn build ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn link
popd popd
#================================================= #=================================================

View file

@ -132,10 +132,9 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
pushd $final_path pushd $final_path
ynh_use_nodejs ynh_use_nodejs
#export NODE_ENV=production ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install
yarn install --production=true --silent ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn build
yarn add webpack webpack-dev-server --dev --non-interactive ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn link
yarn build --non-interactive
popd popd
fi fi