0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/examples
Matthew Phillips f2b8372c0c
Supports hoisted scripts in the static build (#2414)
* Supports hoisted scripts in the static build

* Adds a changeset

* Update packages/astro/src/core/build/internal.ts

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

* Update based on feedback

* Fix lint

* Fix getting hoist script for Windows

* Try with the pre compiler

* use compiler 0.8.2

* update compiler version

* update yarn.lock

Co-authored-by: Evan Boehs <evan@boehs.org>
2022-01-20 19:13:05 -05:00
..
blog [ci] release (#2430) 2022-01-20 10:04:29 -05:00
blog-multiple-authors [ci] release (#2430) 2022-01-20 10:04:29 -05:00
component [ci] release (#2430) 2022-01-20 10:04:29 -05:00
docs [ci] release (#2430) 2022-01-20 10:04:29 -05:00
fast-build Supports hoisted scripts in the static build (#2414) 2022-01-20 19:13:05 -05:00
framework-alpine [ci] release (#2430) 2022-01-20 10:04:29 -05:00
framework-lit [ci] release (#2430) 2022-01-20 10:04:29 -05:00
framework-multiple [ci] release (#2430) 2022-01-20 10:04:29 -05:00
framework-preact [ci] release (#2430) 2022-01-20 10:04:29 -05:00
framework-react [ci] release (#2430) 2022-01-20 10:04:29 -05:00
framework-solid [ci] release (#2430) 2022-01-20 10:04:29 -05:00
framework-svelte [ci] release (#2430) 2022-01-20 10:04:29 -05:00
framework-vue [ci] release (#2430) 2022-01-20 10:04:29 -05:00
minimal [ci] release (#2430) 2022-01-20 10:04:29 -05:00
portfolio [ci] release (#2430) 2022-01-20 10:04:29 -05:00
portfolio-svelte [ci] release (#2430) 2022-01-20 10:04:29 -05:00
starter [ci] release (#2430) 2022-01-20 10:04:29 -05:00
subpath [ci] release (#2430) 2022-01-20 10:04:29 -05:00
with-markdown [ci] release (#2430) 2022-01-20 10:04:29 -05:00
with-markdown-plugins [ci] release (#2430) 2022-01-20 10:04:29 -05:00
with-nanostores [ci] release (#2430) 2022-01-20 10:04:29 -05:00
with-tailwindcss [ci] release (#2430) 2022-01-20 10:04:29 -05:00
with-vite-plugin-pwa [ci] release (#2430) 2022-01-20 10:04:29 -05: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