The web framework that scales with you — Build fast content sites, powerful web applications, dynamic server APIs, and everything in-between ️ Star to support our work!
Find a file
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
.changeset feat(cli): scaffold out astro add command (#2849) 2022-03-25 16:26:55 -05:00
.github improve some github templates (#2876) 2022-03-24 12:31:33 -07:00
.gitpod logic for opening example projects (#2811) 2022-03-16 10:24:01 -05:00
.vscode [ci] format 2022-03-22 03:16:42 +00:00
assets Remove SVG animation on GitHub/NPM (#2512) 2022-01-31 17:36:25 -06:00
examples feat(cli): scaffold out astro add command (#2849) 2022-03-25 16:26:55 -05:00
packages feat(cli): scaffold out astro add command (#2849) 2022-03-25 16:26:55 -05:00
scripts [ci] collect stats 2022-03-25 12:02:11 +00:00
tools/vscode/syntaxes Remove VSCode and Langauge Server from this monorepo (#1230) 2021-08-26 13:14:47 -04:00
.editorconfig Use accessible indentation (#2253) 2021-12-22 16:11:05 -05:00
.eslintignore Improve GitHub Actions (#2041) 2021-11-29 15:11:15 -06:00
.eslintrc.cjs cleanup the repo, remove outdated files and folders (#2771) 2022-03-14 11:41:57 -07:00
.git-blame-ignore-revs Create .git-blame-ignore-revs (#2254) 2022-01-07 15:02:37 -08:00
.gitignore chore: vscode files (#2844) 2022-03-21 20:16:04 -07:00
.gitmodules Refactor smoke tests to use submodules (#2702) 2022-03-02 16:08:42 -06:00
.gitpod.Dockerfile Gitpod setup improvements (#2789) 2022-03-15 16:03:26 -05:00
.gitpod.yml logic for opening example projects (#2811) 2022-03-16 10:24:01 -05:00
.npmrc merge next into main (#2705) 2022-03-09 15:44:26 -06:00
.nvmrc Add Migration Guide to docs (#1751) 2021-11-12 07:40:49 -05:00
.prettierignore chore: npmrc update (#2742) 2022-03-09 12:36:56 -06:00
.prettierrc.json fix failing format command in CI (#2696) 2022-03-01 11:59:06 -08:00
CODE_OF_CONDUCT.md [ci] yarn format 2021-06-24 00:27:22 +00:00
CONTRIBUTING.md Move from yarn to pnpm (#2455) 2022-03-08 15:46:11 -06:00
FUNDING.md format 2022-02-09 12:34:06 -08:00
FUNDING.yml Create FUNDING.md (#1137) 2021-08-17 22:39:20 -07:00
GOVERNANCE.md [ci] yarn format 2022-02-16 23:08:33 +00:00
LICENSE chore: remove @astrojs/parser (#2845) 2022-03-21 12:30:23 -05:00
package.json [ci] update lockfile (#2882) 2022-03-25 09:45:12 -05:00
pnpm-lock.yaml feat(cli): scaffold out astro add command (#2849) 2022-03-25 16:26:55 -05:00
pnpm-workspace.yaml fix format (#2736) 2022-03-08 15:20:04 -08:00
README.md Add README to packages/astro (#313) 2021-06-07 17:38:22 -05:00
STYLE_GUIDE.md Move from yarn to pnpm (#2455) 2022-03-08 15:46:11 -06:00
tsconfig.base.json Migrate to yarn monorepo (#157) 2021-04-30 16:33:35 -05:00
turbo.json add build:ci command which skips tsc (#2869) 2022-03-23 19:46:16 -05:00

Astro is a new kind of static site builder for the modern web—powerful developer experience meets lightweight output.

🚀 Read the launch post →

📚 Learn Astro →

Project Status

⚠️ Astro is still beta software—missing features and bugs are to be expected! We are quickly working our way towards a stable, production-ready v1.0 release, but we are still finalizing some of Astro's APIs.

That being said, there are quite a few Astro sites in production already. We're incredibly grateful to everyone who has made an early bet on Astro!

Quick Start

👾 Online 📦 Local

Try Astro in your browser!

Launch astro.new →

Get started with Astro using our interactive CLI!

npm init astro my-astro-project

Sponsors

You can sponsor Astro's development on Open Collective. Astro is generously supported by the following companies and individuals:

Platinum Sponsors

NetlifyNetlify VercelVercel

Gold Sponsors

‹div›RIOTS ‹div›RIOTS StackUp Digital StackUp Digital

Sponsors

SentryQoddi App Platform