pelican-jdr/gulpfile.js

28 lines
568 B
JavaScript
Raw Normal View History

2020-04-29 17:15:25 +02:00
const { src, dest, parallel } = require('gulp');
const include = require('gulp-include');
const sass = require('gulp-sass');
const cleanCSS = require('gulp-clean-css');
sass.compiler = require('node-sass');
function html() {
return src('static/*')
2020-04-29 17:36:03 +02:00
.pipe(include())
2020-04-29 17:15:25 +02:00
.pipe(dest('dist'))
}
function dep() {
return src(['dep/**/*'])
.pipe(dest('dist/dep'));
}
function assets() {
return src(['assets/**/*'])
.pipe(dest('dist'));
}
exports.html = html;
exports.dep = dep;
exports.assets = assets;
exports.default = parallel(html, dep, assets);