Merge branch 'main' of https://git.macniel.online/macniel/foundry-dsa41-game
# Conflicts: # src/packs/_source/zauber/abvenenum.jsonpull/58/head
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/DSA41.iml" filepath="$PROJECT_DIR$/.idea/DSA41.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
18
gulpfile.mjs
|
|
@ -1,11 +1,9 @@
|
|||
import { src, dest, series } from 'gulp';
|
||||
import {dest, series, src} from 'gulp';
|
||||
import process from 'node:process';
|
||||
import replace from 'gulp-replace';
|
||||
|
||||
import * as dartSass from 'sass';
|
||||
import gulpSass from 'gulp-sass';
|
||||
const sass = gulpSass(dartSass);
|
||||
|
||||
import {deleteAsync} from 'del';
|
||||
|
||||
import {readdirSync} from 'node:fs';
|
||||
|
|
@ -13,6 +11,8 @@ import { join } from 'node:path';
|
|||
|
||||
import {compilePack} from '@foundryvtt/foundryvtt-cli';
|
||||
|
||||
const sass = gulpSass(dartSass);
|
||||
|
||||
function cleanDist() {
|
||||
return deleteAsync(['dist/**']);
|
||||
}
|
||||
|
|
@ -22,13 +22,18 @@ function buildStyles() {
|
|||
return src('src/style/**/*.scss')
|
||||
.pipe(sass().on('error', sass.logError))
|
||||
.pipe(dest('dist/style/'))
|
||||
};
|
||||
}
|
||||
|
||||
function copySource() {
|
||||
return src(['src/**/*', '!src/style/**/*.scss', '!src/packs/**/*'])
|
||||
return src(['src/**/*', '!src/assets/**/*', '!src/style/**/*.scss', '!src/packs/**/*'])
|
||||
.pipe(dest('dist/'));
|
||||
}
|
||||
|
||||
function copyAssets() {
|
||||
return src(['src/assets/**/*'], {encoding: false})
|
||||
.pipe(dest('dist/assets/'))
|
||||
}
|
||||
|
||||
function updateManifestFile() {
|
||||
return src('dist/system.json')
|
||||
.pipe(replace('{{VERSION}}', process.env.VERSION))
|
||||
|
|
@ -38,7 +43,7 @@ function updateManifestFile() {
|
|||
function buildDB() {
|
||||
// Determine which source folders to process
|
||||
|
||||
const PACK_SRC = "src/packs/_source"
|
||||
const PACK_SRC = "src/packs/__source"
|
||||
const PACK_DEST = "dist/packs/"
|
||||
|
||||
return new Promise(async (resolve, reject) => {
|
||||
|
|
@ -61,6 +66,7 @@ function buildDB() {
|
|||
export default series(
|
||||
cleanDist,
|
||||
copySource,
|
||||
copyAssets,
|
||||
buildStyles,
|
||||
buildDB,
|
||||
updateManifestFile
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import {cpSync, existsSync} from 'node:fs';
|
||||
import { resolve, join } from 'node:path';
|
||||
import {join, resolve} from 'node:path';
|
||||
|
||||
const MODULE_ID = process.cwd();
|
||||
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 340 KiB |
|
After Width: | Height: | Size: 647 B |
|
After Width: | Height: | Size: 642 B |
|
After Width: | Height: | Size: 582 B |
|
After Width: | Height: | Size: 607 B |
|
After Width: | Height: | Size: 596 B |
|
After Width: | Height: | Size: 740 B |
|
After Width: | Height: | Size: 662 B |
|
After Width: | Height: | Size: 503 B |
|
After Width: | Height: | Size: 563 B |
|
After Width: | Height: | Size: 511 B |
|
After Width: | Height: | Size: 551 B |
|
After Width: | Height: | Size: 508 B |
|
After Width: | Height: | Size: 590 B |
|
After Width: | Height: | Size: 484 B |
|
After Width: | Height: | Size: 440 B |
|
After Width: | Height: | Size: 568 B |
|
After Width: | Height: | Size: 504 B |
|
After Width: | Height: | Size: 645 B |
|
After Width: | Height: | Size: 534 B |
|
After Width: | Height: | Size: 669 B |
|
After Width: | Height: | Size: 482 B |
|
After Width: | Height: | Size: 480 B |
|
After Width: | Height: | Size: 562 B |
|
After Width: | Height: | Size: 584 B |
|
After Width: | Height: | Size: 554 B |
|
After Width: | Height: | Size: 472 B |
|
After Width: | Height: | Size: 517 B |
|
After Width: | Height: | Size: 561 B |
|
After Width: | Height: | Size: 570 B |
|
After Width: | Height: | Size: 563 B |
|
After Width: | Height: | Size: 627 B |
|
After Width: | Height: | Size: 601 B |
|
After Width: | Height: | Size: 579 B |
|
After Width: | Height: | Size: 555 B |
|
After Width: | Height: | Size: 548 B |
|
After Width: | Height: | Size: 487 B |
|
After Width: | Height: | Size: 579 B |
|
After Width: | Height: | Size: 541 B |
|
After Width: | Height: | Size: 521 B |
|
After Width: | Height: | Size: 596 B |
|
After Width: | Height: | Size: 664 B |
|
After Width: | Height: | Size: 567 B |
|
After Width: | Height: | Size: 571 B |
|
After Width: | Height: | Size: 523 B |
|
After Width: | Height: | Size: 507 B |
|
After Width: | Height: | Size: 531 B |
|
After Width: | Height: | Size: 538 B |
|
After Width: | Height: | Size: 600 B |
|
After Width: | Height: | Size: 630 B |
|
After Width: | Height: | Size: 613 B |
|
After Width: | Height: | Size: 509 B |
|
After Width: | Height: | Size: 472 B |
|
After Width: | Height: | Size: 495 B |
|
After Width: | Height: | Size: 485 B |
|
After Width: | Height: | Size: 504 B |
|
After Width: | Height: | Size: 584 B |
|
After Width: | Height: | Size: 561 B |
|
After Width: | Height: | Size: 602 B |
|
After Width: | Height: | Size: 564 B |
|
After Width: | Height: | Size: 531 B |
|
After Width: | Height: | Size: 517 B |
|
After Width: | Height: | Size: 607 B |
|
After Width: | Height: | Size: 548 B |
|
After Width: | Height: | Size: 528 B |
|
After Width: | Height: | Size: 512 B |
|
After Width: | Height: | Size: 424 B |
|
After Width: | Height: | Size: 627 B |
|
After Width: | Height: | Size: 509 B |
|
After Width: | Height: | Size: 499 B |
|
After Width: | Height: | Size: 508 B |
|
After Width: | Height: | Size: 508 B |
|
After Width: | Height: | Size: 513 B |
|
After Width: | Height: | Size: 514 B |
|
After Width: | Height: | Size: 580 B |
|
After Width: | Height: | Size: 551 B |
|
After Width: | Height: | Size: 605 B |
|
After Width: | Height: | Size: 583 B |
|
After Width: | Height: | Size: 475 B |
|
After Width: | Height: | Size: 485 B |
|
After Width: | Height: | Size: 582 B |
|
After Width: | Height: | Size: 570 B |
|
After Width: | Height: | Size: 657 B |
|
After Width: | Height: | Size: 597 B |
|
After Width: | Height: | Size: 666 B |
|
After Width: | Height: | Size: 602 B |
|
After Width: | Height: | Size: 558 B |
|
After Width: | Height: | Size: 542 B |
|
After Width: | Height: | Size: 527 B |
|
After Width: | Height: | Size: 533 B |
|
After Width: | Height: | Size: 520 B |
|
After Width: | Height: | Size: 535 B |
|
After Width: | Height: | Size: 503 B |