Monorepo for astro-bundle-budget β a build-time JS/CSS bundle size budget integration for Astro.
astro-bundle-budget/
βββ packages/
β βββ astro-bundle-budget/ # the published npm package
βββ demo/ # local Astro site for testing the integration
Install all workspace dependencies from the root:
npm install1οΈβ£ Build the package (required before testing in the demo):
npm run build:pkgOr keep it watching for changes in a separate terminal:
cd packages/astro-bundle-budget && npm run dev2οΈβ£ Run the demo build to see the integration in action:
npm run build:demo3οΈβ£ Run both in one shot:
npm run test:demoAdd these scripts to the root package.json:
{
"scripts": {
"build:pkg": "npm run build --workspace=packages/astro-bundle-budget",
"build:demo": "npm run build --workspace=demo",
"test:demo": "npm run build:pkg && npm run build:demo"
}
}npm test --workspace=packages/astro-bundle-budgetSee packages/astro-bundle-budget/README.md for full usage docs, options, and examples.
MIT Β© Alvin James Bellero