From d7677a7c48ee69d402b82307510c0081e8ab9c8e Mon Sep 17 00:00:00 2001 From: delucis Date: Wed, 31 Aug 2022 21:14:05 +0200 Subject: [PATCH 1/2] Remove duplicate hosting output in `astro add` --- .changeset/nice-cups-mix.md | 5 +++++ packages/astro/src/core/add/index.ts | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 .changeset/nice-cups-mix.md diff --git a/.changeset/nice-cups-mix.md b/.changeset/nice-cups-mix.md new file mode 100644 index 000000000000..2685b7a59d67 --- /dev/null +++ b/.changeset/nice-cups-mix.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Remove duplicate hosting output in `astro add` diff --git a/packages/astro/src/core/add/index.ts b/packages/astro/src/core/add/index.ts index 83b52fa29459..4fcb29e5b45d 100644 --- a/packages/astro/src/core/add/index.ts +++ b/packages/astro/src/core/add/index.ts @@ -74,12 +74,6 @@ export default async function add(names: string[], { cwd, flags, logging, teleme ['solid-js', 'astro add solid-js'], ['lit', 'astro add lit'], ], - 'Recommended: Hosting': [ - ['netlify', 'astro add netlify'], - ['vercel', 'astro add vercel'], - ['cloudflare', 'astro add cloudflare'], - ['deno', 'astro add deno'], - ], 'Recommended: Integrations': [ ['tailwind', 'astro add tailwind'], ['partytown', 'astro add partytown'], @@ -89,6 +83,7 @@ export default async function add(names: string[], { cwd, flags, logging, teleme ['netlify', 'astro add netlify'], ['vercel', 'astro add vercel'], ['deno', 'astro add deno'], + ['cloudflare', 'astro add cloudflare'], ], }, description: `For more integrations, check out: ${cyan('https://astro.build/integrations')}`, From a25cba5c8b70f4d30add5158bd7dc2b77eaa2edd Mon Sep 17 00:00:00 2001 From: delucis Date: Wed, 31 Aug 2022 21:31:27 +0200 Subject: [PATCH 2/2] Overhaul section titles and include missing integrations --- .changeset/nice-cups-mix.md | 2 +- packages/astro/src/core/add/index.ts | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.changeset/nice-cups-mix.md b/.changeset/nice-cups-mix.md index 2685b7a59d67..f29a5bb9f153 100644 --- a/.changeset/nice-cups-mix.md +++ b/.changeset/nice-cups-mix.md @@ -2,4 +2,4 @@ 'astro': patch --- -Remove duplicate hosting output in `astro add` +Update `astro add` to list official integrations & adapters with same organisation we use in docs diff --git a/packages/astro/src/core/add/index.ts b/packages/astro/src/core/add/index.ts index 4fcb29e5b45d..fa56fa1d261f 100644 --- a/packages/astro/src/core/add/index.ts +++ b/packages/astro/src/core/add/index.ts @@ -66,24 +66,29 @@ export default async function add(names: string[], { cwd, flags, logging, teleme ['--yes', 'Accept all prompts.'], ['--help', 'Show this help message.'], ], - 'Recommended: UI Frameworks': [ + 'UI Frameworks': [ ['react', 'astro add react'], ['preact', 'astro add preact'], ['vue', 'astro add vue'], ['svelte', 'astro add svelte'], ['solid-js', 'astro add solid-js'], ['lit', 'astro add lit'], + ['alpine', 'astro add alpine'], ], - 'Recommended: Integrations': [ - ['tailwind', 'astro add tailwind'], - ['partytown', 'astro add partytown'], - ['sitemap', 'astro add sitemap'], - ], - 'Example: Add an SSR Adapter': [ + 'SSR Adapters': [ ['netlify', 'astro add netlify'], ['vercel', 'astro add vercel'], ['deno', 'astro add deno'], ['cloudflare', 'astro add cloudflare'], + ['node', 'astro add node'], + ], + Others: [ + ['tailwind', 'astro add tailwind'], + ['image', 'astro add image'], + ['mdx', 'astro add mdx'], + ['partytown', 'astro add partytown'], + ['sitemap', 'astro add sitemap'], + ['prefetch', 'astro add prefetch'], ], }, description: `For more integrations, check out: ${cyan('https://astro.build/integrations')}`,