serve it up

This commit is contained in:
Tim Lancina
2015-06-04 19:50:37 -05:00
parent 02e789649a
commit a7e41aa8cb
2 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,7 @@ var traceur = require('gulp-traceur');
var webpack = require('gulp-webpack');
var lazypipe = require('lazypipe');
var cache = require('gulp-cached');
var connect = require('gulp-connect');
gulp.task('clean.build', function() {
@ -55,6 +56,7 @@ gulp.task('watch', function() {
'sass',
'fonts',
'polyfills',
'serve',
function() {
watch(['ionic/**/*.js', '!ionic/components/*/test/**/*'], function() {
@ -85,6 +87,13 @@ function doubleCheckDistFiles() {
}
}
gulp.task('serve', function() {
connect.server({
port: 8000,
livereload: false
});
});
gulp.task('clean', function(done) {
del(['dist/'], done);
});

View File

@ -10,6 +10,7 @@
"gulp-babel": "^5.1.0",
"gulp-cached": "^1.1.0",
"gulp-concat": "~2.5.0",
"gulp-connect": "^2.2.0",
"gulp-debug": "~2.0.1",
"gulp-if": "^1.2.5",
"gulp-plumber": "^1.0.0",