forked from GitHub-Mirrors/foundry-sw5e
Added gulp task to copy built data into foundry systems folder
This commit is contained in:
parent
7293439229
commit
2790e6f3db
1 changed files with 13 additions and 0 deletions
13
gulpfile.js
13
gulpfile.js
|
@ -10,6 +10,8 @@ const fs = require('fs');
|
||||||
const src = "./src/"
|
const src = "./src/"
|
||||||
const dest = "./dist/"
|
const dest = "./dist/"
|
||||||
|
|
||||||
|
const foundryDest = process.env.LOCALAPPDATA + "/FoundryVTT/Data/systems/SW5e-Dev";
|
||||||
|
|
||||||
/* ----------------------------------------- */
|
/* ----------------------------------------- */
|
||||||
/* Compile LESS
|
/* Compile LESS
|
||||||
/* ----------------------------------------- */
|
/* ----------------------------------------- */
|
||||||
|
@ -95,6 +97,16 @@ async function copy() {
|
||||||
|
|
||||||
const build = gulp.parallel(css, compilePacks, 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
|
/* Watch Updates
|
||||||
/* ----------------------------------------- */
|
/* ----------------------------------------- */
|
||||||
|
@ -109,4 +121,5 @@ function watchUpdates() {
|
||||||
/* ----------------------------------------- */
|
/* ----------------------------------------- */
|
||||||
|
|
||||||
exports.default = build;
|
exports.default = build;
|
||||||
|
exports.foundry = foundry;
|
||||||
exports.watch = watchUpdates;
|
exports.watch = watchUpdates;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue