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

deprecate setup ui windicss (project is sunsetting) #8597

Merged
merged 7 commits into from
Jun 14, 2023

Conversation

thedavidprice
Copy link
Contributor

@thedavidprice thedavidprice commented Jun 13, 2023

PR 1 of 2

The WindiCSS project is sunsetting. One of the recommended replacements is Tailwind CSS, which is already supported. See: https://windicss.org/posts/sunsetting.html

This PR indicates deprecated in the setup command and CLI docs. (target v5.4)

The follow-up PR will remove the setup command entirely. (target v6) #8598

Note: Projects using Windi CSS will not be affected when upgrading. Redwood v6 switches to Vite as the default bundler (Webpack supported but deprecated). At that time, if projects using Windi CSS upgrade to v6 and want to use Vite, they'll need to follow the Windi + Vite installation guide to manually make the changes to upgrade: https://windicss.org/integrations/vite.html

@@ -8,10 +8,24 @@ import { errorTelemetry } from '@redwoodjs/telemetry'

import { getPaths } from '../../../../lib'
import c from '../../../../lib/colors'
import { printSetupNotes } from '../helpers'
Copy link
Contributor

Choose a reason for hiding this comment

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

Just tried running this locally and it seems like this file doesn't exist at this location; this specific helper is co-located with the deploy commands at the moment. Don't see why we can't move it, we probably just never had a reason to

Copy link
Contributor

@jtoar jtoar Jun 13, 2023

Choose a reason for hiding this comment

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

Fixed in d80b8df and 1872bd8

packages/cli/src/commands/setup/ui/libraries/windicss.js Outdated Show resolved Hide resolved
@jtoar jtoar added release:fix This PR is a fix fixture-ok Override the test project fixture check labels Jun 13, 2023
@jtoar
Copy link
Contributor

jtoar commented Jun 13, 2023

I'm seeing errors in the CLI tests I've seen in my other PR here: #8448. I'm not savvy enough with Jest to know what I'm doing wrong with the mocks. And it's late so I'll try again another time

@thedavidprice thedavidprice enabled auto-merge (squash) June 14, 2023 01:46
@thedavidprice
Copy link
Contributor Author

Thanks for the help with this one @jtoar Setting to auto-merge now.

@thedavidprice thedavidprice merged commit 41b7cc3 into main Jun 14, 2023
@thedavidprice thedavidprice deleted the dsp-deprecate-windi-css branch June 14, 2023 03:15
@redwoodjs-bot redwoodjs-bot bot added this to the next-release milestone Jun 14, 2023
@dac09 dac09 modified the milestones: next-release, v6.0.0 Jun 14, 2023
@jtoar jtoar modified the milestones: v6.0.0, next-release Jun 14, 2023
jtoar added a commit that referenced this pull request Jun 22, 2023
* deprecate setup ui windicss

* move printSetupNotes

* fix rest of imports

* fix mocking in netlify

* Update packages/cli/src/commands/setup/ui/libraries/windicss.js

---------

Co-authored-by: Dominic Saadi <[email protected]>
@jtoar jtoar modified the milestones: next-release, v5.4.0 Jun 22, 2023
@Olyno
Copy link
Contributor

Olyno commented Jun 22, 2023

Why not migrate to Unocss?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixture-ok Override the test project fixture check release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants