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

IBX-1886: Dart Sass compatibility added #2027

Merged
merged 3 commits into from
Jan 21, 2022
Merged

Conversation

mateuszdebinski
Copy link
Contributor

@mateuszdebinski mateuszdebinski commented Jan 14, 2022

Question Answer
Tickets IBX-1886
Bug fix? yes
New feature? yes
BC breaks? no
Tests pass? yes
Doc needed? no

The changes introduced in several bundles will allow you to use dart sass as well as the current compiler.

About div and div.import file:
it is a polyfill for math.div, Dart Sass will prefer files with the extension .import.scss thus it will first load the _div.import file which uses the math.div function

Related PRs:
https://github.com/ezsystems/ezplatform-page-builder/pull/925
https://github.com/ezsystems/ezcommerce-shop/pull/391
https://github.com/ezsystems/ezplatform-calendar/pull/89
ezsystems/ezplatform-richtext#221

Checklist:

  • Implement tests
  • Coding standards ($ composer fix-cs)

@@ -0,0 +1,3 @@
@function div($number1, $number2) {
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be better to create a folder polyfill for this function here in admin-ui and import it in all needed bundles. Is it possible or there are some limitations in dart?

Copy link
Contributor Author

@mateuszdebinski mateuszdebinski Jan 17, 2022

Choose a reason for hiding this comment

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

Richtext and ezcommerce-shop bundles, now are importing div function from admin-ui @import './public/bundles/ezplatformadminui/scss/polyfill/div';

@sonarcloud
Copy link

sonarcloud bot commented Jan 17, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@tomaszszopinski tomaszszopinski left a comment

Choose a reason for hiding this comment

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

QA approved on IbexaDXP 3.3.x-dev.

@dew326 dew326 merged commit f8a1b24 into 2.3 Jan 21, 2022
@dew326 dew326 deleted the IBX-1886-dart-sass-compatibility branch January 21, 2022 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants