Tests / writer-pipeline tests (push) Successful in 1m30s
Tests / frontend lib tests (pull_request) Successful in 1m22s
Tests / bridge tests (push) Successful in 1m30s
Tests / frontend lib tests (push) Successful in 1m30s
Tests / bridge tests (pull_request) Successful in 1m23s
Tests / writer-pipeline tests (pull_request) Successful in 1m23s
Post-merge Lighthouse re-verification of PR #47 confirmed article TBT regression is resolved (7416ms -> 0-348ms, Performance 60 -> 99 median, 5 runs, results in PERFORMANCE_BASELINE.md). This follow-up closes a gap found during that verification and widens the pass margin: - bridge/package.json: sanitize-html.test.ts (added in the original fix) was never wired into the test/test:coverage scripts, so the "28 bridge sanitizer tests pass" claim wasn't actually exercised by npm test. Fixed. - Defer mobile-menu and share-button click handlers to requestIdleCallback (institutional/sports headers, ArticleShareBar) so they don't compete with hydration-critical work. - Split Base.astro's theme-flash-prevention script into a minimal inline snippet (runs before paint) and the deferred click-handler logic, instead of one blocking script. - bridge articles route: /articles/:slug/related accepts an optional ?category_id= to skip a redundant WP post-by-slug fetch when the caller already has it. Paperclip-Agent: Miguel Teixeira (urlKey miguel-teixeira; id 0f722e1a-bc3e-4381-8d98-76fa3c7aea10) Paperclip-Issue: BIT-28145
Astro Starter Kit: Minimal
npm create astro@latest -- --template minimal
🧑🚀 Seasoned astronaut? Delete this file. Have fun!
🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.
There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the public/ directory.
🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
👀 Want to learn more?
Feel free to check our documentation or jump into our Discord server.