mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
serve it up
This commit is contained in:
@ -22,6 +22,7 @@ var traceur = require('gulp-traceur');
|
|||||||
var webpack = require('gulp-webpack');
|
var webpack = require('gulp-webpack');
|
||||||
var lazypipe = require('lazypipe');
|
var lazypipe = require('lazypipe');
|
||||||
var cache = require('gulp-cached');
|
var cache = require('gulp-cached');
|
||||||
|
var connect = require('gulp-connect');
|
||||||
|
|
||||||
|
|
||||||
gulp.task('clean.build', function() {
|
gulp.task('clean.build', function() {
|
||||||
@ -55,6 +56,7 @@ gulp.task('watch', function() {
|
|||||||
'sass',
|
'sass',
|
||||||
'fonts',
|
'fonts',
|
||||||
'polyfills',
|
'polyfills',
|
||||||
|
'serve',
|
||||||
|
|
||||||
function() {
|
function() {
|
||||||
watch(['ionic/**/*.js', '!ionic/components/*/test/**/*'], 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) {
|
gulp.task('clean', function(done) {
|
||||||
del(['dist/'], done);
|
del(['dist/'], done);
|
||||||
});
|
});
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
"gulp-babel": "^5.1.0",
|
"gulp-babel": "^5.1.0",
|
||||||
"gulp-cached": "^1.1.0",
|
"gulp-cached": "^1.1.0",
|
||||||
"gulp-concat": "~2.5.0",
|
"gulp-concat": "~2.5.0",
|
||||||
|
"gulp-connect": "^2.2.0",
|
||||||
"gulp-debug": "~2.0.1",
|
"gulp-debug": "~2.0.1",
|
||||||
"gulp-if": "^1.2.5",
|
"gulp-if": "^1.2.5",
|
||||||
"gulp-plumber": "^1.0.0",
|
"gulp-plumber": "^1.0.0",
|
||||||
|
Reference in New Issue
Block a user