mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
72ef7ae64a
* 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> |
||
---|---|---|
.. | ||
blog | ||
blog-multiple-authors | ||
component | ||
docs | ||
env-vars | ||
framework-alpine | ||
framework-lit | ||
framework-multiple | ||
framework-preact | ||
framework-react | ||
framework-solid | ||
framework-svelte | ||
framework-vue | ||
integrations-playground | ||
minimal | ||
non-html-pages | ||
portfolio | ||
ssr | ||
starter | ||
subpath | ||
with-markdown | ||
with-markdown-plugins | ||
with-markdown-shiki | ||
with-nanostores | ||
with-tailwindcss | ||
with-vite-plugin-pwa | ||
README.md |
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