Adding a useful default task
This commit is contained in:
		
							parent
							
								
									5a99aaa571
								
							
						
					
					
						commit
						3dacc41880
					
				| @ -3,11 +3,11 @@ var gulp = require('gulp'), | |||||||
|     connect = require('gulp-connect'), |     connect = require('gulp-connect'), | ||||||
|     watch = require('gulp-watch'); |     watch = require('gulp-watch'); | ||||||
| 
 | 
 | ||||||
| gulp.task('default', function() { | gulp.task('default', ['server'], function() { | ||||||
|   console.log('Default task'); |   gulp.watch('./src/**/*.html', ['markup']); | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
| gulp.task('server', function() { | gulp.task('server', ['markup'], function() { | ||||||
|   watch('./build/**/*', { name: 'Server' }) |   watch('./build/**/*', { name: 'Server' }) | ||||||
|     .pipe(connect.reload()); |     .pipe(connect.reload()); | ||||||
|   return connect.server({ |   return connect.server({ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user