Skip to content

Commit

Permalink
removed sass
Browse files Browse the repository at this point in the history
  • Loading branch information
akiran committed Dec 11, 2021
1 parent 994ce1c commit 06a607f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
18 changes: 2 additions & 16 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

var gulp = require("gulp");
var del = require("del");
var sass = require("gulp-sass");
var webpack = require("webpack");
var WebpackDevServer = require("webpack-dev-server");
var assign = require("object-assign");
Expand Down Expand Up @@ -30,22 +29,9 @@ gulp.task("copy", function() {
.pipe(gulp.dest("./build"));
});

gulp.task("sass", function() {
return gulp
.src(["./docs/**/*.{scss,sass}"])
.pipe(
sass({
includePaths: ["bower_components", "node_modules"],
errLogToConsole: true
})
)
.pipe(gulp.dest("./build"));
});

gulp.task(
"watch",
gulp.series(["copy", "sass"], function(done) {
gulp.watch(["./docs/**/*.{scss,sass}"], gulp.parallel(["sass"]));
gulp.series(["copy"], function(done) {
gulp.watch(["./docs/index.html"], gulp.parallel(["copy"]));
gulp.watch(["./docs/docs.css"], gulp.parallel(["copy"]));
gulp.watch(["./docs/slick.css"], gulp.parallel(["copy"]));
Expand All @@ -56,7 +42,7 @@ gulp.task(

gulp.task(
"server",
gulp.series(["watch", "copy", "sass"], function() {
gulp.series(["watch", "copy"], function() {
console.log("Start");
var myConfig = require("./webpack.config");
if (process.env.SINGLE_DEMO) {
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"scripts": {
"start": "gulp server",
"demo": "SINGLE_DEMO=true gulp server",
"build-dev": "gulp clean && gulp sass && gulp copy && webpack",
"build-dev": "gulp clean && gulp copy && webpack",
"lib": "babel ./src --out-dir ./lib",
"build": "npm run lib && gulp dist",
"prepublish": "npm run build",
Expand Down Expand Up @@ -59,15 +59,13 @@
"express": "^4.14.0",
"foundation-apps": "^1.2.0",
"gulp": "^4.0.0",
"gulp-sass": "^4.0.0",
"husky": "^0.14.3",
"jasmine-core": "^2.5.2",
"jest": "^24.8.0",
"jquery": "^3.2.1",
"js-beautify": "^1.7.5",
"json-loader": "^0.5.4",
"lint-staged": "^7.0.3",
"node-sass": "^4.5.2",
"opn": "^5.4.0",
"postcss-loader": "^1.3.3",
"prettier": "^1.14.3",
Expand All @@ -76,7 +74,6 @@
"react-addons-test-utils": "^15.6.2",
"react-dom": "^16.0.0",
"react-test-renderer": "^16.0.0",
"sass-loader": "^6.0.3",
"sinon": "^2.1.0",
"slick-carousel": "^1.8.1",
"style-loader": "^0.16.1",
Expand Down

0 comments on commit 06a607f

Please sign in to comment.