0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/examples
Nate Moore 72c2c86e9d
merge next into main (#2705)
* Unflag the static build (#2652)

* Unflag the static build

* Only set legacyBuild to false if experimentalSSR is true

* Use legacy build when we have to

* Put a few more tests into legacy mode

* Last two

* Make astro-basic use the legacy build

* Adds a changeset

* Mark the lit test as legacy

* Update yarn lock

* Update based on feedback

* Add --legacy-build flag

* Move astro-basic test to use static build (#2682)

* Move some tests over to the static build (#2677)

* Move some tests over to the static build

* Fix assets tests

* Fix the assets tests

* Fix for the client:only components

* Moves asset tests to the static build

* Move postcss test over to static build

* Bring back legacy build for astro-basic test

* Move astro-basic test to use static build

* Migrate more tests to the static build (#2693)

* fix: disable HMR during build (#2684)

* Migrate more tests to the static build

* Only prepend links in non-legacy mode

* Add the 0-css tests

* Convert all CSS tests to the static build

* Migrate Astro global tests

* Remove .only

* Fix static build tests

* Migrate a few more

* More tests

* Move the lit test back to legacy

* Increase the test timeout

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* Improve `head` injection behavior (#2436)

* feat: add renderHead util to server

* feat: remove `layouts` from config, Vite plugin

* fix: improve head injection during rendering

* chore: update compiler

* fix: do not escape links

* chore: enter `pre` mode

* Replace `send` with `sirv` (#2713)

* remove send

* Create thick-ravens-chew.md

* I feel like I'm going to screw something up

* working finally!

* rewrite req.url

* Add tiny bit of doc

* Update .gitignore

Co-authored-by: Evan Boehs <evan@boehs.org>

* Move remaining tests to the static build (#2712)

* Move lit test to the static build

* Migrate astro-env plugin to work in the static build

* Do not remove vite:define

* Adds a changeset

* Add a warning when passing the --experimental-static-build flag (#2718)

* Add a warning when passing the --experimental-static-build flag

* Disable the lint warning

* [ci] release (next) (#2721)

* [ci] release (next)

* chore: update changeset

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@skypack.dev>

* 404 page (#2719)

* Fix: build to 404.html in the static build

* Adds a changeset

* fix pnpm install missing peer deps

* fix svelte version in workspace

* fix lockfile

* fix(webapi): add dev script

* improve preview reliability (#2739)

* improve preview reliability - fix broken tests

* shamefully hoist to unblock

* remove lit from test running

* chore: update lockfile

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Evan Boehs <evan@boehs.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-03-09 15:44:26 -06:00
..
blog merge next into main (#2705) 2022-03-09 15:44:26 -06:00
blog-multiple-authors merge next into main (#2705) 2022-03-09 15:44:26 -06:00
component merge next into main (#2705) 2022-03-09 15:44:26 -06:00
docs merge next into main (#2705) 2022-03-09 15:44:26 -06:00
env-vars merge next into main (#2705) 2022-03-09 15:44:26 -06:00
fast-build merge next into main (#2705) 2022-03-09 15:44:26 -06:00
framework-alpine merge next into main (#2705) 2022-03-09 15:44:26 -06:00
framework-lit merge next into main (#2705) 2022-03-09 15:44:26 -06:00
framework-multiple merge next into main (#2705) 2022-03-09 15:44:26 -06:00
framework-preact merge next into main (#2705) 2022-03-09 15:44:26 -06:00
framework-react merge next into main (#2705) 2022-03-09 15:44:26 -06:00
framework-solid merge next into main (#2705) 2022-03-09 15:44:26 -06:00
framework-svelte merge next into main (#2705) 2022-03-09 15:44:26 -06:00
framework-vue merge next into main (#2705) 2022-03-09 15:44:26 -06:00
minimal merge next into main (#2705) 2022-03-09 15:44:26 -06:00
non-html-pages merge next into main (#2705) 2022-03-09 15:44:26 -06:00
portfolio merge next into main (#2705) 2022-03-09 15:44:26 -06:00
portfolio-svelte merge next into main (#2705) 2022-03-09 15:44:26 -06:00
ssr merge next into main (#2705) 2022-03-09 15:44:26 -06:00
starter merge next into main (#2705) 2022-03-09 15:44:26 -06:00
subpath merge next into main (#2705) 2022-03-09 15:44:26 -06:00
with-markdown merge next into main (#2705) 2022-03-09 15:44:26 -06:00
with-markdown-plugins merge next into main (#2705) 2022-03-09 15:44:26 -06:00
with-markdown-shiki merge next into main (#2705) 2022-03-09 15:44:26 -06:00
with-nanostores merge next into main (#2705) 2022-03-09 15:44:26 -06:00
with-tailwindcss merge next into main (#2705) 2022-03-09 15:44:26 -06:00
with-vite-plugin-pwa merge next into main (#2705) 2022-03-09 15:44:26 -06:00
README.md Docs: npm@7 requires an extra -- for arguments passed to the command, per @natemoo-re's description. (#786) 2021-07-20 20:06:11 -05:00

Astro Examples Library

The easiest way to check out one of these examples on your machine is by running this command in an empty directory:

npm init astro -- --template [EXAMPLE_NAME]

Community Examples

Visit awesome-astro for a full list of community examples. You can use npm init astro to check out any community examples:

npm init astro -- --template [GITHUB_USER]/[REPO_NAME]

Paths to examples nested inside of a repo are also supported:

npm init astro -- --template [GITHUB_USER]/[REPO_NAME]/path/to/example