[enh] theme/simple: package.json revision

Set minor versioning for most of the packages that iterate fast or we know won't
cause problems, and fixed versioning for the rest.

Packages going into bundles should be placed in "dependencies".

The inspection of prod bundles is necessary. Although it does not make a lot of
sense right now, it will be useful in later PR and will give us a reference to
start with.
This commit is contained in:
Ivan Gabaldon
2025-07-20 12:28:11 +02:00
committed by Markus Heiser
parent 0b913053a7
commit 7e1c7096ce
7 changed files with 285 additions and 441 deletions

View File

@@ -44,6 +44,21 @@ vite.simple.build() {
)
}
vite.simple.analyze() {
(
set -e
templates.simple.pygments
node.env
build_msg SIMPLE "run analyze of theme from: ${VITE_SIMPLE_THEME}"
pushd "${VITE_SIMPLE_THEME}"
npm install
VITE_BUNDLE_ANALYZE=true npm run build
popd &>/dev/null
)
}
vite.simple.fix() {
(
set -e