Skip to content

Commit

Permalink
build(bundler): add new tasks to copy scss files with re-usable vars,…
Browse files Browse the repository at this point in the history
… mixins to dist/scss
  • Loading branch information
lzcabrera committed Jul 18, 2017
1 parent 6c5daa7 commit 93cb4b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion enriched/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"test": "jest",
"test:watch": "npm run test -- --watch",
"test:u": "npm run test -- -u",
"build-new": "rollup -c && cp ./src/blocks/Headline/wave_header_default.png ./dist/"
"build-new": "yarn build-new:js && yarn build-new:scss",
"build-new:js": "rollup -c && cp ./src/blocks/Headline/wave_header_default.png ./dist/",
"build-new:scss": "sh ./scripts/cp-scss.sh"
},
"dependencies": {
"@telusdigital/redux-contentful": "^2.2.1",
Expand Down
6 changes: 6 additions & 0 deletions enriched/scripts/cp-scss.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

mkdir -p dist/scss

cp scss/settings/_variables.scss dist/scss/
cp scss/utility/{_helpers,_mixins}.scss dist/scss/

0 comments on commit 93cb4b6

Please sign in to comment.