@@ -57,12 +57,13 @@ gulp.task('bs-reload', () => {
57
57
58
58
// Compile Sass in development environment with Sourcemaps
59
59
gulp . task ( 'sass' , ( ) => {
60
- let onError = ( err ) => {
60
+ function onError ( err ) {
61
61
$ . notify . onError ( {
62
- title : 'Gulp Sass ' ,
62
+ title : 'Groundwork Lite ' ,
63
63
subtitle : 'Ups! Sass build failed 😱' ,
64
64
message : 'Error: <%= error.message %>'
65
65
} ) ( err ) ;
66
+ this . emit ( 'end' ) ;
66
67
} ;
67
68
68
69
return gulp . src ( paths . scss . src )
@@ -75,8 +76,9 @@ gulp.task('sass', () => {
75
76
. pipe ( browserSync . stream ( ) )
76
77
. pipe ( $ . plumber . stop ( ) )
77
78
. pipe ( $ . notify ( {
78
- title : 'Gulp Sass' ,
79
- subtitle : '👌 Yeah! Sass compiled without problems~' ,
79
+ title : 'Groundwork Lite' ,
80
+ message : 'Yeah! Sass compiled without problems 👌' ,
81
+ onLast : true
80
82
} ) )
81
83
} ) ;
82
84
@@ -93,12 +95,13 @@ gulp.task('copy', () => {
93
95
94
96
// Stylesheets for production environment with minified version
95
97
gulp . task ( 'styles' , ( ) => {
96
- let onError = ( err ) => {
98
+ function onError ( err ) {
97
99
$ . notify . onError ( {
98
- title : 'Gulp Sass ' ,
100
+ title : 'Groundwork Lite ' ,
99
101
subtitle : 'Ups! Sass build failed 😱' ,
100
102
message : 'Error: <%= error.message %>'
101
103
} ) ( err ) ;
104
+ this . emit ( 'end' ) ;
102
105
} ;
103
106
104
107
return gulp . src ( paths . scss . src )
@@ -116,7 +119,8 @@ gulp.task('styles', () => {
116
119
. pipe ( $ . plumber . stop ( ) )
117
120
. pipe ( $ . notify ( {
118
121
title : 'Gulp Styles' ,
119
- subtitle : '👌 Yeah! Stylesheets created without problems~' ,
122
+ message : 'Yeah! Stylesheets created without problems 👌' ,
123
+ onLast : true
120
124
} ) )
121
125
} ) ;
122
126
@@ -125,6 +129,6 @@ gulp.task('build', ['clean', 'copy', 'styles']);
125
129
126
130
// Watch sass files for changes
127
131
gulp . task ( 'default' , [ 'browser-sync' ] , ( ) => {
128
- gulp . watch ( ' src/ **/*.scss', [ 'sass' ] ) ;
129
- gulp . watch ( ' src/ *.html', [ 'bs-reload' ] ) ;
132
+ gulp . watch ( base . src + ' **/*.scss', [ 'sass' ] ) ;
133
+ gulp . watch ( base . src + ' *.html', [ 'bs-reload' ] ) ;
130
134
} ) ;
0 commit comments