mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
tidy up serve tool, adds 'gulp serve' task
This commit is contained in:
parent
338bc64884
commit
c965cb5408
8 changed files with 2148 additions and 1521 deletions
|
@ -8,6 +8,7 @@ var plumber = require('gulp-plumber');
|
|||
var onError = function (err) {
|
||||
gutil.log(gutil.colors.green(err));
|
||||
};
|
||||
var server = require("./tools/serve.js");
|
||||
|
||||
// Lint JS
|
||||
gulp.task('lint', function() {
|
||||
|
@ -32,6 +33,10 @@ gulp.task('watch', function() {
|
|||
gulp.watch('lib/*/*.js', ['minify']);
|
||||
});
|
||||
|
||||
gulp.task('serve', ["watch"], function() {
|
||||
server();
|
||||
});
|
||||
|
||||
// Default
|
||||
gulp.task('default', ['lint', 'minify']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue