forked from ottofeller/epubjs-rn
-
Notifications
You must be signed in to change notification settings - Fork 8
/
gulpfile.js
32 lines (27 loc) · 860 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var gulp = require("gulp");
// var gutil = require('gulp-util');
// var babel = require("gulp-babel");
// var plumber = require('gulp-plumber');
// var onError = function (err) {
// gutil.log(err);
// };
function copy() {
return gulp.src(['./components/**/*.js'])
.pipe(gulp.dest("./EpubReader/node_modules/epubjs-rn/components"));
}
function copyPackage() {
return gulp.src(['./package.json'])
.pipe(gulp.dest("./EpubReader/node_modules/epubjs-rn"));
}
function copyEpubjs() {
return gulp.src(['../epub.js/lib/**/*.js'])
.pipe(gulp.dest("./EpubReader/node_modules/epubjs/lib"));
}
function watch() {
return gulp.watch('./components/**/*.js', gulp.parallel(copy, copyPackage));
}
exports.watch = watch;
exports.copy = copy;
exports.copyPackage = copyPackage;
exports.copyEpubjs = copyEpubjs;
exports.default = gulp.parallel(copy, copyPackage);