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:
parent
f1ad2f1648
commit
41aa41af4a
3 changed files with 5 additions and 10 deletions
|
@ -190,10 +190,9 @@ mkdir -p "$final_path/db"
|
|||
chown -R "$app":"$app" "$final_path"
|
||||
pushd $final_path
|
||||
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 ts-node --save --production
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path npm install --production
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
|
||||
#sudo -u $app env PATH=$PATH:$nodejs_path npm install hoek@^4.2.1 --save --production
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path yarn install ts-node --save --production
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path yarn install --production
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -102,9 +102,6 @@ fi
|
|||
# REMOVE THE CRON FILE
|
||||
#=================================================
|
||||
|
||||
#npm uninstall -g ts-node
|
||||
#npm uninstall -g typescript
|
||||
|
||||
# Remove a cron file
|
||||
#ynh_secure_remove "/etc/cron.d/$app"
|
||||
|
||||
|
|
|
@ -139,9 +139,8 @@ mkdir -p "$final_path/db"
|
|||
chown -R "$app":"$app" "$final_path"
|
||||
pushd $final_path
|
||||
ynh_use_nodejs
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path npm update --production
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path npm install --production
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path yarn update --production
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path yarn install --production
|
||||
popd
|
||||
|
||||
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.
|
||||
|
|
Loading…
Reference in a new issue