This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
vault/gulpfile.js

30 lines
557 B
JavaScript
Raw Normal View History

2020-12-26 09:16:26 +01:00
const { src, dest, parallel } = require('gulp');
const include = require('gulp-include');
function html() {
return src('static/*')
.pipe(include())
.pipe(dest('dist'))
}
function dep() {
return src(['dep/**/*'])
.pipe(dest('dist/dep'));
}
function assets() {
return src(['assets/**/*'])
.pipe(dest('dist'));
}
function rules() {
return src(['vault/**/*'])
.pipe(dest('dist'));
}
exports.html = html;
exports.dep = dep;
exports.assets = assets;
exports.rules = rules;
exports.default = parallel(html, dep, assets, rules);