@@ -96,17 +96,39 @@ gulp.task('cp:css', function(){
9696// Styleguide Copy
9797gulp . task ( 'cp:styleguide' , function ( ) {
9898 return gulp . src (
99- [ '**/*' ] ,
100- { cwd : path . resolve ( paths ( ) . source . styleguide ) } )
99+ [ '**/*' ] ,
100+ { cwd : path . resolve ( paths ( ) . source . styleguide ) } )
101101 . pipe ( gulp . dest ( path . resolve ( paths ( ) . public . styleguide ) ) )
102- . pipe ( browserSync . stream ( ) ) ; ;
102+ . pipe ( browserSync . stream ( ) ) ;
103103} ) ;
104104
105- //server and watch tasks
106- gulp . task ( 'connect' , [ 'lab' ] , function ( ) {
105+ // server and watch tasks
106+ gulp . task ( 'connect' , [ 'lab' ] , function ( ) {
107107 browserSync . init ( {
108108 server : {
109109 baseDir : path . resolve ( paths ( ) . public . root )
110+ } ,
111+ snippetOptions : {
112+ // Ignore all HTML files within the templates folder
113+ blacklist : [ '/index.html' , '/' ]
114+ } ,
115+ notify : {
116+ styles : [
117+ 'display: none' ,
118+ 'padding: 15px' ,
119+ 'font-family: sans-serif' ,
120+ 'position: fixed' ,
121+ 'font-size: 1em' ,
122+ 'z-index: 9999' ,
123+ 'bottom: 0px' ,
124+ 'right: 0px' ,
125+ 'border-top-left-radius: 5px' ,
126+ 'background-color: #1B2032' ,
127+ 'opacity: 0.4' ,
128+ 'margin: 0' ,
129+ 'color: white' ,
130+ 'text-align: center'
131+ ]
110132 }
111133 } ) ;
112134 gulp . watch ( path . resolve ( paths ( ) . source . css , '**/*.css' ) , [ 'cp:css' ] ) ;
@@ -120,7 +142,7 @@ gulp.task('connect', ['lab'], function(){
120142 path . resolve ( paths ( ) . source . data , '*.json' ) ,
121143 path . resolve ( paths ( ) . source . fonts + '/*' ) ,
122144 path . resolve ( paths ( ) . source . images + '/*' ) ,
123- path . resolve ( paths ( ) . source . data + '*.json' ) ,
145+ path . resolve ( paths ( ) . source . data + '*.json' )
124146 ] ,
125147 [ 'lab-pipe' ] ,
126148 function ( ) { browserSync . reload ( ) ; }
0 commit comments