0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/examples
Kaffee☕ 57b0c170e8
change the typescript moduleResolution of all examples to "node" (#1108)
* Fixes many Errors related to typescript

Fix Svelte Component Errors importing Svelte standard functions using typescript see https://github.com/snowpackjs/astro/issues/403.
Also fixes "ReferenceError: exports is not defined" see https://github.com/snowpackjs/astro/issues/969.

* change typescript default moduleresolution in examples see #403
2021-08-13 16:31:44 -07:00
..
blog change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
blog-multiple-authors change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
docs change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
framework-lit change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
framework-multiple change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
framework-preact change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
framework-react change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
framework-solid change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
framework-svelte change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
framework-vue change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
portfolio change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
snowpack change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
starter change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
with-markdown change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
with-markdown-plugins change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
with-nanostores change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -07:00
with-tailwindcss change the typescript moduleResolution of all examples to "node" (#1108) 2021-08-13 16:31:44 -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