Skip to content

Commit 96113f8

Browse files
committed
feat: upgrade gulp-sass from 5 to 6, refactoring, remove old @import syntax
1 parent bcb28b3 commit 96113f8

File tree

7 files changed

+381
-306
lines changed

7 files changed

+381
-306
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@
4747
"gulp-header": "^2.0.9",
4848
"gulp-load-plugins": "^2.0.8",
4949
"gulp-replace": "^1.1.4",
50-
"gulp-sass": "^5.1.0",
50+
"gulp-sass": "^6.0.1",
5151
"js-yaml": "^4.1.0",
5252
"postcss-scss": "^4.0.9",
5353
"sass": "^1.77.8",
5454
"sass-true": "^8.0.0",
5555
"sassdoc": "^2.7.4",
5656
"stylelint": "^16.8.2",
57-
"stylelint-config-standard": "^36.0.1",
57+
"stylelint-config-standard": "^38.0.0",
5858
"stylelint-scss": "^6.5.0"
5959
}
6060
}

tests/functions/_easings.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
// Sass unit testing using Oddbird
2+
// https://www.oddbird.net/true/docs/
3+
// https://github.com/oddbird/true
4+
@use '../node_modules/sass-true' as *;
5+
6+
// Import Frontline
7+
@use '../src/_frontline' as *;
8+
19
@include test-module('Easing helper [function]') {
210
@include test('Returns custom cubic-bezier() easing function') {
311
// Assert the expected results

tests/functions/_index.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
@import "easings";
2-
// @import "scale-clamp";
1+
@forward "easings";

tests/mixins/_absolute-fill.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
// Sass unit testing using Oddbird
2+
// https://www.oddbird.net/true/docs/
3+
// https://github.com/oddbird/true
4+
@use '../node_modules/sass-true' as *;
5+
6+
// Import Frontline
7+
@use '../src/_frontline' as *;
8+
19
@include it('Absolutely position an element and fill available space') {
210
@include assert {
311
@include output {

tests/mixins/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import "absolute-fill";
1+
@forward "absolute-fill";

tests/tests.scss

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
// Sass unit testing using Oddbird
2-
// https://www.oddbird.net/true/docs/
3-
// https://github.com/oddbird/true
4-
@import '../node_modules/sass-true/sass/true';
5-
6-
// Import Frontline
7-
@import '../src/_frontline';
8-
91
// Tests
10-
@import "functions/index";
11-
@import "mixins";
2+
@use "functions/index" as *;
3+
@use "mixins/index" as *;

yarn.lock

Lines changed: 359 additions & 291 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)