-
Notifications
You must be signed in to change notification settings - Fork 2
/
gulpfile.js
executable file
·35 lines (29 loc) · 860 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
'use strict';
var gulp = require('gulp');
var sass = require('gulp-sass');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var changed = require('gulp-changed');
var plumber = require('gulp-plumber');
var notify = require("gulp-notify");
function errorAlert(error) {
notify.onError({title: "Gulp Error", message: "Check your terminal", sound: "Purr"})(error); //Error Notification
console.log(error.toString());//Prints Error to Console
this.emit("end"); //End function
}
/**
* SASS
*/
gulp.task('scss', function () {
gulp.src('scss/jenkins-theme.scss')
.pipe(plumber({errorHandler: errorAlert}))
.pipe(sass({outputStyle: 'compressed'}))
.pipe(gulp.dest("."));
});
/**
* watch
*/
gulp.task('default', ['scss'], function () {
// SASS
gulp.watch('scss/**/*.scss', ['scss']);
});