1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Added core Url and Path, split up book.open, added Container and Packaging

This commit is contained in:
Fred Chasen 2016-11-08 02:06:10 +01:00
parent 02725b1771
commit 47787678f7
24 changed files with 1774 additions and 1140 deletions

View file

@ -30,6 +30,8 @@ watchConfig.watch = true;
// create a single instance of the compiler to allow caching
var watchCompiler = webpack(watchConfig);
var buildDocs = require('gulp-documentation');
// Lint JS
gulp.task('lint', function() {
return gulp.src('src/*.js')
@ -123,6 +125,24 @@ gulp.task("serve", function(callback) {
});
gulp.task('docs:md', function () {
return gulp.src('./src/epub.js')
.pipe(buildDocs({ format: 'md' }))
.pipe(gulp.dest('documentation/md'));
});
gulp.task('docs:html', function () {
return gulp.src('./src/epub.js')
.pipe(buildDocs({ format: 'html' }))
.pipe(gulp.dest('documentation/html'));
});
gulp.task('docs:watch', function () {
return gulp.watch('./src/**/*.js', ['docs:html']);
});
gulp.task('docs', ['docs:html', 'docs:md']);
// Default
gulp.task('default', ['lint', 'bundle']);