0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/examples
Nate Moore 72ef7ae64a
feat(cli): scaffold out astro add command (#2849)
* feat(cli): scaffold out `astro add` command

* added first babel transforms

* Format output

* Added changes confirmation

* Error flow

* Add dependencies

* feat(cli): astro add cleanup pass

* feat: add support for tailwind

* chore: update lockfile

* fix: types

* chore: rever @proload/core bump

* chore: add changeset

* chore: rollback dep update

* Added spinners

* chore: remove extra deps

* Removed extra argument

* Use `execa` instead of `exec`

* Changed how lines are trimmed within diffLines

* refactor: move add to core

* refactor: remove old add entrypoint

* refactor: simplify wording

* feat: improve diff

* feat: improve diff and logging, add interactive prompt when no args passed

* Formatted files

* Added --yes

* feat: improve logging for install command

* Fixed execa

* Added help message to add

* refactor: extract consts to own file

* feat: remove implicit projectRoot behavior

* feat: improve error handling, existing integrations

* fix(tailwind): ensure existing tailwind config is not overwritten

* refactor: prefer cwd to projectRoot flag

* chore: add refactor notes

* refactor: throw createPrettyError > implicit bail

* refactor: cleanup language

* feat(cli): prompt user before generating tailwind config

* fix(cli): update config generation to use cwd

* fix: resolve root from cwd

* chore: update changelog

Co-authored-by: JuanM04 <me@juanm04.com>
2022-03-25 16:26:55 -05:00
..
blog [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
blog-multiple-authors [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
component [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
docs [ci] update lockfile (#2882) 2022-03-25 09:45:12 -05:00
env-vars [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
framework-alpine [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
framework-lit [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
framework-multiple [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
framework-preact [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
framework-react [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
framework-solid [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
framework-svelte [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
framework-vue [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
integrations-playground [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
minimal [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
non-html-pages [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
portfolio [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
ssr [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
starter [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
subpath [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
with-markdown [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
with-markdown-plugins [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
with-markdown-shiki [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
with-nanostores [ci] release (next) (#2860) 2022-03-24 17:37:49 -05:00
with-tailwindcss feat(cli): scaffold out astro add command (#2849) 2022-03-25 16:26:55 -05:00
with-vite-plugin-pwa [ci] update lockfile (#2882) 2022-03-25 09:45:12 -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