Skip to content

Commit

Permalink
feat: revert to import syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
epetrow committed Nov 6, 2024
1 parent 22f9f26 commit f15ed1a
Show file tree
Hide file tree
Showing 11 changed files with 3,116 additions and 1,053 deletions.
4,125 changes: 3,088 additions & 1,037 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@commitlint/cli": "^19.0.3",
"@commitlint/config-conventional": "^19.0.3",
"@commitlint/core": "^19.0.3",
"@progress/kendo-theme-tasks": "^1.17.3",
"ansi-colors": "^4.1.1",
"eslint": "^9.2.0",
"fs-extra": "^11.1.1",
Expand All @@ -28,7 +29,7 @@
"husky": "^9.0.7",
"lerna": "^8.0.0",
"lodash": "^4.17.21",
"sass": "^1.63.6",
"node-sass": "^9.0.0",
"svg-parser": "^2.0.4",
"svg2ttf": "^6.0.3",
"svgo": "^3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/font-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"scripts": {
"prebuild": "node scripts/prepare-font.js && node scripts/prepare-nuget.js",
"build": "npx sass scss/all.scss dist/index.css",
"build": "node scripts/sass-build.js",
"prepublishOnly": "npm run build"
},
"keywords": [
Expand Down
9 changes: 9 additions & 0 deletions packages/font-icons/scripts/sass-build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const { sassBuild } = require('@progress/kendo-theme-tasks');

sassBuild({
file: 'scss/all.scss',
output: {
path: 'dist/',
filename: 'index.css'
}
});
2 changes: 0 additions & 2 deletions packages/font-icons/scss/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@use "./_font.scss" as *;

$ki-font-family: "WebComponentsIcons" !default;
$ki-icon-size: 16px !default;

Expand Down
3 changes: 1 addition & 2 deletions packages/font-icons/scss/all.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@forward "index.scss";
@use "index.scss" as *;
@import "index.scss";

@include kendo-font-icon-styles();
8 changes: 3 additions & 5 deletions packages/font-icons/scss/index.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
@forward "_variables.scss";

@use "_font.scss" as *;
@use "_variables.scss" as *;
@use "_icon-list.scss" as *;
@import "_font.scss";
@import"_variables.scss";
@import "_icon-list.scss";

@mixin kendo-font-icon-styles() {

Expand Down
2 changes: 1 addition & 1 deletion packages/svg-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"scripts": {
"prebuild": "node scripts/prepare-svg.js && node scripts/prepare-nuget.js",
"build": "rollup -c --bundleConfigAsCjs && npx sass scss/all.scss dist/index.css",
"build": "rollup -c --bundleConfigAsCjs && node scripts/sass-build.js",
"prepublishOnly": "npm run build"
},
"keywords": [
Expand Down
9 changes: 9 additions & 0 deletions packages/svg-icons/scripts/sass-build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const { sassBuild } = require('@progress/kendo-theme-tasks');

sassBuild({
file: 'scss/all.scss',
output: {
path: 'dist/',
filename: 'index.css'
}
});
3 changes: 1 addition & 2 deletions packages/svg-icons/scss/all.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@forward "index.scss";
@use "index.scss" as *;
@import "index.scss";

@include kendo-svg-icon-styles();
3 changes: 1 addition & 2 deletions packages/svg-icons/scss/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@forward "_variables.scss";
@use "_variables.scss" as *;
@import "_variables.scss";

@mixin kendo-svg-icon-styles() {

Expand Down

0 comments on commit f15ed1a

Please sign in to comment.