mirror of
https://github.com/YunoHost-Apps/penpot_ynh.git
synced 2024-09-03 19:56:56 +02:00
Use yarn 4.x
This commit is contained in:
parent
2ce2cd4053
commit
13b345bc39
3 changed files with 7 additions and 10 deletions
|
@ -132,9 +132,6 @@ ram.runtime = "50M"
|
|||
"python3-tabulate",
|
||||
"fontforge"
|
||||
]
|
||||
extras.yarn.repo = "deb https://dl.yarnpkg.com/debian/ stable main"
|
||||
extras.yarn.key = "https://dl.yarnpkg.com/debian/pubkey.gpg"
|
||||
extras.yarn.packages = "yarn"
|
||||
|
||||
[resources.database]
|
||||
type = "postgresql"
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
#=================================================
|
||||
|
||||
nodejs_version=20
|
||||
current_hash="1eaf7b2b4"
|
||||
version="1.19.3-10698-g1eaf7b2b4"
|
||||
current_hash="41cdd245"
|
||||
version="2.0.0-10698-g41cdd245"
|
||||
build_date="Mon, 18 Sep 2023 09:14:03 +0000"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -64,18 +64,18 @@ chmod -R o-rwx "$install_dir"
|
|||
ynh_script_progression --message="Building frontend..." --weight=5
|
||||
|
||||
pushd $install_dir/build/frontend
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH corepack enable
|
||||
ynh_exec_warn_less ynh_exec_as "$app" env $ynh_node_load_PATH corepack prepare --activate
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --pure-lockfile
|
||||
|
||||
# ynh_exec_warn_less
|
||||
ynh_exec_warn_less ynh_exec_as $app env PATH=$PATH JAVA_HOME=$JAVA_HOME clojure -J-Xms100M -J-Xmx800M -J-XX:+UseSerialGC -M:dev:shadow-cljs release main --config-merge "{:release-version \"${current_hash}\"}"
|
||||
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp build:assets
|
||||
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp build:styles
|
||||
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp clean:dist
|
||||
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp build:copy
|
||||
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run compile
|
||||
|
||||
ynh_replace_string --match_string="%version%" --replace_string="$version" --target_file="$install_dir/build/frontend/target/dist/index.html"
|
||||
ynh_replace_string --match_string="%buildDate%" --replace_string="$build_date" --target_file="$install_dir/build/frontend/target/dist/index.html"
|
||||
echo "$version" > target/version.txt;
|
||||
#echo "$version" > target/version.txt;
|
||||
popd
|
||||
|
||||
mkdir -p $install_dir/frontend
|
||||
|
|
Loading…
Add table
Reference in a new issue