Compare commits

...

18 commits

Author SHA1 Message Date
Renovate Bot
6ccdc27019 chore(deps): update dependency rollup to v2.67.2 2022-02-10 09:14:46 +00:00
ghost
5fb799273c chore(release): 1.12.6 2022-02-08 20:50:22 +00:00
Johannes Loher
fff74d555d docs: use URLs for LICENSE and README and update them during version bumps 2022-02-08 21:46:12 +01:00
Renovate Bot
793beea213 chore(deps): update dependency jest to v27.5.1 2022-02-08 11:14:32 +00:00
Renovate Bot
80fdfe6fd0 chore(deps): update typescript-eslint monorepo to v5.11.0 2022-02-07 18:15:07 +00:00
Renovate Bot
40e9601763 chore(deps): update dependency rollup to v2.67.1 2022-02-07 06:15:26 +00:00
Renovate Bot
eff24472b7 chore(deps): update dependency eslint-plugin-jest to v26.1.0 2022-02-06 22:16:40 +00:00
Renovate Bot
4c53f1a9c5 chore(deps): update dependency jest to v27.5.0 2022-02-05 10:14:36 +00:00
Renovate Bot
1858c44d24 chore(deps): update dependency rollup to v2.67.0 2022-02-02 07:14:33 +00:00
ghost
e0498a45db chore(release): 1.12.5 2022-02-02 00:36:23 +00:00
Johannes Loher
f3eb17deef build: delete obsolete versions when auto publishing 2022-02-02 01:33:33 +01:00
Johannes Loher
7ed993e04b Merge branch 'renovate/league-of-foundry-developers-foundry-vtt-types-9.x' into 'master'
chore(deps): update dependency @league-of-foundry-developers/foundry-vtt-types to v9.249.0

See merge request dungeonslayers/ds4!168
2022-02-02 00:15:55 +00:00
Renovate Bot
2ba8f23b0d chore(deps): update dependency @league-of-foundry-developers/foundry-vtt-types to v9.249.0 2022-02-01 23:16:44 +00:00
Renovate Bot
ccebb70e81 chore(deps): update dependency sass to v1.49.7 2022-02-01 22:16:18 +00:00
Renovate Bot
7a8e314b2f chore(deps): update dependency lint-staged to v12.3.3 2022-02-01 18:14:46 +00:00
Renovate Bot
434a3cb8df chore(deps): update dependency sass to v1.49.4 2022-02-01 02:15:50 +00:00
Renovate Bot
99f42d6b88 chore(deps): update typescript-eslint monorepo to v5.10.2 2022-01-31 18:15:46 +00:00
Johannes Loher
dd9e30f8a1 build: fix package linking 2022-01-31 18:23:53 +01:00
6 changed files with 527 additions and 453 deletions

View file

@ -169,6 +169,7 @@ publish-to-foundry-admin:
variables:
FVTT_MANIFEST_PATH: ds4/system.json
FVTT_MANIFEST_URL: ${CI_PROJECT_URL}/-/releases/${CI_COMMIT_TAG}/downloads/system.json
FVTT_DELETE_OBSOLETE_VERSIONS: "true"
script: foundry-publish
rules:
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'

View file

@ -2,7 +2,7 @@
"private": true,
"name": "dungeonslayers4",
"description": "An implementation of the Dungeonslayers 4 game system for Foundry Virtual Tabletop.",
"version": "1.12.4",
"version": "1.12.6",
"license": "https://git.f3l.de/dungeonslayers/ds4#licensing",
"homepage": "https://git.f3l.de/dungeonslayers/ds4",
"repository": {
@ -61,31 +61,31 @@
"@commitlint/cli": "16.1.0",
"@commitlint/config-conventional": "16.0.0",
"@guanghechen/rollup-plugin-copy": "1.8.6",
"@league-of-foundry-developers/foundry-vtt-types": "9.242.0",
"@league-of-foundry-developers/foundry-vtt-types": "9.249.0",
"@rollup/plugin-typescript": "8.3.0",
"@seald-io/nedb": "2.2.1",
"@types/fs-extra": "9.0.13",
"@types/jest": "27.4.0",
"@typescript-eslint/eslint-plugin": "5.10.1",
"@typescript-eslint/parser": "5.10.1",
"@typescript-eslint/eslint-plugin": "5.11.0",
"@typescript-eslint/parser": "5.11.0",
"conventional-changelog-cli": "2.2.2",
"conventional-changelog-conventionalcommits": "4.6.3",
"eslint": "8.8.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-jest": "26.0.0",
"eslint-plugin-jest": "26.1.0",
"eslint-plugin-prettier": "4.0.0",
"fs-extra": "10.0.0",
"husky": "7.0.4",
"jest": "27.4.7",
"jest": "27.5.1",
"jest-junit": "13.0.0",
"lint-staged": "12.3.2",
"lint-staged": "12.3.3",
"npm-run-all": "4.1.5",
"prettier": "2.5.1",
"rimraf": "3.0.2",
"rollup": "2.66.1",
"rollup": "2.67.2",
"rollup-plugin-styles": "4.0.0",
"rollup-plugin-terser": "7.0.2",
"sass": "1.49.0",
"sass": "1.49.7",
"semver": "7.3.5",
"ts-jest": "27.1.3",
"tslib": "2.3.1",

View file

@ -29,11 +29,11 @@
}
],
"url": "https://git.f3l.de/dungeonslayers/ds4",
"license": "./LICENSE.md",
"readme": "./README.md",
"license": "https://git.f3l.de/dungeonslayers/ds4/-/raw/1.12.6/LICENSE.md",
"readme": "https://git.f3l.de/dungeonslayers/ds4/-/raw/1.12.6/README.md",
"bugs": "https://git.f3l.de/dungeonslayers/ds4/-/issues",
"changelog": "https://git.f3l.de/dungeonslayers/ds4/-/releases/1.12.4",
"version": "1.12.4",
"changelog": "https://git.f3l.de/dungeonslayers/ds4/-/releases/1.12.6",
"version": "1.12.6",
"minimumCoreVersion": "9.238",
"compatibleCoreVersion": "9",
"esmodules": ["ds4.js"],
@ -101,7 +101,7 @@
}
],
"manifest": "https://git.f3l.de/api/v4/projects/dungeonslayers%2Fds4/packages/generic/ds4/latest/system.json",
"download": "https://git.f3l.de/dungeonslayers/ds4/-/releases/1.12.4/downloads/ds4.zip",
"download": "https://git.f3l.de/dungeonslayers/ds4/-/releases/1.12.6/downloads/ds4.zip",
"initiative": "@combatValues.initiative.total",
"gridDistance": 1,
"gridUnits": "m",

View file

@ -7,8 +7,14 @@ import semver from "semver";
import yargs from "yargs";
import { hideBin } from "yargs/helpers";
const getDownloadURL = (version) => `https://git.f3l.de/dungeonslayers/ds4/-/releases/${version}/downloads/ds4.zip`;
const getChangelogURL = (version) => `https://git.f3l.de/dungeonslayers/ds4/-/releases/${version}`;
const repository = "dungeonslayers/ds4";
const gitlabURL = "https://git.f3l.de";
const getLicenseURL = (version) => `${gitlabURL}/${repository}/-/raw/${version}/LICENSE.md`;
const getReadmeURL = (version) => `${gitlabURL}/${repository}/-/raw/${version}/README.md`;
const getChangelogURL = (version) => `${gitlabURL}/${repository}/-/releases/${version}`;
const getDownloadURL = (version) => `${gitlabURL}/${repository}/-/releases/${version}/downloads/ds4.zip`;
const manifestPath = "./system.json";
/**
@ -61,9 +67,11 @@ function bumpVersion(release) {
console.log(`Bumping version number to '${targetVersion}'`);
packageJson.version = targetVersion;
fs.writeJSONSync("package.json", packageJson, { spaces: 4 });
manifest.license = getLicenseURL(targetVersion);
manifest.readme = getReadmeURL(targetVersion);
manifest.changelog = getChangelogURL(targetVersion);
manifest.version = targetVersion;
manifest.download = getDownloadURL(targetVersion);
manifest.changelog = getChangelogURL(targetVersion);
fs.writeJSONSync(manifestPath, manifest, { spaces: 4 });
}

View file

@ -7,7 +7,7 @@ import path from "node:path";
import yargs from "yargs";
import { hideBin } from "yargs/helpers";
import { destinationDirectory, distDirectory, foundryconfigFile, name, sourceDirectory } from "./const.js";
import { destinationDirectory, distDirectory, foundryconfigFile, name } from "./const.js";
/**
* Get the data path of Foundry VTT based on what is configured in the {@link foundryconfigFile}.
@ -29,7 +29,7 @@ function getDataPath() {
* @param {boolean} clean Whether to remove the link instead of creating it
*/
async function linkPackage(clean) {
if (!fs.existsSync(path.resolve(sourceDirectory, "system.json"))) {
if (!fs.existsSync(path.resolve("system.json"))) {
throw new Error("Could not find system.json");
}

933
yarn.lock

File diff suppressed because it is too large Load diff