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

Commit

Permalink
Default config for GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Djphoenix719 committed Dec 11, 2021
1 parent c83bf2e commit ae8ca20
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
20 changes: 20 additions & 0 deletions foundryconfig.default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"path": {
"modules": "./",
"entry": {
"script": "./src/module/Main.ts",
"sass": "./src/css/bundle.scss"
},
"assets": [
["module.json", "./"],
["LICENSE", "./"],
["src/templates/**/*", "./templates"],
["FVTT-Common/src/templates/**/*", "./templates"],
["src/packs/**/*", "./packs"]
]
},
"dist": {
"name": "pf2e-toolbox",
"bundle": "bundle.js"
}
}
11 changes: 6 additions & 5 deletions gulp.tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@

'use strict';

import { rejects } from 'assert';

const BASE_BUILD_ARGUMENTS = {
sourceType: 'module',
debug: true,
};

const resolveRequires = () => {};

const loadFoundryConfig = async (fs) => {
const config = JSON.parse(fs.readFileSync('./foundryconfig.json'));
let configPath = './foundryconfig.json';
if (!fs.existsSync(configPath)) {
configPath = './foundryconfig.default.json';
}

const config = JSON.parse(fs.readFileSync(configPath));
if (!fs.existsSync(config.path.modules)) {
throw new Error(`Path ${config.path.modules} does not exist. Did you set your config?`);
}
Expand Down

0 comments on commit ae8ca20

Please sign in to comment.