Skip to content

Commit 6aed28f

Browse files
committed
#40 - SCSS lint temp files ignore.
1 parent 0cfd1cb commit 6aed28f

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

starter-template/gulp/compile-scss/compile-scss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = function() {
1414
sourceComments: false
1515
};
1616

17-
return gulp.src( config.scss.scssFolder + '**/*.scss')
17+
return gulp.src(config.scss.src)
1818
.pipe(plumber({
1919
errorHandler: function (err) {
2020
console.log(err);

starter-template/gulp/gulp.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
module.exports = function () {
33
var config = {
44
scss: {
5-
scssFolder: 'scss/',
5+
src: [
6+
'./scss/**/*.scss',
7+
'!scss/**/*_scsslint_tmp*.scss'
8+
],
69
cssFolder: 'content/styles/'
710
},
811
svg: {

starter-template/gulp/watch-tasks/watch-scss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var gulp = require('gulp'),
33

44
module.exports = function(){
55

6-
gulp.watch(config.scss.scssFolder + '**/*.scss', ['compile-scss']);
6+
gulp.watch(config.scss.src, ['compile-scss']);
77

88
};
99

starter-template/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"devDependencies": {
3030
"gulp-imagemin": "^2.3.0",
3131
"gulp-task-loader": "^1.2.1",
32-
"imagemin-pngquant": "^4.2.0"
32+
"imagemin-pngquant": "^4.2.0",
33+
"gulp-ignore": "^2.0.1"
3334
}
3435
}

0 commit comments

Comments
 (0)