Skip to content

Commit

Permalink
chore: rename gulp taks dist:swatches to sass:dist
Browse files Browse the repository at this point in the history
  • Loading branch information
epetrow committed Dec 5, 2024
1 parent a6a1156 commit 3090c03
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/disabled-workflows/publish_npm_next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:

- name: Build themes for dist
run: |
npm run dist:swatches
npm run sass:dist
- name: Determine correct version to publish
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_compile-themes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Build swatch for a11y tests
run: |
npx gulp dist:swatches --theme packages/default
npx gulp sass:dist --theme packages/default
npx sass --load-path=node_modules/ packages/default/dist/default-ocean-blue-a11y.scss packages/default/dist/default-ocean-blue-a11y.css
- name: Pack themes
Expand Down
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function swatchJsonTransformer( json ) {
// #endregion

// #region dist
function distSwatches() {
function sassDist() {
let file = paths.sass.theme;
let output = { path: paths.sass.dist };
let themes = globSync( getArg('--theme') || paths.sass.themes );
Expand All @@ -168,7 +168,7 @@ function distSwatches() {

return Promise.resolve();
}
gulp.task("dist:swatches", distSwatches);
gulp.task("sass:dist", sassDist);
// #endregion

// #region compile
Expand Down
2 changes: 1 addition & 1 deletion packages/bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"scripts": {
"sass": "npm run sass:compile:all && npm run css:prefix",
"sass:dist": "gulp dist:swatches --theme packages/bootstrap && npm run sass:compile:dist && npm run css:prefix",
"sass:dist": "gulp sass:dist --theme packages/bootstrap && npm run sass:compile:dist && npm run css:prefix",
"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",
Expand Down
2 changes: 1 addition & 1 deletion packages/classic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"scripts": {
"sass": "npm run sass:compile:all && npm run css:prefix",
"sass:dist": "gulp dist:swatches --theme packages/classic && npm run sass:compile:dist && npm run css:prefix",
"sass:dist": "gulp sass:dist --theme packages/classic && npm run sass:compile:dist && npm run css:prefix",
"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",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"scripts": {
"sass": "npm run sass:compile:all",
"sass:dist": "gulp dist:swatches --theme packages/core && npm run sass:compile:dist",
"sass:dist": "gulp sass:dist --theme packages/core && npm run sass:compile:dist",
"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",
Expand Down
2 changes: 1 addition & 1 deletion packages/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"scripts": {
"sass": "npm run sass:compile:all && npm run css:prefix",
"sass:dist": "gulp dist:swatches --theme packages/default && npm run sass:compile:dist && npm run css:prefix",
"sass:dist": "gulp sass:dist --theme packages/default && npm run sass:compile:dist && npm run css:prefix",
"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",
Expand Down
2 changes: 1 addition & 1 deletion packages/fluent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"scripts": {
"sass": "npm run sass:compile:all && npm run css:prefix",
"sass:dist": "gulp dist:swatches --theme packages/fluent && npm run sass:compile:dist && npm run css:prefix",
"sass:dist": "gulp sass:dist --theme packages/fluent && npm run sass:compile:dist && npm run css:prefix",
"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",
Expand Down
2 changes: 1 addition & 1 deletion packages/material/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"scripts": {
"sass": "npm run sass:compile:all && npm run css:prefix",
"sass:dist": "gulp dist:swatches --theme packages/material && npm run sass:compile:dist && npm run css:prefix",
"sass:dist": "gulp sass:dist --theme packages/material && npm run sass:compile:dist && npm run css:prefix",
"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",
Expand Down
2 changes: 1 addition & 1 deletion packages/nouvelle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"scripts": {
"sass": "npm run sass:compile:all && npm run css:prefix",
"sass:dist": "gulp dist:swatches --theme packages/nouvelle && npm run sass:compile:dist && npm run css:prefix",
"sass:dist": "gulp sass:dist --theme packages/nouvelle && npm run sass:compile:dist && npm run css:prefix",
"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",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"scripts": {
"sass": "npm run sass:compile:all",
"sass:dist": "gulp dist:swatches --theme packages/utils && npm run sass:compile:dist",
"sass:dist": "gulp sass:dist --theme packages/utils && npm run sass:compile:dist",
"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",
Expand Down

0 comments on commit 3090c03

Please sign in to comment.