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

Upgrade to tailwind v2 #1805

Merged
merged 24 commits into from
Sep 14, 2021
Merged

Upgrade to tailwind v2 #1805

merged 24 commits into from
Sep 14, 2021

Conversation

jaredcwhite
Copy link
Collaborator

@jaredcwhite jaredcwhite commented Sep 8, 2021

Issue

Addresses #1685, #857, and #1684 (also dup #288).

  • This change addresses the issue in full
  • This change addresses only certain aspects of the issue
  • This change is a dependency for another issue
  • This change has a dependency from another issue

Description

The monorepo is upgraded to require Node 14. Both partners and public sites are upgraded to Next 11 (and Webpack 5), plus React is bumped to v17 across the sites and ui-components packages. TailwindCSS is upgraded to v2 along with PostCSS 8. Storybook in ui-components is upgraded to 6.3.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Prototype/POC (not to merge)
  • This change is a refactor/address technical debt
  • This change requires a documentation update
  • This change requires a SQL Script

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have reviewed the changes in a desktop view
  • I have reviewed the changes in a mobile view
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have assigned reviewers
  • I have updated the changelog to include a description of my changes

@jaredcwhite jaredcwhite changed the base branch from master to dev September 8, 2021 23:38
@netlify
Copy link

netlify bot commented Sep 8, 2021

✔️ Deploy Preview for dev-storybook-bloom ready!

🔨 Explore the source changes: 949c498

🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-storybook-bloom/deploys/61412f6ea25c610007c62cb8

😎 Browse the preview: https://deploy-preview-1805--dev-storybook-bloom.netlify.app

@netlify
Copy link

netlify bot commented Sep 8, 2021

✔️ Deploy Preview for dev-partners-bloom ready!

🔨 Explore the source changes: 949c498

🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-partners-bloom/deploys/61412f6e5dce7d000967cf52

😎 Browse the preview: https://deploy-preview-1805--dev-partners-bloom.netlify.app

@netlify
Copy link

netlify bot commented Sep 8, 2021

✔️ Deploy Preview for dev-bloom ready!

🔨 Explore the source changes: 949c498

🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-bloom/deploys/61412f6eaf5b4000071468e7

😎 Browse the preview: https://deploy-preview-1805--dev-bloom.netlify.app

@@ -117,13 +117,6 @@
dependencies:
"@babel/highlight" "^7.10.4"

"@babel/code-frame@7.8.3":
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a satisfying added/removed diff 😅

@seanmalbert seanmalbert mentioned this pull request Sep 10, 2021
27 tasks
@jaredcwhite
Copy link
Collaborator Author

Finally got it in a mergeable state with all checks passing! 🙌

@emilyjablonski
Copy link
Collaborator

Do you have any suggestions for how to test or review this? It LGTM :)

@seanmalbert
Copy link
Collaborator

@seanmalbert , a note to myself to test if we can easily now use the rtl plugin for tailwind.

@jaredcwhite
Copy link
Collaborator Author

@emilyjablonski I'm not sure how much we can verify through tests other than the general infrastructure isn't horribly broken…for me, double-checking the Next/React/Tailwind combo, I just clicked through a bunch of the stuff in Storybook and then various pages on the public/partners sites and did some side-by-side comparisons with the dev branch. Thus far I've resolved the few anomalies I found. Hopefully after a couple other folks giving it a once over, we'll feel reasonablly confident any potential variance is minor and sporadic.

Copy link
Collaborator

@seanmalbert seanmalbert left a comment

Choose a reason for hiding this comment

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

Looks good, @jaredcwhite! I also tested this to make sure tailwind plugins worked with this setup and they do, so I'm going to put out a separate PR for that.

@seanmalbert
Copy link
Collaborator

I think we can merge this and send to QA at this point so we can have more eyes on any potential variances.

@jaredcwhite
Copy link
Collaborator Author

jaredcwhite commented Sep 14, 2021

@emilyjablonski Actually I forgot this doesn't include the purge step. Prob don't need to do much A/B comparison until we get to #1823

@seanmalbert seanmalbert merged commit d348a01 into dev Sep 14, 2021
seanmalbert added a commit to CityOfDetroit/bloom that referenced this pull request Jun 23, 2022
* Upgrade to Next 11 and React 17

* Switch pages from MDX to markdown-to-jsx

* Also remove unneeded React imports

* Use tsx for Next error pages

* Fix lack of semantic heading on Listing photo form

* Add bloom-housing#1793 to Changelog

* Upgrade to Tailwind 2, PostCSS 8, Storybook 6.3

* Upgade Changelook with bloom-housing#1805

* Upgrade to Node 14

* Update `.node-version` file

* Testing explicit tailwind dep on Netlify

* Update partners also with tailwind dep

* Update Node version in CircleCI

* Use Node 14.17.4 instead for security fixes

* Whoops, make that 14.17.6 =)

* Bump Cypress in CircleCI back down to 14.17.0

(there's no newer Docker image available at present)

* Bump up React Hook Form in public app

* Fix lockfile, update GitHub lint action

* Remove stray </td> causing a linting issue

* Fix code style issues with Prettier

* new lines on two files

* export updates

Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: seanmalbert <smabert@gmail.com>
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.

4 participants