Skip to content
This repository was archived by the owner on Apr 15, 2022. It is now read-only.

Commit ae8ca20

Browse files
committed
Default config for GitHub actions
1 parent c83bf2e commit ae8ca20

2 files changed

Lines changed: 26 additions & 5 deletions

File tree

foundryconfig.default.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"path": {
3+
"modules": "./",
4+
"entry": {
5+
"script": "./src/module/Main.ts",
6+
"sass": "./src/css/bundle.scss"
7+
},
8+
"assets": [
9+
["module.json", "./"],
10+
["LICENSE", "./"],
11+
["src/templates/**/*", "./templates"],
12+
["FVTT-Common/src/templates/**/*", "./templates"],
13+
["src/packs/**/*", "./packs"]
14+
]
15+
},
16+
"dist": {
17+
"name": "pf2e-toolbox",
18+
"bundle": "bundle.js"
19+
}
20+
}

gulp.tasks.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@
1616

1717
'use strict';
1818

19-
import { rejects } from 'assert';
20-
2119
const BASE_BUILD_ARGUMENTS = {
2220
sourceType: 'module',
2321
debug: true,
2422
};
2523

26-
const resolveRequires = () => {};
27-
2824
const loadFoundryConfig = async (fs) => {
29-
const config = JSON.parse(fs.readFileSync('./foundryconfig.json'));
25+
let configPath = './foundryconfig.json';
26+
if (!fs.existsSync(configPath)) {
27+
configPath = './foundryconfig.default.json';
28+
}
29+
30+
const config = JSON.parse(fs.readFileSync(configPath));
3031
if (!fs.existsSync(config.path.modules)) {
3132
throw new Error(`Path ${config.path.modules} does not exist. Did you set your config?`);
3233
}

0 commit comments

Comments
 (0)