-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
24 lines (23 loc) · 736 Bytes
/
Copy pathgulpfile.js
File metadata and controls
24 lines (23 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const fs = require('fs');
const gulp = require('gulp');
const gulpMediaJson = require(__dirname + '\\index.js');
gulp.task('default', function () {
return gulp.src('test/data/**/*.*')
.pipe(gulpMediaJson({
basePath: 'test\\',
escapeNamespace: (s, ext) => {
return s + '-' + ext;
},
fileName: 'media.json',
emptyImageBase64: true,
emptyImageBase64Namespace: 'empty',
ratioValue: true,
startObj: {},
endObj: null,
exportModule: false,
jsonReplacer: null,
jsonSpace: '\t',
basePath: 'test\\data\\'
}))
.pipe(gulp.dest('test/output'));
});