diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d0042fb --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,15 @@ +image: ruby:2.7 + +workflow: + rules: + - if: "$CI_COMMIT_BRANCH" + +pages: + stage: deploy + script: + - mv .public public + artifacts: + paths: + - public + rules: + - if: '$CI_COMMIT_BRANCH == "development"' diff --git a/.public/index.html b/.public/index.html index cef4801..ea2d777 100644 --- a/.public/index.html +++ b/.public/index.html @@ -83,9 +83,33 @@
+ You'll need a Foundry VTT License or GM access to a Foundry VTT + server. +
++
You can find System settings in the Configure Settings dialog you open from the sidebar
diff --git a/README.md b/README.md index 0d2cbcc..3131a0f 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,22 @@ -# ACKS System for Foundry VTT (Unofficial) -All the features you need to play ACKS in Foundry VTT. +# Old School Essentials System for Foundry VTT (Unofficial) +All the features you need to play Old School Essentials or B/X Games in Foundry VTT. + +## Installation +You can find this Foundry VTT game system within Foundry VTT in the system browser. You could also download the latest archive in the package folder, or use the manifest link below.\ +https://gitlab.com/mesfoliesludiques/foundryvtt-ose/-/raw/master/src/system.json ## License -This Foundry VTT system requires ACKS Core Rules that you can find at http://autarch.co/buy-now. -This third party product is not affiliated with or approved by Autarch. +This Foundry VTT system requires Old-School Essentials Core Rules that you can find [here](https://necroticgnome.com). + +This third party product is not affiliated with or approved by Necrotic Gnome. \ +Old-School Essentials is a trademark of Necrotic Gnome.\ +The trademark and Old-School Essentials logo are used with permission of Necrotic Gnome, under license. ## Artwork -Weapon quality icons, and the Treasure chest are from Rexxard. Other graphics are from the Old School Essentials System for Foundry VTT (Unofficial) by U~man which can be found at https://gitlab.com/mesfoliesludiques/foundryvtt-ose +Weapon quality icons, and the Treasure chest are from [Rexxard](https://assetstore.unity.com/packages/2d/gui/icons/flat-skills-icons-82713). ## Contributions -If you like this work, please consider buying U~man a coffee at ko-fi -[](https://ko-fi.com/H2H21WMKA) +Any feedback is deeply appreciated. Please issue [tickets](https://gitlab.com/mesfoliesludiques/foundryvtt-ose/-/boards).\ +Feel free to grab a TO DO issue from the gitlab board. You can then do a merge request on the `development` branch. + +[](https://ko-fi.com/H2H21WMKA) \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..0023a64 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,492 @@ +const gulp = require("gulp"); +const fs = require("fs-extra"); +const path = require("path"); +const chalk = require("chalk"); +const archiver = require("archiver"); +const stringify = require("json-stringify-pretty-compact"); +const typescript = require("typescript"); + +const ts = require("gulp-typescript"); +const less = require("gulp-less"); +const sass = require("gulp-sass"); +const git = require("gulp-git"); + +const argv = require("yargs").argv; + +sass.compiler = require("sass"); + +function getConfig() { + const configPath = path.resolve(process.cwd(), "foundryconfig.json"); + let config; + + if (fs.existsSync(configPath)) { + config = fs.readJSONSync(configPath); + return config; + } else { + return; + } +} + +function getManifest() { + const json = {}; + + if (fs.existsSync("src")) { + json.root = "src"; + } else { + json.root = "dist"; + } + + const modulePath = path.join(json.root, "module.json"); + const systemPath = path.join(json.root, "system.json"); + + if (fs.existsSync(modulePath)) { + json.file = fs.readJSONSync(modulePath); + json.name = "module.json"; + } else if (fs.existsSync(systemPath)) { + json.file = fs.readJSONSync(systemPath); + json.name = "system.json"; + } else { + return; + } + + return json; +} + +/** + * TypeScript transformers + * @returns {typescript.TransformerFactory