Skip to content

Commit 84a9136

Browse files
adding sass
1 parent 48a455c commit 84a9136

File tree

2 files changed

+102
-6
lines changed

2 files changed

+102
-6
lines changed

package-lock.json

Lines changed: 90 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,23 @@
1515
"url": "https://github.com/dev-javascript/react-dyn-tabs/issues"
1616
},
1717
"scripts": {
18-
"build": "npm-run-all clean:* --parallel build:lib:* & npm-run-all --parallel build:umd:*",
19-
"build:dev:watch": "cross-env BABEL_OUTPUT=umd INCLUDE_POLYFILLS=true webpack --config webpack.config.js --env=development --watch",
18+
"watch": "npm-run-all --parallel watch:*",
19+
"watch:scss": "sass --watch themes/scss:themes style/scss:style",
20+
"watch:dev": "cross-env BABEL_OUTPUT=umd INCLUDE_POLYFILLS=true webpack --config webpack.config.js --env=development --watch",
21+
"build": "npm-run-all clean:* --parallel build:lib:* build:scss:* & npm-run-all --parallel build:umd:* build:minify:*",
2022
"build:umd:dev": "cross-env BABEL_OUTPUT=umd INCLUDE_POLYFILLS=true webpack --config webpack.config.js --env=development",
2123
"build:umd:prod": "rollup -c",
2224
"build:umd:prod-pf": "cross-env INCLUDE_POLYFILLS=true rollup -c",
2325
"build:lib:cjs": "cross-env BABEL_OUTPUT=cjs babel src/ --out-dir lib/cjs/ --ignore **/__tests__,**/__mocks__,**/*.test.js,**/*.js.snap",
2426
"build:lib:esm": "babel src/ --out-dir lib/esm/ --ignore **/__tests__,**/__mocks__,**/*.test.js,**/*.js.snap",
2527
"build:lib:esm-pf": "cross-env INCLUDE_POLYFILLS=true babel src/ --out-dir lib/esm-including-polyfills/ --ignore **/__tests__,**/__mocks__,**/*.test.js,**/*.js.snap",
28+
"build:scss:theme": "sass themes/scss:themes",
29+
"build:scss:style": "sass style/scss:style",
30+
"build:minify:style": "sass style/react-dyn-tabs.css:style/react-dyn-tabs.min.css --style compressed",
31+
"build:minify:basic": "sass themes/basic.css:themes/basic.min.css --style compressed",
32+
"build:minify:bootstrap": "sass themes/bootstrap.css:themes/bootstrap.min.css --style compressed",
33+
"build:minify:classic": "sass themes/classic.css:themes/classic.min.css --style compressed",
34+
"build:minify:card": "sass themes/card.css:themes/card.min.css --style compressed",
2635
"clean:lib": "rimraf lib",
2736
"clean:dist": "rimraf dist",
2837
"prepublish": "npm run build",
@@ -64,6 +73,7 @@
6473
"reactstrap": "^8.5.1",
6574
"rollup": "^2.41.0",
6675
"rollup-plugin-terser": "7.0.2",
76+
"sass": "^1.35.2",
6777
"style-loader": "^1.2.1",
6878
"webpack": "^4.44.1",
6979
"webpack-cli": "^3.3.12"

0 commit comments

Comments
 (0)