0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/examples
Fred K. Schott ff92be637f
add "astro preview" command (#1226)
* add "astro preview" command

* Update green-buttons-reflect.md

* Update cli-reference.md
2021-08-26 12:08:52 -07:00
..
blog add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
blog-multiple-authors add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
docs add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
framework-lit add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
framework-multiple add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
framework-preact add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
framework-react add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
framework-solid add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
framework-svelte add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
framework-vue add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
minimal add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
portfolio add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
snowpack add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
starter add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
with-markdown add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
with-markdown-plugins add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
with-nanostores add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
with-tailwindcss add "astro preview" command (#1226) 2021-08-26 12:08:52 -07: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