Skip to content

feat: Remove deprecated node-sass package, migrated to Sass #2392 #2429

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

Merged

Conversation

luckyklyist
Copy link
Contributor

@luckyklyist luckyklyist commented Sep 13, 2023

This PR addresses issue #2392.

Changes Made: #2392

  • Removed the deprecated "node-sass" package.
  • Added the "sass" package as a replacement.

Details:

In this PR, I've removed the deprecated "node-sass" package and replaced it with the "sass" package, which is the recommended alternative. This update ensures that we are using the latest and supported Sass compiler.

To migrate the deprecated "node-sass" syntax code to the new "sass" syntax, I used the Sass Migrator, which automates the migration process.

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #2392

@welcome
Copy link

welcome bot commented Sep 13, 2023

🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already.

@lindapaiste
Copy link
Collaborator

🥇 Just wanted to say that this is a very good PR! You've explained what you changed and why/how. Much appreciated.

@luckyklyist
Copy link
Contributor Author

🥇 Just wanted to say that this is a very good PR! You've explained what you changed and why/how. Much appreciated.

Thanks for the praise! It's greatly appreciated! Looking forward to your review and the PR getting merged!

@luckyklyist
Copy link
Contributor Author

@lindapaiste I have removed the sass-migrator from the package.json scripts .

@luckyklyist
Copy link
Contributor Author

hey @lindapaiste is there any other things to change in this pr ?

@lindapaiste
Copy link
Collaborator

This is looking great! I just ran the branch and had no problems running in dev.

There is one tiny thing to address which is the docker scripts, where we have an npm rebuild node-sass command.

RUN npm rebuild node-sass

RUN npm rebuild node-sass

I'm not sure what's the correct thing to put here when using Dart Sass. I think nothing? Like we delete those lines with no replacement? Do you know?

@luckyklyist
Copy link
Contributor Author

I don't think there is rebuild command for the Dart Sass as it doesn't rely on native add-ons .I have remove the node-sass rebuild command from the dockerFile .

lindapaiste
lindapaiste previously approved these changes Sep 24, 2023
@lindapaiste
Copy link
Collaborator

@raclim this looks good to me but I’m a little bit scared to merge it as it has the potential to break the built process.

@raclim raclim added Area: Dependencies Pull requests that update a dependency file Create Release Environment For use with ReleaseHub ephemeral environments labels Nov 3, 2023
…-sass_migrate

# Conflicts:
#	client/styles/components/_asset-list.scss
#	client/styles/components/_dashboard-header.scss
#	client/styles/components/_form-container.scss
#	client/styles/components/_forms.scss
#	client/styles/components/_modal.scss
#	client/styles/components/_preferences.scss
#	client/styles/components/_sketch-list.scss
#	package-lock.json
Copy link
Collaborator

@lindapaiste lindapaiste left a comment

Choose a reason for hiding this comment

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

@raclim I fixed all the conflicts so I'm going to go ahead and merge this in.

@lindapaiste lindapaiste merged commit 91e5b79 into processing:develop Jan 27, 2024
@raclim
Copy link
Collaborator

raclim commented Jan 30, 2024

@lindapaiste Thanks so much for getting this in!

@lindapaiste
Copy link
Collaborator

@raclim just a heads up that we may have some pending PRs using the old syntax for the rem font size. When merging those, we'll want to change #{20 / $base-font-size}rem; etc to #{math.div(20, $base-font-size)}rem;. I think the older syntax will still work but it's now deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Dependencies Pull requests that update a dependency file Create Release Environment For use with ReleaseHub ephemeral environments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants