0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/examples
Ben Holmes c2180746b4
[Content collections] Move generated types to .astro directory (#5786)
* feat: change cacheDir to `.astro`

* feat: write reference in env.d.ts if none exists

* chore: update with-content types

* test: env.d.ts transform

* nit: setUp -> add

* refactor: content.d.ts -> types.d.ts

* chore: update confirmation log

* chore: changeset

* feat: inject env.d.ts if none exists

* feat: set up env.d.ts on `astro sync`

* chore: duplicate envTsPathRelative

* docs: update changeset

* fix: make srcDir if none exists

* fix: types.generated -> .astro in gitignore

* feat: add env.d.ts to test gitignore

* chore: remove env.d.ts from content-collections

* test: move sync tests to `astro sync`, add file write test

* refactor: simplify test gitignore to base

* fix: add / to `.astro` bc that scares me
2023-01-10 18:01:52 -05:00
..
basics [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
blog [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
component [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
deno [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
docs [ci] format 2023-01-09 07:27:31 +00:00
framework-alpine [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
framework-lit [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
framework-multiple [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
framework-preact [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
framework-react [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
framework-solid [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
framework-svelte [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
framework-vue [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
hackernews [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
integration [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
minimal [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
non-html-pages [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
portfolio [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
ssr [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
with-content [Content collections] Move generated types to .astro directory (#5786) 2023-01-10 18:01:52 -05:00
with-markdown-plugins [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
with-markdown-shiki [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
with-mdx [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
with-nanostores [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
with-tailwindcss [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
with-vite-plugin-pwa [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
with-vitest [ci] release (beta) (#5742) 2023-01-06 13:00:12 -05:00
README.md .md only: npm init astro --> npm create astro (#4760) 2022-09-16 12:40:06 -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 create astro@latest -- --template [EXAMPLE_NAME]

Community Examples

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

npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]

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

npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]/path/to/example