-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
39 lines (34 loc) · 873 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
33
34
35
36
37
38
39
const gulp = require('gulp');
const { src, dest } = require('gulp');
const fileinclude = require('gulp-file-include');
const { series } = require('gulp');
const paths = {
scripts: {
src: './source',
dest: './'
}
};
async function includeHTML(){
return src([
'./source/*.html',
'./source/*.md',
'./source/*.js',
'!header.html', // ignore
'!footer.html' // ignore
])
.pipe(fileinclude({
prefix: '@@',
basepath: '@file'
}))
.pipe(dest(paths.scripts.dest));
}
// async function include_images() {
// return src('images/*')
// .pipe(dest('build/images/'));
// }
// async function include_publications() {
// return src('publications/*')
// .pipe(dest('build/publications/'));
// }
// exports.default = series(includeHTML, include_images, include_publications);
exports.default = includeHTML;