Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[create-astro] Execute the 'git' step as the final interaction #6314

Merged
merged 2 commits into from
Feb 21, 2023
Merged

[create-astro] Execute the 'git' step as the final interaction #6314

merged 2 commits into from
Feb 21, 2023

Conversation

MilesPernicious
Copy link
Contributor

This ensures the initialized repository has all configuration changes commited in the first commit

Changes

Changes the order of the create-astro interactive steps. Previously, it would run git init, git add, git commit before prompting for which tsconfig schema the project would use. If strict or strictest are selected, this would mean that tsconfig.json would then be modified, and the initial repo is dirty.

Testing

pnpm install && pnpm build && pnpm test: All (47) tests passed.

There could likely be an additional test for this, though I'm not entirely sure how to start writing tests for this ATM.

Docs

Docs should not be needed.
Only affects ordering of the interactive script. Anyone using create-astro programmatically should be using the CLI --flags

This ensures the initialized repository has all configuration
changes commited in the first commit
@changeset-bot
Copy link

changeset-bot bot commented Feb 19, 2023

🦋 Changeset detected

Latest commit: 0757186

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: create-astro Related to the `create-astro` package (scope) label Feb 19, 2023
Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense to me 👍

Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this makes sense to me! Thank you.

@natemoo-re natemoo-re merged commit 7f61e8f into withastro:main Feb 21, 2023
@astrobot-houston astrobot-houston mentioned this pull request Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: create-astro Related to the `create-astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants