From 72ef7ae64a6d0fd17077bf6920ce11613116b659 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Fri, 25 Mar 2022 16:26:55 -0500 Subject: 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 --- examples/with-tailwindcss/tailwind.config.cjs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 examples/with-tailwindcss/tailwind.config.cjs (limited to 'examples/with-tailwindcss/tailwind.config.cjs') diff --git a/examples/with-tailwindcss/tailwind.config.cjs b/examples/with-tailwindcss/tailwind.config.cjs new file mode 100644 index 000000000..81cb91aee --- /dev/null +++ b/examples/with-tailwindcss/tailwind.config.cjs @@ -0,0 +1,7 @@ +module.exports = { + content: [], + theme: { + extend: {}, + }, + plugins: [], +} -- cgit v1.2.3