-
Notifications
You must be signed in to change notification settings - Fork 2
/
gulpfile.js
58 lines (55 loc) · 1.95 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
56
57
58
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-pages', 'build-blog', callback);
});
gulp.task('build-pages', function () {
return gulp.src([
'_pages/index.html',
'_pages/demo.html',
'_pages/download.html',
'_pages/blog.html',
'_pages/for-business.html',
'_pages/fur-das-geschaft.html'
])
.pipe(fileinclude({
filters: {
markdown: markdown.parse
}
}))
.pipe(gulp.dest('./'));
});
gulp.task('build-blog', function () {
return gulp.src([
`_blog/blog_creoox_becomes_xeokit_sales_partner.html`,
'_blog/blog_xeokit_at_webgl_meetup_2020.html',
'_blog/blog_full_precision_geometry.html',
'_blog/blog_xkt_utilities_library.html',
'_blog/blog_xeokit_powering_bimdata.html',
'_blog/blog_xeokit_partners_with_bimspot.html',
'_blog/blog_xeokit_powering_planradar.html',
'_blog/blog_xeokit_partners_with_congrid.html',
//'_blog/blog_view_culling.html',
'_blog/blog_explosions.html',
'_blog/blog_xeokit_partners_with_bimspot.html',
'_blog/blog_xeokit_partners_with_dstudio.html',
'_blog/blog_xeokit_partners_with_singular.html',
'_blog/blog_ambientShadows.html',
'_blog/blog_bimViewer.html',
'_blog/blog_fastLoading.html',
'_blog/blog_xeokit_partners_with_openproject.html',
'_blog/blog_smoothRendering.html',
'_blog/blog_saoEdgesDisableOnCameraMove.html',
'_blog/blog_xeokit_at_siggraph.html',
'_blog/blog_treeViews.html',
'_blog/blog_xeokit_release_1.1.html',
])
.pipe(fileinclude({
filters: {
markdown: markdown.parse
}
}))
.pipe(gulp.dest('./'));
});