Last active
April 5, 2017 03:25
-
-
Save TaylorAckley/8e825eb4f5dc660a59a4c171f2667d28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var gulp = require('gulp'), | |
notify = require('gulp-notify'), | |
connect = require('gulp-connect'), | |
gulp.task('default', ['watch', 'connect']); | |
gulp.task('connect', function() { | |
connect.server({ | |
root: 'public', | |
port: 9000, | |
livereload: true | |
}); | |
}); | |
gulp.task('html', function() { | |
gulp.src('*.html') | |
.pipe(connect.reload()); | |
}); | |
gulp.task('css', function() { | |
gulp.src('css/**/*.css') | |
.pipe(connect.reload()); | |
}); | |
gulp.task('css', function() { | |
gulp.src('js/**/*.js') | |
.pipe(connect.reload()); | |
}); | |
gulp.task('watch', function() { | |
gulp.watch('*.html', ['html']); | |
gulp.watch('*css/**/*.css', ['css']); | |
gulp.watch('*js/**/*.css', ['js']); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment