Skip to content

Commit

Permalink
Remove commented code from gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxcrawford committed Jun 11, 2021
1 parent d50ad25 commit 3994e92
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ const gulp = require('gulp');
const sass = require('gulp-sass');
const del = require('del');
const merge = require('merge-stream');
const gulpif = require('gulp-if');

// directory for building LESS, SASS, and bundles
const buildDir = 'static/scss/libs/';

// directory for the final assets ready for consumption
const finalDir = 'static/css/';

// Compile all SASS/SCSS into => app.scss
gulp.task('styles', () => {
return gulp.src('static/scss/app.scss')
Expand Down Expand Up @@ -39,26 +35,14 @@ function assetsCopy() {
'!node_modules/@mozilla-protocol/core/*',
'node_modules/@mozilla-protocol/core/**/*',
])
// .pipe(gulpif(global.watching, cached('all', cachedOpts)))
.pipe(gulp.dest(buildDir)),
// Everything else goes to final dir
// gulp.src([
// 'media/**/*',
// '!media/**/*.scss',
// 'node_modules/@mozilla-protocol/core/**/*',
// '!node_modules/@mozilla-protocol/core/**/*.scss',
// '!node_modules/@mozilla-protocol/core/*'])
// .pipe(gulpif(global.watching, cached('all', cachedOpts)))
// .pipe(gulp.dest(finalDir)),
]);
}

const buildTask = gulp.series(
'setup',
assetsCopy,
'styles',
// gulp.parallel(jsCompileBundles, cssCompileBundles),
// gulp.parallel(jsMinify, cssMinify)
);

gulp.task('build', buildTask);
Expand All @@ -71,10 +55,4 @@ gulp.task('default', () => {
gulp.watch('static/scss/**/*.scss', (done) => {
gulp.series(['clean', 'styles'])(done);
});
});

// gulp.task('watch', () => {
// gulp.watch('static/scss/**/*.scss', (done) => {
// gulp.series(['clean', 'styles'])(done);
// });
// });
});

0 comments on commit 3994e92

Please sign in to comment.