Skip to content

Commit

Permalink
chore: retire sass:standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
epetrow committed Dec 5, 2024
1 parent 3090c03 commit 2f037c6
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 36 deletions.
3 changes: 0 additions & 3 deletions .github/disabled-workflows/ci_next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,5 @@ jobs:
- name: Check docs
run: npm run docs:check

- name: Ensure standalone build
run: npm run sass:standalone

- name: Build themes for dist
run: npm run sass:dist
4 changes: 0 additions & 4 deletions .github/workflows/ci_weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ jobs:
run: |
npm run stylelint
- name: Ensure standalone build
run: |
npm run sass:standalone
- name: Build themes for dist
run: |
npm run sass:dist
Expand Down
22 changes: 0 additions & 22 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const path = require("path");

const { globSync } = require("glob");
const gulp = require("gulp");
const sass = require('sass');

// Settings
const paths = {
Expand Down Expand Up @@ -170,24 +169,3 @@ function sassDist() {
}
gulp.task("sass:dist", sassDist);
// #endregion

// #region compile
function buildStandalone() {
let themes = globSync( getArg('--theme') || paths.sass.themes );

themes.forEach( theme => {
let fileGlob = path.resolve( theme, "scss/**/_index.scss" ).split(path.sep).join(path.posix.sep);
let files = globSync( fileGlob );

files.forEach( file => {
sass.compile(file, {
sourceMap: false,
loadPaths: ["node_modules"]
});
});
})

return Promise.resolve();
}
gulp.task("sass:standalone", buildStandalone);
// #endregion
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"clean:tests": "node ./scripts/cleanup-test-results.js",
"sass": "npm run sass -ws --if-present",
"sass:dist": "npm run sass:dist -ws --if-present",
"sass:standalone": "npm run sass:standalone -ws --if-present",
"build": "npm run sass && npm run build:scripts",
"build:scripts": "npm run build --prefix packages/html",
"build:tests": "npm run build:tests --prefix packages/html",
Expand Down
1 change: 0 additions & 1 deletion packages/bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"sass:compile:all": "npx sass --no-source-map --load-path=../../node_modules ./scss/all.scss ./dist/all.css",
"sass:compile:dist": "npx sass --style=compressed --no-source-map --load-path=../../node_modules ./dist:dist",
"sass:watch": "npx sass --no-source-map --load-path=../../node_modules --watch ./scss/all.scss ./dist/all.css",
"sass:standalone": "gulp sass:standalone --theme packages/bootstrap",
"css:prefix": "npx postcss --replace ./dist/**/*.css",
"docs": "node ../../scripts/sassdoc.js",
"predocs": "npm run resolve-variables",
Expand Down
1 change: 0 additions & 1 deletion packages/classic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"sass:compile:all": "npx sass --no-source-map --load-path=../../node_modules ./scss/all.scss ./dist/all.css",
"sass:compile:dist": "npx sass --style=compressed --no-source-map --load-path=../../node_modules ./dist:dist",
"sass:watch": "npx sass --no-source-map --load-path=../../node_modules --watch ./scss/all.scss ./dist/all.css",
"sass:standalone": "gulp sass:standalone --theme packages/classic",
"css:prefix": "npx postcss --replace ./dist/**/*.css",
"docs": "node ../../scripts/sassdoc.js",
"predocs": "npm run resolve-variables",
Expand Down
1 change: 0 additions & 1 deletion packages/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"sass:compile:all": "npx sass --no-source-map --load-path=../../node_modules ./scss/all.scss ./dist/all.css",
"sass:compile:dist": "npx sass --style=compressed --no-source-map --load-path=../../node_modules ./dist:dist",
"sass:watch": "npx sass --no-source-map --load-path=../../node_modules --watch ./scss/all.scss ./dist/all.css",
"sass:standalone": "gulp sass:standalone --theme packages/default",
"css:prefix": "npx postcss --replace ./dist/**/*.css",
"docs": "node ../../scripts/sassdoc.js",
"predocs": "npm run resolve-variables",
Expand Down
1 change: 0 additions & 1 deletion packages/fluent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"sass:compile:all": "npx sass --no-source-map --load-path=../../node_modules ./scss/all.scss ./dist/all.css",
"sass:compile:dist": "npx sass --style=compressed --no-source-map --load-path=../../node_modules ./dist:dist",
"sass:watch": "npx sass --no-source-map --load-path=../../node_modules --watch ./scss/all.scss ./dist/all.css",
"sass:standalone": "gulp sass:standalone --theme packages/fluent",
"css:prefix": "npx postcss --replace ./dist/**/*.css",
"docs": "node ../../scripts/sassdoc.js",
"predocs": "npm run resolve-variables",
Expand Down
1 change: 0 additions & 1 deletion packages/material/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"sass:compile:all": "npx sass --no-source-map --load-path=../../node_modules ./scss/all.scss ./dist/all.css",
"sass:compile:dist": "npx sass --style=compressed --no-source-map --load-path=../../node_modules ./dist:dist",
"sass:watch": "npx sass --no-source-map --load-path=../../node_modules --watch ./scss/all.scss ./dist/all.css",
"sass:standalone": "gulp sass:standalone --theme packages/material",
"css:prefix": "npx postcss --replace ./dist/**/*.css",
"docs": "node ../../scripts/sassdoc.js",
"predocs": "npm run resolve-variables",
Expand Down
1 change: 0 additions & 1 deletion packages/nouvelle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"sass:compile:all": "npx sass --no-source-map --load-path=../../node_modules ./scss/all.scss ./dist/all.css",
"sass:compile:dist": "npx sass --style=compressed --no-source-map --load-path=../../node_modules ./dist:dist",
"sass:watch": "npx sass --no-source-map --load-path=../../node_modules --watch ./scss/all.scss ./dist/all.css",
"sass:standalone": "gulp sass:standalone --theme packages/nouvelle",
"css:prefix": "npx postcss --replace ./dist/**/*.css",
"docs": "node ../../scripts/sassdoc.js",
"predocs": "npm run resolve-variables",
Expand Down

0 comments on commit 2f037c6

Please sign in to comment.