mirror of
https://github.com/YunoHost-Apps/wikijs_ynh.git
synced 2024-09-03 20:36:09 +02:00
using yarn
This commit is contained in:
parent
cb156914b6
commit
4b1aa742a2
4 changed files with 14 additions and 9 deletions
|
@ -98,9 +98,12 @@ ynh_app_setting_set $app port $port
|
|||
### - As well as the section "REINSTALL DEPENDENCIES" in the restore script
|
||||
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
|
||||
|
||||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||
|
||||
ynh_install_nodejs 10
|
||||
|
||||
ynh_install_app_dependencies redis-server postgresql postgresql-contrib
|
||||
ynh_install_app_dependencies redis-server postgresql postgresql-contrib yarn
|
||||
|
||||
#=================================================
|
||||
# CREATE A POSTGRESQL DATABASE
|
||||
|
@ -190,12 +193,6 @@ chown -R "$app":"$app" "$final_path"
|
|||
|
||||
pushd $final_path
|
||||
ynh_use_nodejs
|
||||
#sudo -u $app env PATH=$PATH:$nodejs_path npm install "acorn@^6.0.0" --save
|
||||
#sudo -u $app env PATH=$PATH:$nodejs_path npm install "babel-core@>=6.0.20" --save
|
||||
#sudo -u $app env PATH=$PATH:$nodejs_path npm install "graphql@^0.13.0" --save
|
||||
#sudo -u $app env PATH=$PATH:$nodejs_path npm install "eslint@>=5.0.0" --save
|
||||
#sudo -u $app env PATH=$PATH:$nodejs_path npm install
|
||||
#sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path yarn install
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path npm run build
|
||||
popd
|
||||
|
|
|
@ -58,6 +58,8 @@ ynh_remove_app_dependencies
|
|||
ynh_use_nodejs
|
||||
ynh_remove_nodejs
|
||||
|
||||
rm -rf "/etc/apt/sources.list.d/yarn.list"
|
||||
|
||||
#=================================================
|
||||
# REMOVE APP MAIN DIR
|
||||
#=================================================
|
||||
|
|
|
@ -93,9 +93,12 @@ chown -R "$app":"$app" "$final_path"
|
|||
|
||||
# Define and install dependencies
|
||||
|
||||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||
|
||||
ynh_install_nodejs 10
|
||||
|
||||
ynh_install_app_dependencies redis-server postgresql postgresql-contrib
|
||||
ynh_install_app_dependencies redis-server postgresql postgresql-contrib yarn
|
||||
|
||||
#=================================================
|
||||
# RESTORE SYSTEMD
|
||||
|
|
|
@ -102,9 +102,12 @@ ynh_add_nginx_config
|
|||
# UPGRADE DEPENDENCIES
|
||||
#=================================================
|
||||
|
||||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||
|
||||
ynh_install_nodejs 10
|
||||
|
||||
ynh_install_app_dependencies redis-server postgresql postgresql-contrib
|
||||
ynh_install_app_dependencies redis-server postgresql postgresql-contrib yarn
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
|
|
Loading…
Reference in a new issue