Skip to content

Commit

Permalink
chore(release): 🚀 Release 9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aMediocreDad committed Mar 26, 2022
1 parent ab57045 commit 15cb1a4
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 107 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,30 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [9.0.0](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/compare/v8.2.1...v9.0.0) (2022-03-26)


### Features

* ✨ Add conditions active effect and let it affect rest ([e4a485b](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/commit/e4a485bc439843f6afeede7c973ba0baa6e6f746))
* ✨ Add Gear Bonus toggle ([829bd71](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/commit/829bd7138fa51f9214ae43a4f6a74f927a9ddec0))
* ✨ Add setting for max initiative ([636f886](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/commit/636f886866fca9b150cc6538d063f7034a5f808e))
* ✨ Distinguish between gear rolled ([0c37c84](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/commit/0c37c843d09888d8919e6a46bc263d1a22eb0b5f))
* ✨ Move Unlimited Push-setting to actor sheet config ([05ef19f](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/commit/05ef19fcc8f6c6083ff2192775c77884e54b9e5f))
* ✨ Remove sleepy and be more accurate in chat message ([d214df2](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/commit/d214df27b4fe0334b7d44b45582ff9f7f9934cfc))
* add damage in all gears selected ([31edc4c](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/commit/31edc4ca9963e640cf65af5604f439039e9d21e9))
* wip ([38dd7f8](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/commit/38dd7f8c2c9391cabfbc1822cbba6e7b73f2a59e))


### Bug Fixes

* 🐛 Fixes [#200](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/issues/200) ([9a814f5](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/commit/9a814f5cc0587de090cf1faeac608656b0a9a568))
* 🐛 Hidden fields displayed in chat message ([cb433c4](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/commit/cb433c419ebf88b2f115e8983bee50ea6bae5de2))
* 🐛 Separate gear and modifier rolls. Fix edgecases. ([63aa4b2](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/commit/63aa4b283fbe3227ccad109644f67f38d363c034))
* modifier accumulator and selected gears ([65d38f1](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/commit/65d38f19ab27a5fe9bf815a2a0613a95e5bf3761))
* push message with damage of selected gears ([6c7a295](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/commit/6c7a2955926a71be8c15d99d8eb16956b0e8b86a))
* remove non-useful test property ([3a02dba](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/commit/3a02dbad7f2f902ecb5988c7fe961e5d21a82f88))

### [8.2.1](https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/compare/v8.2.0...v8.2.1) (2022-02-28)


Expand Down
18 changes: 6 additions & 12 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const templateExt = "hbs";
const staticFiles = ["lang", "assets", "fonts", "scripts", "system.json", "template.json", "LICENSE"];
const getDownloadURL = (version) =>
`https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/releases/download/v${version}/fbl-fvtt_v${version}.zip`;
const packageJson = JSON.parse(fs.readFileSync("package.json"));

const stdio = "inherit";

Expand Down Expand Up @@ -91,7 +92,7 @@ async function cleanDist() {
* Get the data path of Foundry VTT based on what is configured in `foundryconfig.json`
*/
function getDataPath() {
const config = fs.readJSONSync("foundryconfig.json");
const config = JSON.parse(fs.readFileSync("foundryconfig.json"));

if (config?.dataPath) {
if (!fs.existsSync(path.resolve(config.dataPath))) {
Expand Down Expand Up @@ -140,7 +141,7 @@ function getManifest() {

if (fs.existsSync(manifestPath)) {
return {
file: fs.readJSONSync(manifestPath),
file: JSON.parse(fs.readFileSync(manifestPath)),
name: "system.json",
};
}
Expand All @@ -166,7 +167,7 @@ async function changelog() {
* Commit and push release to Github Upstream
*/
async function commitTagPush() {
const { version } = fs.readJSONSync("package.json");
const { version } = packageJson;
const commitMsg = `chore(release): Release ${version}`;
await execa("git", ["add", "-A"], { stdio });
await execa("git", ["commit", "--message", commitMsg], { stdio });
Expand All @@ -179,8 +180,6 @@ async function commitTagPush() {
* Update version and download URL.
*/
async function bumpVersion(cb) {
const packageJson = fs.readJSONSync("package.json");
const packageLockJson = fs.existsSync("package-lock.json") ? fs.readJSONSync("package-lock.json") : undefined;
const manifest = getManifest();

if (!manifest) cb(Error(chalk.red("Manifest JSON not found")));
Expand Down Expand Up @@ -208,16 +207,11 @@ async function bumpVersion(cb) {
console.log(`Updating version number to '${targetVersion}'`);

packageJson.version = targetVersion;
fs.writeJSONSync("package.json", packageJson, { spaces: "\t" });

if (packageLockJson) {
packageLockJson.version = targetVersion;
fs.writeJSONSync("package-lock.json", packageLockJson, { spaces: "\t" });
}
fs.writeFileSync("package.json", JSON.stringify(packageJson, null, "\t"));

manifest.file.version = targetVersion;
manifest.file.download = getDownloadURL(targetVersion);
fs.writeJSONSync(`static/${manifest.name}`, manifest.file, { spaces: "\t" });
fs.writeFileSync(`static/${manifest.name}`, JSON.stringify(manifest.file, null, "\t"));

return cb();
} catch (err) {
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "forbidden-lands",
"version": "8.2.1",
"version": "9.0.0",
"type": "module",
"description": "<p align=\"center\">\r <a href=\"https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/releases/latest\" target=\"_blank\"><img alt=\"system version\" src=\"https://img.shields.io/badge/dynamic/json.svg?url=https%3A%2F%2Fraw.githubusercontent.com%2Ffvtt-fria-ligan%2Fforbidden-lands-foundry-vtt%2Fmain%2Fsystem.json&label=Version&query=$.version&colorB=blue\"/></a>\r <a href=\"https://foundryvtt.com\" target=\"_blank\">\r <img src=\"https://img.shields.io/badge/dynamic/json.svg?url=https%3A%2F%2Fraw.githubusercontent.com%2Ffvtt-fria-ligan%2Fforbidden-lands-foundry-vtt%2Fmain%2Fsystem.json&label=Foundry&query=$.compatibleCoreVersion&colorB=blue\" alt=\"foundry-compatibility-version\" style=\"max-width:100%;\"/>\r </a>\r <a href=\"https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/graphs/commit-activity\" target=\"_blank\">\r <img alt=\"Maintenance\" src=\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\"/>\r </a>\r <a href=\"https://gitlocalize.com/repo/5750/whole_project?utm_source=badge\" target=\"_blank\"><img alt=\"Localization\" src=\"https://gitlocalize.com/repo/5750/whole_project/badge.svg\" /></a>\r <a href=\"https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/blob/main/LICENSE\" target=\"_blank\">\r <img alt=\"License: GPL\" src=\"https://img.shields.io/github/license/fvtt-fria-ligan/forbidden-lands-foundry-vtt\"/>\r </a>\r <br/>\r <br/>\r <img src=\"https://user-images.githubusercontent.com/9851733/108728684-1a954b00-752a-11eb-9138-6fab6f83b2a8.jpg\" alt=\"Logo\" style=\"max-width:100%;\" />\r </p>",
"license": "GPL-3.0-or-later",
Expand Down Expand Up @@ -36,23 +36,23 @@
},
"devDependencies": {
"@milahu/patch-package-with-pnpm-support": "6.4.8",
"@types/foundry-vtt-types": "npm:@league-of-foundry-developers/[email protected].2",
"@types/foundry-vtt-types": "npm:@league-of-foundry-developers/[email protected].3",
"@types/jquery": "3.5.14",
"@typhonjs-fvtt/eslint-config-foundry.js": "0.8.0",
"chalk": "5.0.1",
"cross-env": "7.0.3",
"devmoji": "2.3.0",
"esbuild": "0.14.27",
"esbuild": "0.14.28",
"esbuild-sass-plugin": "2.2.5",
"eslint": "8.11.0",
"eslint": "8.12.0",
"eslint-config-jquery": "3.0.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-prettier": "4.0.0",
"execa": "6.1.0",
"fs-extra-plus": "0.6.0",
"gulp": "4.0.2",
"husky": "7.0.4",
"prettier": "2.6.0",
"prettier": "2.6.1",
"semver": "7.3.5",
"standard-version": "9.3.2"
},
Expand Down
Loading

0 comments on commit 15cb1a4

Please sign in to comment.