astro/examples
Nate Moore 36223f663e
Add getViteConfig helper (#4154)
* feat: add astro/compat entrypoint for vitest

* chore: add with-vitest example

* chore: add vitest as optional peer dependency

* chore: update lockfile

* refactor: remove astro/compat, use astro/config

* feat: allow arbitrary modes for `create-vite`

* feat: pass vite mode and command when using `getViteConfig`

* chore: remove vitest from peer deps

* chore: add changeset

* chore: update lockfile

Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 14:41:01 -05:00
..
basics Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
blog [ci] release (#4152) 2022-08-04 12:21:38 -04:00
component Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
docs Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
env-vars Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
framework-alpine Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
framework-lit Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
framework-multiple Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
framework-preact Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
framework-react [ci] format 2022-08-04 18:19:18 +00:00
framework-solid Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
framework-svelte Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
framework-vue Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
minimal [ci] release (#4152) 2022-08-04 12:21:38 -04:00
non-html-pages Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
portfolio Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
ssr Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
subpath Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
with-markdown-plugins [ci] release (#4152) 2022-08-04 12:21:38 -04:00
with-markdown-shiki [ci] release (#4152) 2022-08-04 12:21:38 -04:00
with-mdx [ci] release (#4152) 2022-08-04 12:21:38 -04:00
with-nanostores [ci] release (#4152) 2022-08-04 12:21:38 -04:00
with-tailwindcss [ci] release (#4152) 2022-08-04 12:21:38 -04:00
with-vite-plugin-pwa Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
with-vitest Add getViteConfig helper (#4154) 2022-08-05 14:41:01 -05:00
README.md Audit examples templates (#3940) 2022-08-04 14:16:51 -04: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