Move to PatternFly Elements and lit

PFE uses lit, so it makes sense to just use that for the main
application as well. Web components are pretty much React built into the
web platform, and lit adds some convenience around that.

This is mostly a demo -- for real Cockpit pages, PF Elements is still
missing too many components.
This commit is contained in:
Martin Pitt 2024-11-08 09:05:22 +01:00
parent 6506f469ac
commit 5aa20207b7
11 changed files with 51 additions and 73 deletions

View file

@ -7,6 +7,19 @@ git init
rm -f bots # common local case: existing bots symlink
make bots test/common
# support running from clean git tree
if [ -e .git ]; then
# move package.json temporarily otherwise npm might try to install the dependencies from it
rm -f package-lock.json # otherwise the command below installs *everything*, argh
mv package.json .package.json
# only install a subset to save time/space
npm install query-selector-shadow-dom
mv .package.json package.json
else
# upstream tarballs ship test dependencies; print version for debugging
grep '"version"' node_modules/query-selector-shadow-dom/package.json
fi
# disable detection of affected tests; testing takes too long as there is no parallelization
mv .git dot-git