diff options
author | 2022-04-27 20:58:18 -0400 | |
---|---|---|
committer | 2022-04-27 20:58:18 -0400 | |
commit | b7cd69588453cf874346bf2f14c41accd183129e (patch) | |
tree | 4d1feaf3bbc6f6eca552920415528a6a32117a21 /packages/create-astro/test/utils.js | |
parent | 79378523957462705ca4a32f69c14aacb1a8244b (diff) | |
download | astro-b7cd69588453cf874346bf2f14c41accd183129e.tar.gz astro-b7cd69588453cf874346bf2f14c41accd183129e.tar.zst astro-b7cd69588453cf874346bf2f14c41accd183129e.zip |
Feat: [create astro] replace component selector with "astro add" (#3223)
* feat: remove component framework selector
* feat: update templates to use "basics"
* feat: add "astro add" cli step
* tests: astro add step
* fix: reset env for pnpm tests
* fix: update install step test
* chore: remove "frameworks" step from tests
* deps: remove node-fetch from create-astro
* chore: changeset
* fix: use "preferLocal" for astro add command
* refactor: remove POSTPROCESS_FILES
* feat: add --yes flag to simplify astro add
* feat: bring back minimal option as "completely empty"
Diffstat (limited to 'packages/create-astro/test/utils.js')
-rw-r--r-- | packages/create-astro/test/utils.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/create-astro/test/utils.js b/packages/create-astro/test/utils.js index 4e0e2d5fc..8d7cf67c1 100644 --- a/packages/create-astro/test/utils.js +++ b/packages/create-astro/test/utils.js @@ -26,9 +26,8 @@ export function promiseWithTimeout(testFn) { export const PROMPT_MESSAGES = { directory: 'Where would you like to create your app?', template: 'Which app template would you like to use?', - // TODO: remove when framework selector is removed - frameworks: 'Which frameworks would you like to use?', install: (pkgManager) => `Would you like us to run "${pkgManager} install?"`, + astroAdd: (astroAddCommand = 'npx astro@latest add --yes') => `Run "${astroAddCommand}?" This lets you optionally add component frameworks (ex. React), CSS frameworks (ex. Tailwind), and more.`, }; export function setup(args = []) { |