Skip to content

shiftEscape/astro-integrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ astro-bundle-budget-workspace

Monorepo for astro-bundle-budget β€” a build-time JS/CSS bundle size budget integration for Astro.

πŸ“ Structure

astro-bundle-budget/
β”œβ”€β”€ packages/
β”‚   └── astro-bundle-budget/   # the published npm package
└── demo/                      # local Astro site for testing the integration

πŸš€ Getting started

Install all workspace dependencies from the root:

npm install

βš™οΈ Development workflow

1️⃣ Build the package (required before testing in the demo):

npm run build:pkg

Or keep it watching for changes in a separate terminal:

cd packages/astro-bundle-budget && npm run dev

2️⃣ Run the demo build to see the integration in action:

npm run build:demo

3️⃣ Run both in one shot:

npm run test:demo

Add 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"
  }
}

πŸ§ͺ Running tests

npm test --workspace=packages/astro-bundle-budget

πŸ“¦ Package

See packages/astro-bundle-budget/README.md for full usage docs, options, and examples.

πŸ“„ License

MIT Β© Alvin James Bellero

About

πŸ“¦ A collection of Astro Integration packages built by shiftEscape

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors