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

Tailwind theme create improvements #1255

Merged
merged 3 commits into from
Nov 25, 2024

Conversation

jaxwilko
Copy link
Member

This PR removes the old css/js scaffold files and adds better error reporting for creating a vite theme.

This includes missing / outdated NPM detection:
image

And feedback to the user if any command should fail:
image

I also added better support for extension, in the future we can look into adding mix support too via passing the processor here:
image

The new npm:version command will by default just report the version to the user, if you want to use it to test if the version is compatible with Winter you need to pass the --compatible flag and check the exit code. See:
image

@jaxwilko
Copy link
Member Author

Ideally, we should validate the NPM version prior to generating the initial theme structure, as if it fails we have no way to reset the state which means that the user will not be able to "try again" as the dir already exists.

@LukeTowers LukeTowers added this to the 1.2.7 milestone Nov 25, 2024
@LukeTowers LukeTowers merged commit 6df0e59 into develop Nov 25, 2024
14 checks passed
@LukeTowers LukeTowers deleted the wip/tailwind-theme-create-improvements branch November 25, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants