-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
55 lines (51 loc) · 1.45 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
const fileinclude = require('gulp-file-include');
const markdown = require('markdown');
var runSequence = require('gulp4-run-sequence');
const gulp = require('gulp');
gulp.task('build', function (callback) {
runSequence('build-ifc-pages', callback);
runSequence('build-las-pages', callback);
runSequence('build-gltf-pages', callback);
});
gulp.task('build-ifc-pages', function () {
return gulp.src([
'_pages/ifc/ifc-index.html',
'_pages/ifc/ifc-tests.html',
'_pages/ifc/ifc-viewer.html',
'_pages/ifc/ifc-debug.html'
])
.pipe(fileinclude({
filters: {
markdown: markdown.parse
}
}))
.pipe(gulp.dest('./'));
});
gulp.task('build-las-pages', function () {
return gulp.src([
'_pages/las/las-index.html',
'_pages/las/las-tests.html',
'_pages/las/las-viewer.html',
'_pages/las/las-debug.html'
])
.pipe(fileinclude({
filters: {
markdown: markdown.parse
}
}))
.pipe(gulp.dest('./'));
});
gulp.task('build-gltf-pages', function () {
return gulp.src([
'_pages/gltf/gltf-index.html',
'_pages/gltf/gltf-tests.html',
'_pages/gltf/gltf-viewer.html',
'_pages/gltf/gltf-debug.html'
])
.pipe(fileinclude({
filters: {
markdown: markdown.parse
}
}))
.pipe(gulp.dest('./'));
});