The web framework that scales with you — Build fast content sites, powerful web applications, dynamic server APIs, and everything in-between ️ Star to support our work!
Find a file
Nate Moore a87ce4412c
Improve HMR handling for styles, persisted islands (#3492)
* feat: improve HMR handling for styles, persisted islands

* Also using data-persist to keep injected <style>'s during HMR

* Updating E2E tests to validate that .astro HMR doesn't blow away component styles

* chore: add changeset

* copy/paste error when cleaning up tests

* big change - using inline <style> blocks instead of <link>s in dev

* Updating tests that were expecting <link> stylesheets in dev

* updating all E2E tests to use workspace versions for astro deps

* TEMP: adding debug logging to see why the Ubuntu test only fails in CI

* fix: Svelte styles are automatically handled by Vite, we can skip them in dev

* fix: svelte is more interesting, we need Astro to inject styles only until hydration

* avoiding extra HMTL noise by only including the data-astro-injected URL for svelte components

* TEMP: ubuntu CI doesn't like the svelte HMR test...

* disabling the svelte component test on ubuntu for now

Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-06-06 18:39:48 +00:00
.changeset Improve HMR handling for styles, persisted islands (#3492) 2022-06-06 18:39:48 +00:00
.github format: automatically organize imports and removed unused (#3499) 2022-06-06 09:47:28 -07:00
.gitpod logic for opening example projects (#2811) 2022-03-16 10:24:01 -05:00
.vscode update prettier width (#2968) 2022-04-02 14:15:41 -06:00
assets new readme (#3237) 2022-05-03 17:06:04 -07:00
examples [ci] release (#3512) 2022-06-06 09:40:09 -04:00
packages Improve HMR handling for styles, persisted islands (#3492) 2022-06-06 18:39:48 +00:00
patches fix our weird beta release issues (#3031) 2022-04-10 18:17:39 -07:00
scripts [ci] collect stats 2022-06-06 12:02:10 +00:00
.editorconfig Use accessible indentation (#2253) 2021-12-22 16:11:05 -05:00
.eslintignore Improve GitHub Actions (#2041) 2021-11-29 15:11:15 -06:00
.eslintrc.cjs cleanup the repo, remove outdated files and folders (#2771) 2022-03-14 11:41:57 -07:00
.git-blame-ignore-revs add big reformat to git-blame-ignore-revs 2022-04-02 14:16:31 -06:00
.gitignore feat: expose route dist URL on SSG (#3438) 2022-05-26 10:19:19 -04:00
.gitmodules Refactor smoke tests to use submodules (#2702) 2022-03-02 16:08:42 -06:00
.gitpod.Dockerfile Fix/deno gitpod (#3213) 2022-05-03 10:56:16 -04:00
.gitpod.yml logic for opening example projects (#2811) 2022-03-16 10:24:01 -05:00
.npmrc merge next into main (#2705) 2022-03-09 15:44:26 -06:00
.nvmrc Add Migration Guide to docs (#1751) 2021-11-12 07:40:49 -05:00
.prettierignore refactor(vercel): Build Output API v3 (#3216) 2022-05-11 15:10:38 -06:00
.prettierrc.json update prettier width (#2968) 2022-04-02 14:15:41 -06:00
CODE_OF_CONDUCT.md [ci] yarn format 2021-06-24 00:27:22 +00:00
CONTRIBUTING.md Adding E2E testing with Playwright (#3349) 2022-05-15 21:47:28 +00:00
FUNDING.md format 2022-02-09 12:34:06 -08:00
FUNDING.yml Create FUNDING.md (#1137) 2021-08-17 22:39:20 -07:00
GOVERNANCE.md remove "experimental" warning from governance doc 2022-04-07 09:01:04 -07:00
LICENSE add vite to license 2022-04-24 16:42:39 -07:00
package.json format: automatically organize imports and removed unused (#3499) 2022-06-06 09:47:28 -07:00
pnpm-lock.yaml Improve HMR handling for styles, persisted islands (#3492) 2022-06-06 18:39:48 +00:00
pnpm-workspace.yaml fix format (#2736) 2022-03-08 15:20:04 -08:00
README.md Broken link to Solid package (#3372) 2022-05-16 12:15:36 -04:00
STYLE_GUIDE.md Move from yarn to pnpm (#2455) 2022-03-08 15:46:11 -06:00
tsconfig.base.json Migrate to yarn monorepo (#157) 2021-04-30 16:33:35 -05:00
turbo.json add build:ci command which skips tsc (#2869) 2022-03-23 19:46:16 -05:00

Astro logo

Astro is a website build tool for the modern web —
powerful developer experience meets lightweight output.

Install

# Recommended!
npm create astro@latest

# Manual:
npm install --save-dev astro

Looking for help? Start with our Getting Started guide.

Looking for quick examples? Open a starter project right in your browser.

Documentation

Visit our offical documentation.

Support

Having trouble? Get help in the official Astro Discord.

Contributing

New contributors welcome! Check out our Contributors Guide for help getting started.

Join us on Discord to meet other maintainers. We'll help you get your first contribution in no time!

Directory

Package Release Notes
astro astro version
create-astro create-astro version
@astrojs/react astro version
@astrojs/preact astro version
@astrojs/solid-js astro version
@astrojs/svelte astro version
@astrojs/vue astro version
@astrojs/lit astro version
@astrojs/deno astro version
@astrojs/netlify astro version
@astrojs/vercel astro version
@astrojs/partytown astro version
@astrojs/sitemap astro version
@astrojs/tailwind astro version
@astrojs/turbolinks astro version

Several official projects are maintained outside of this repo:

Project Repository
@astrojs/compiler withastro/compiler
Astro Language Tools withastro/language-tools

Sponsors

Astro is generously supported by Netlify, Vercel, and several other amazing organizations.

❤️ Sponsor Astro! ❤️

Platinum Sponsors

NetlifyNetlify VercelVercel

Gold Sponsors

‹div›RIOTS ‹div›RIOTS StackUp Digital StackUp Digital

Sponsors

SentryQoddi App Platform