1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/distbin_ynh.git synced 2024-09-03 18:26:10 +02:00

Adding Yarn

This commit is contained in:
yalh76 2019-02-03 05:38:41 +01:00
parent f1ad2f1648
commit 41aa41af4a
3 changed files with 5 additions and 10 deletions

View file

@ -190,10 +190,9 @@ mkdir -p "$final_path/db"
chown -R "$app":"$app" "$final_path" chown -R "$app":"$app" "$final_path"
pushd $final_path pushd $final_path
ynh_use_nodejs ynh_use_nodejs
sudo -u $app env PATH=$PATH:$nodejs_path npm install hoek@^4.2.1 --save --production #sudo -u $app env PATH=$PATH:$nodejs_path npm install hoek@^4.2.1 --save --production
sudo -u $app env PATH=$PATH:$nodejs_path npm install ts-node --save --production sudo -u $app env PATH=$PATH:$nodejs_path yarn install ts-node --save --production
sudo -u $app env PATH=$PATH:$nodejs_path npm install --production sudo -u $app env PATH=$PATH:$nodejs_path yarn install --production
sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
popd popd
#================================================= #=================================================

View file

@ -102,9 +102,6 @@ fi
# REMOVE THE CRON FILE # REMOVE THE CRON FILE
#================================================= #=================================================
#npm uninstall -g ts-node
#npm uninstall -g typescript
# Remove a cron file # Remove a cron file
#ynh_secure_remove "/etc/cron.d/$app" #ynh_secure_remove "/etc/cron.d/$app"

View file

@ -139,9 +139,8 @@ mkdir -p "$final_path/db"
chown -R "$app":"$app" "$final_path" chown -R "$app":"$app" "$final_path"
pushd $final_path pushd $final_path
ynh_use_nodejs ynh_use_nodejs
sudo -u $app env PATH=$PATH:$nodejs_path npm update --production sudo -u $app env PATH=$PATH:$nodejs_path yarn update --production
sudo -u $app env PATH=$PATH:$nodejs_path npm install --production sudo -u $app env PATH=$PATH:$nodejs_path yarn install --production
sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
popd popd
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script. ### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.