Commit Graph

6 Commits

Author SHA1 Message Date
Bernhard Kirchen
f298fd92f5 webapp: autocompile script: changes package.json triggers build
if the package.json file changes, we must trigger building the web
application, as in particular, a completely different version of yarn
could be required.
2024-09-21 21:47:02 +02:00
Bernhard Kirchen
2f4eef47e9 webapp: autocompile script needs to run yarn within webapp dir
we need to change the working directory to the webapp directory such
that corepack installs and uses the expected version of yarn. otherwise,
corepack installs a copy of yarn into the repository root directory.
2024-09-21 21:04:10 +02:00
Bernhard Kirchen
a2092e66c4 webapp: autocompile script: use portable subprocess
we added shell=True so that on Windows, yarn would be found. however,
using the list syntax to define the command and its arguments to
Python's subprocess is broken on GNU/Linux by shell=True. instead, use a
single string (command and arguments), which works on both Windows and
GNU/Linux.
2024-09-21 21:00:48 +02:00
Bernhard Kirchen
789a07e288 webapp: use shell=True in autocompile script
we need shell=True as on Windows, path resolution to find the yarn
"exectuable" (a shell script) is only performed by cmd.exe, not by
Python itself. as we are calling yarn with fixed arguments, using
shell=True is fine.
2024-09-20 15:53:05 +02:00
Bernhard Kirchen
f8595865ea webapp autocompile: try yarnpkg 2024-09-11 21:51:08 +02:00
spcqike
cec4003f6e
Implement webapp autocompile (#1193)
add pre-script to check if webapp was compiled or sources changed and auto compile.

---------

Co-authored-by: Bernhard Kirchen <schlimmchen@posteo.net>
2024-09-05 23:02:42 +02:00