Added gulp task to copy built data into foundry systems folder

This commit is contained in:
Jacob Lucas 2021-06-24 18:10:49 +01:00
parent 7293439229
commit 2790e6f3db

View file

@ -10,6 +10,8 @@ const fs = require('fs');
const src = "./src/"
const dest = "./dist/"
const foundryDest = process.env.LOCALAPPDATA + "/FoundryVTT/Data/systems/SW5e-Dev";
/* ----------------------------------------- */
/* Compile LESS
/* ----------------------------------------- */
@ -95,6 +97,16 @@ async function copy() {
const build = gulp.parallel(css, compilePacks, copy)
/* ----------------------------------------- */
/* Send to foundry
/* ----------------------------------------- */
async function copyToFoundry() {
gulp.src(dest + "/**").pipe(gulp.dest(foundryDest));
}
const foundry = gulp.series(build, copyToFoundry);
/* ----------------------------------------- */
/* Watch Updates
/* ----------------------------------------- */
@ -109,4 +121,5 @@ function watchUpdates() {
/* ----------------------------------------- */
exports.default = build;
exports.foundry = foundry;
exports.watch = watchUpdates;