Skip to content

Commit

Permalink
refactor: updates SASS build tasks to search folders recursively #340
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfalaska committed Oct 17, 2024
1 parent 4a47fad commit 80b84af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ demo/*.css
demo/*.css.map

## CSS built from Sass process
src/*.css
src/*.css.map
src/**/*.css
src/**/*.css.map

## *-css built from sass-render process
*-css.js
**/*-css.js

## dist files
dist/
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"build:dev:assets": "npm-run-all build:sass:component postCss:component sass:render",
"build:docs": "node ./node_modules/@aurodesignsystem/auro-library/scripts/build/generateDocs.mjs",
"build:sass": "npm-run-all build:sass:component postCss:component sass:render",
"build:sass:component": "for file in src/*.scss; do npx sass --no-source-map \"$file:${file%.scss}.css\"; done",
"build:sass:component": "sass --no-source-map src:src",
"build:version": "node scripts/version.mjs",
"build:watch": "nodemon -e scss,js --watch src --exec npm run build:dev:assets",
"bundler": "rollup -c",
Expand All @@ -174,9 +174,9 @@
"preCommit": "node ./node_modules/@aurodesignsystem/auro-library/scripts/build/pre-commit.mjs",
"postCss:component": "node ./node_modules/@aurodesignsystem/auro-library/scripts/build/postCss.mjs",
"postinstall": "node packageScripts/postinstall.mjs",
"sass:render": "sass-render src/*.css -t ./node_modules/@aurodesignsystem/auro-library/scripts/build/staticStyles-template.js",
"sass:render": "sass-render 'src/**/*.css' 'components/**/*.css' -t ./node_modules/@aurodesignsystem/auro-library/scripts/build/staticStyles-template.js",
"serve": "web-dev-server --open demo/ --node-resolve --watch",
"sweep": "rm -rf ./demo/css ./dist | rm ./src/*.css ./src/*-css.js",
"sweep": "find ./demo ./dist ./src ./components -type f \\( -name \"*.css\" -o -name \"*-css.js\" \\) -delete",
"test": "wtr --coverage",
"test:watch": "wtr --watch",
"prepare": "husky install",
Expand Down

0 comments on commit 80b84af

Please sign in to comment.