Compare commits
150 commits
Author | SHA1 | Date | |
---|---|---|---|
Renovate Bot | 6acd527bb2 | ||
Renovate Bot | 0bccde4053 | ||
Renovate Bot | c9751b7b65 | ||
Renovate Bot | 9826780137 | ||
Renovate Bot | 92305a70a1 | ||
Renovate Bot | 37d4b3eac5 | ||
Renovate Bot | 14c7521bee | ||
Renovate Bot | 751893bfa4 | ||
Renovate Bot | 85c56769d8 | ||
Renovate Bot | e54eb7a21d | ||
Renovate Bot | 4ca83d0c85 | ||
Renovate Bot | 7eaf4b35e3 | ||
Renovate Bot | 4bd835b4a7 | ||
Renovate Bot | 741695bc72 | ||
Renovate Bot | b6f3eb0665 | ||
Renovate Bot | c14a3742d2 | ||
Renovate Bot | 64131ee10f | ||
Renovate Bot | 7045c06615 | ||
Renovate Bot | ab785c2259 | ||
Renovate Bot | e5a7cc9845 | ||
Renovate Bot | b4709b3ea4 | ||
Renovate Bot | 4235abc757 | ||
Renovate Bot | 2159973c0a | ||
Renovate Bot | 10a1250246 | ||
Renovate Bot | e2db0b0803 | ||
Renovate Bot | 0ec5c5cdf1 | ||
Renovate Bot | 43a08f639f | ||
Renovate Bot | 92fb795590 | ||
Renovate Bot | 536d327488 | ||
Renovate Bot | d95bd35ce3 | ||
Renovate Bot | 1bf5e64b9f | ||
Renovate Bot | 6c57d47195 | ||
Renovate Bot | 883178f470 | ||
Renovate Bot | 609017f95c | ||
Renovate Bot | 0550e45389 | ||
Renovate Bot | 45fe887271 | ||
Renovate Bot | 85bec93f47 | ||
Renovate Bot | a59362354a | ||
Renovate Bot | 6bdac6f9a9 | ||
Renovate Bot | e0afe9928a | ||
Renovate Bot | 72519fde6a | ||
Renovate Bot | cbd1899295 | ||
Renovate Bot | e48acebeba | ||
Renovate Bot | 0a66049f93 | ||
Renovate Bot | 9b7cb53d77 | ||
Renovate Bot | 5c1982ad10 | ||
Renovate Bot | ba72ebf803 | ||
Renovate Bot | 17ade3a469 | ||
Renovate Bot | 956cc6eff8 | ||
Renovate Bot | 9e736a9a99 | ||
Renovate Bot | bbca81a1a7 | ||
Renovate Bot | 583aa7cd02 | ||
Renovate Bot | 2f64b10836 | ||
Renovate Bot | 5146974ad7 | ||
Renovate Bot | 9a4d316e1c | ||
Renovate Bot | 0a4621f3d6 | ||
Renovate Bot | 4551e38bc6 | ||
Renovate Bot | 64612d60a5 | ||
Renovate Bot | 17f37cacba | ||
Renovate Bot | c283a21f15 | ||
Renovate Bot | a9bbc6fdfb | ||
Renovate Bot | cb4edc32ad | ||
Renovate Bot | 79f79bfec3 | ||
Renovate Bot | acd377ff1b | ||
Renovate Bot | c1f649d354 | ||
Renovate Bot | 823672ee95 | ||
Renovate Bot | 3fa1bd47a2 | ||
Renovate Bot | 63d67f9e57 | ||
Renovate Bot | 4ae663b8cb | ||
Renovate Bot | 86491a5527 | ||
Renovate Bot | 9322916aee | ||
Renovate Bot | 8e763fb86b | ||
Renovate Bot | 2b7b6d84f7 | ||
Renovate Bot | e8858f6b25 | ||
Renovate Bot | 4428458bbc | ||
Renovate Bot | b55a928d05 | ||
Renovate Bot | 6646fd6005 | ||
Renovate Bot | 37123168c3 | ||
Renovate Bot | bde62afd44 | ||
Renovate Bot | c0d39002c0 | ||
Renovate Bot | e847dea4bf | ||
Renovate Bot | 9bfc839576 | ||
Renovate Bot | b508187181 | ||
Renovate Bot | 7986ed1fec | ||
Renovate Bot | c819ac8446 | ||
Renovate Bot | 839beb70f7 | ||
Renovate Bot | 465534ff47 | ||
Renovate Bot | fc8ff7ce21 | ||
Renovate Bot | e8aa4087e1 | ||
Renovate Bot | b3b64880f5 | ||
Renovate Bot | 8a718da6e0 | ||
Renovate Bot | c1dddd8706 | ||
Renovate Bot | 035d73f37a | ||
Renovate Bot | 21a763524a | ||
Renovate Bot | 8b28a1387a | ||
Renovate Bot | 9ad6cd3b2b | ||
Renovate Bot | 99bf423579 | ||
Renovate Bot | 0f9226ec0e | ||
Renovate Bot | 7c2f5d6701 | ||
Renovate Bot | 2248ba2b3b | ||
Renovate Bot | d8f9dbea77 | ||
Renovate Bot | 61e3e8bcbc | ||
Renovate Bot | 87dc8e2beb | ||
Renovate Bot | fbe5d7a4ee | ||
Renovate Bot | 0600fa0c74 | ||
Renovate Bot | d5d9dc718f | ||
Renovate Bot | 82b34f3d26 | ||
Renovate Bot | 9f273fc189 | ||
Renovate Bot | b399028b62 | ||
Renovate Bot | 9748c7ad9d | ||
Renovate Bot | 8bbe3b4904 | ||
Renovate Bot | 4879445c6f | ||
Renovate Bot | c250dc4c00 | ||
Renovate Bot | e8e038ee2b | ||
Renovate Bot | 0e6b594378 | ||
Renovate Bot | b4f47d541b | ||
Renovate Bot | 46cc1801e7 | ||
Renovate Bot | 21054e311a | ||
Renovate Bot | c33b5deb01 | ||
Renovate Bot | 3b0e8e92f1 | ||
Renovate Bot | 70991785f0 | ||
Renovate Bot | 1baae03c98 | ||
Renovate Bot | 5c6ee84fd0 | ||
Renovate Bot | 6375ce54a4 | ||
Renovate Bot | cdfa2b8c41 | ||
Renovate Bot | 578c9ab6e3 | ||
Renovate Bot | 79c12d0a3a | ||
Renovate Bot | 46c6114d19 | ||
Renovate Bot | 8145ec7df4 | ||
Renovate Bot | c3435072b8 | ||
Renovate Bot | cb2640290a | ||
Renovate Bot | 12b4f66557 | ||
Renovate Bot | 8c5ab949fe | ||
Johannes Loher | b6843051f2 | ||
Johannes Loher | 483337a221 | ||
Johannes Loher | ffbdf8be9c | ||
Johannes Loher | 36e2325203 | ||
Johannes Loher | 6e3e891b22 | ||
Johannes Loher | e707082c87 | ||
Johannes Loher | b1a8c2c1e2 | ||
Johannes Loher | d1baa71b7f | ||
Johannes Loher | c67d514873 | ||
3a87f5fde4 | |||
Johannes Loher | d1805811b6 | ||
6e46d90405 | |||
Johannes Loher | 54806a71c2 | ||
Johannes Loher | 18a66e4748 | ||
87b9b57f65 | |||
Johannes Loher | 5967a222ba | ||
Johannes Loher | 8145fe0406 |
161
.gitlab-ci.yml
161
.gitlab-ci.yml
|
@ -1,161 +0,0 @@
|
|||
# SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
# SPDX-FileCopyrightText: 2021 Oliver Rümpelein
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
image: node:lts
|
||||
|
||||
stages:
|
||||
- test
|
||||
- build
|
||||
- prepare-release
|
||||
- release
|
||||
- publish
|
||||
|
||||
cache: &global_cache
|
||||
paths:
|
||||
- .yarn/cache
|
||||
|
||||
lint:
|
||||
stage: test
|
||||
before_script:
|
||||
- yarn install --immutable
|
||||
script:
|
||||
- yarn lint
|
||||
cache:
|
||||
<<: *global_cache
|
||||
|
||||
reuse:
|
||||
stage: test
|
||||
image:
|
||||
name: fsfe/reuse:latest
|
||||
entrypoint: ['']
|
||||
script:
|
||||
- reuse lint
|
||||
|
||||
build:
|
||||
stage: build
|
||||
before_script:
|
||||
- yarn install --immutable
|
||||
- if [[ ! -z ${CI_COMMIT_TAG+x} ]]; then export NODE_ENV=production; fi
|
||||
script:
|
||||
- yarn build
|
||||
- mv dist darkness-dependent-vision
|
||||
cache:
|
||||
<<: *global_cache
|
||||
artifacts:
|
||||
paths:
|
||||
- darkness-dependent-vision
|
||||
expire_in: 1 week
|
||||
|
||||
publish-artifacts:
|
||||
stage: prepare-release
|
||||
image: alpine:latest
|
||||
before_script:
|
||||
- apk update
|
||||
- apk add zip curl
|
||||
script: |
|
||||
zip -r darkness-dependent-vision.zip darkness-dependent-vision/*
|
||||
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file darkness-dependent-vision.zip "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/darkness-dependent-vision/$CI_COMMIT_TAG/darkness-dependent-vision.zip"
|
||||
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file darkness-dependent-vision/module.json "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/darkness-dependent-vision/$CI_COMMIT_TAG/module.json"
|
||||
rules:
|
||||
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
|
||||
|
||||
changelog:
|
||||
stage: prepare-release
|
||||
before_script:
|
||||
- yarn install --immutable
|
||||
script:
|
||||
- yarn changelog
|
||||
cache:
|
||||
<<: *global_cache
|
||||
artifacts:
|
||||
paths:
|
||||
- CHANGELOG.md
|
||||
rules:
|
||||
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
|
||||
|
||||
.release-template: &release-template
|
||||
stage: release
|
||||
before_script:
|
||||
- yarn install --immutable
|
||||
- apt update
|
||||
- apt install --yes jq
|
||||
- REPOSITORY_URL=$(echo "${CI_REPOSITORY_URL}" | sed -e "s|gitlab-ci-token:.*@|${RELEASE_TOKEN}:${RELEASE_TOKEN_SECRET}@|g")
|
||||
- git remote set-url origin $REPOSITORY_URL
|
||||
- git config user.name $GITLAB_USER_LOGIN
|
||||
- git config user.email $GITLAB_USER_EMAIL
|
||||
- git branch -D ci-processing || true
|
||||
- git checkout -b ci-processing
|
||||
cache:
|
||||
<<: *global_cache
|
||||
script: |
|
||||
yarn bump-version --release=${RELEASE_TYPE}
|
||||
RELEASE_VERSION=$(jq -r '.version' < package.json)
|
||||
git add package.json module.json
|
||||
git --no-pager diff
|
||||
git commit -m "chore(release): ${RELEASE_VERSION}"
|
||||
git tag -f ${RELEASE_VERSION}
|
||||
git push origin ci-processing:${CI_BUILD_REF_NAME} -o ci.skip
|
||||
git push origin ${RELEASE_VERSION}
|
||||
only:
|
||||
- master
|
||||
when: manual
|
||||
|
||||
release-patch:
|
||||
variables:
|
||||
RELEASE_TYPE: patch
|
||||
<<: *release-template
|
||||
|
||||
release-minor:
|
||||
variables:
|
||||
RELEASE_TYPE: minor
|
||||
<<: *release-template
|
||||
|
||||
release-major:
|
||||
variables:
|
||||
RELEASE_TYPE: major
|
||||
<<: *release-template
|
||||
|
||||
release:
|
||||
stage: release
|
||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||
script:
|
||||
- echo 'release job'
|
||||
rules:
|
||||
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
|
||||
release:
|
||||
tag_name: $CI_COMMIT_TAG
|
||||
description: './CHANGELOG.md'
|
||||
assets:
|
||||
links:
|
||||
- name: 'darkness-dependent-vision.zip'
|
||||
url: '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/darkness-dependent-vision/$CI_COMMIT_TAG/darkness-dependent-vision.zip'
|
||||
filepath: /darkness-dependent-vision.zip
|
||||
link_type: package
|
||||
- name: 'module.json'
|
||||
url: '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/darkness-dependent-vision/$CI_COMMIT_TAG/module.json'
|
||||
filepath: /module.json
|
||||
link_type: other
|
||||
|
||||
publish-latest-manifest:
|
||||
stage: publish
|
||||
image: alpine:latest
|
||||
before_script:
|
||||
- apk update
|
||||
- apk add zip curl
|
||||
script: |
|
||||
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file darkness-dependent-vision/module.json "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/darkness-dependent-vision/latest/module.json"
|
||||
rules:
|
||||
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
|
||||
|
||||
publish-to-foundry-admin:
|
||||
stage: publish
|
||||
image: johannesloher/foundry-publish
|
||||
variables:
|
||||
FVTT_MANIFEST_PATH: darkness-dependent-vision/module.json
|
||||
FVTT_MANIFEST_URL: ${CI_PROJECT_URL}/-/releases/${CI_COMMIT_TAG}/downloads/module.json
|
||||
FVTT_DELETE_OBSOLETE_VERSIONS: 'true'
|
||||
script: foundry-publish
|
||||
rules:
|
||||
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
|
|
@ -1,7 +1,7 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: darkness-dependent-vision
|
||||
Upstream-Contact: Johannes Loher <johannes.loher@fg4f.de>
|
||||
Source: https://git.f3l.de/saluu/darkness-dependent-vision
|
||||
Source: https://git2.f3l.de/saluu/darkness-dependent-vision
|
||||
|
||||
Files: .yarn/**
|
||||
Copyright: Copyright (c) 2016-present, Yarn Contributors. All rights reserved.
|
||||
|
|
32
.woodpecker/checks.yml
Normal file
32
.woodpecker/checks.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
# SPDX-FileCopyrightText: 2023 Johannes Loher
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
variables:
|
||||
- &node_image node:lts
|
||||
|
||||
when:
|
||||
- event: push
|
||||
- event: tag
|
||||
- event: manual
|
||||
|
||||
steps:
|
||||
install:
|
||||
image: *node_image
|
||||
commands:
|
||||
- yarn install --immutable
|
||||
lint:
|
||||
group: test
|
||||
image: *node_image
|
||||
commands:
|
||||
- yarn lint
|
||||
reuse:
|
||||
group: test
|
||||
image: fsfe/reuse:latest
|
||||
commands:
|
||||
- reuse lint
|
||||
build:
|
||||
group: build
|
||||
image: *node_image
|
||||
commands:
|
||||
- yarn build
|
72
.woodpecker/publish.yml
Normal file
72
.woodpecker/publish.yml
Normal file
|
@ -0,0 +1,72 @@
|
|||
# SPDX-FileCopyrightText: 2023 Johannes Loher
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
variables:
|
||||
- &node_image node:lts
|
||||
|
||||
when:
|
||||
event: tag
|
||||
evaluate: CI_COMMIT_TAG matches "^[0-9]+\\\\.[0-9]+\\\\.[0-9]+$"
|
||||
|
||||
depends_on:
|
||||
- checks
|
||||
|
||||
steps:
|
||||
install:
|
||||
image: *node_image
|
||||
commands:
|
||||
- yarn install --immutable
|
||||
build:
|
||||
image: *node_image
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
commands:
|
||||
- yarn build
|
||||
package:
|
||||
group: prepare-release
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- apk update
|
||||
- apk add zip curl
|
||||
- mv dist ${CI_REPO_NAME}
|
||||
- zip -r ${CI_REPO_NAME}.zip ${CI_REPO_NAME}/*
|
||||
changelog:
|
||||
group: prepare-release
|
||||
image: *node_image
|
||||
commands:
|
||||
- yarn changelog
|
||||
release:
|
||||
image: woodpeckerci/plugin-gitea-release
|
||||
settings:
|
||||
base_url: ${CI_FORGE_URL}
|
||||
title: ${CI_COMMIT_TAG}
|
||||
note: CHANGELOG.md
|
||||
files:
|
||||
- ${CI_REPO_NAME}.zip
|
||||
- ${CI_REPO_NAME}/module.json
|
||||
api_key:
|
||||
from_secret: forge_token
|
||||
publish-latest-manifest:
|
||||
group: publish
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- apk update
|
||||
- apk add curl
|
||||
- 'curl --header "Authorization: token $${FORGE_TOKEN}" -X "DELETE" "${CI_FORGE_URL}/api/packages/${CI_REPO_OWNER}/generic/${CI_REPO_NAME}/latest/module.json"'
|
||||
- 'curl --fail --header "Authorization: token $${FORGE_TOKEN}" --upload-file ${CI_REPO_NAME}/module.json "${CI_FORGE_URL}/api/packages/${CI_REPO_OWNER}/generic/${CI_REPO_NAME}/latest/module.json"'
|
||||
secrets:
|
||||
- forge_token
|
||||
publish-to-foundry-admin:
|
||||
group: publish
|
||||
image: johannesloher/foundry-publish
|
||||
environment:
|
||||
FVTT_DELETE_OBSOLETE_VERSIONS: 'true'
|
||||
commands:
|
||||
- export FVTT_MANIFEST_PATH=${CI_REPO_NAME}/module.json
|
||||
- export FVTT_MANIFEST_URL=${CI_REPO_URL}/releases/download/${CI_COMMIT_TAG}/module.json
|
||||
- foundry-publish
|
||||
secrets:
|
||||
- fvtt_package_id
|
||||
- fvtt_username
|
||||
- fvtt_password
|
39
.woodpecker/release.yml
Normal file
39
.woodpecker/release.yml
Normal file
|
@ -0,0 +1,39 @@
|
|||
# SPDX-FileCopyrightText: 2023 Johannes Loher
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
variables:
|
||||
- &node_image node:lts
|
||||
|
||||
when:
|
||||
event: manual
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
|
||||
depends_on:
|
||||
- checks
|
||||
|
||||
steps:
|
||||
install:
|
||||
image: *node_image
|
||||
commands:
|
||||
- yarn install --immutable
|
||||
release:
|
||||
image: *node_image
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get install --yes jq
|
||||
- export REPOSITORY_URL=$(echo "${CI_REPO_CLONE_URL}" | sed -e "s|://|://$${FORGE_TOKEN_NAME}:$${FORGE_TOKEN}@|g")
|
||||
- git remote set-url origin $${REPOSITORY_URL}
|
||||
- git config user.name woodpecker[bot]
|
||||
- git config user.email woodpecker[bot]@${CI_SYSTEM_HOST}
|
||||
- yarn bump-version --release=${RELEASE_TYPE}
|
||||
- export RELEASE_VERSION=$(jq -r '.version' < package.json)
|
||||
- git --no-pager diff
|
||||
- git add package.json module.json
|
||||
- 'git commit -m "chore(release): $${RELEASE_VERSION}"'
|
||||
- git tag -f $${RELEASE_VERSION}
|
||||
- git push origin ${CI_COMMIT_BRANCH}
|
||||
- git push origin $${RELEASE_VERSION}
|
||||
secrets:
|
||||
- forge_token_name
|
||||
- forge_token
|
874
.yarn/releases/yarn-3.6.0.cjs
vendored
874
.yarn/releases/yarn-3.6.0.cjs
vendored
File diff suppressed because one or more lines are too long
875
.yarn/releases/yarn-3.7.0.cjs
vendored
Executable file
875
.yarn/releases/yarn-3.7.0.cjs
vendored
Executable file
File diff suppressed because one or more lines are too long
|
@ -2,4 +2,4 @@ plugins:
|
|||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
||||
spec: '@yarnpkg/plugin-interactive-tools'
|
||||
|
||||
yarnPath: .yarn/releases/yarn-3.6.0.cjs
|
||||
yarnPath: .yarn/releases/yarn-3.7.0.cjs
|
||||
|
|
|
@ -6,6 +6,12 @@ SPDX-License-Identifier: MIT
|
|||
|
||||
# Darkness Dependent Vision
|
||||
|
||||
[![status-badge](https://ci.f3l.de/api/badges/1/status.svg)](https://ci.f3l.de/repos/1)
|
||||
[![REUSE status](https://api.reuse.software/badge/git2.f3l.de/saluu/darkness-dependent-vision)](https://api.reuse.software/info/git2.f3l.de/saluu/darkness-dependent-vision)
|
||||
[![Forge installs](https://img.shields.io/badge/dynamic/json?label=Forge%20Installs&query=package.installs&suffix=%25&url=https%3A%2F%2Fforge-vtt.com%2Fapi%2Fbazaar%2Fpackage%2Fdarkness-dependent-vision&colorB=4aa94a)](https://forge-vtt.com/bazaar#package=darkness-dependent-vision)
|
||||
[![Supported foundry versions](https://img.shields.io/endpoint?url=https://foundryshields.com/version?url=https%3A%2F%2Fgit2.f3l.de%2Fapi%2Fpackages%2Fsaluu%2Fgeneric%2Fdarkness-dependent-vision%2Flatest%2Fmodule.json)](https://git2.f3l.de/saluu/darkness-dependent-vision)
|
||||
[![Ko-fi](https://img.shields.io/badge/Ko--fi-ghostfvtt-00B9FE?logo=kofi)](https://ko-fi.com/ghostfvtt)
|
||||
|
||||
A module for [Foundry Virtual Tabletop] that provides functionality to make the
|
||||
dim and bright vision of tokens depend on the scene's darkness level.
|
||||
|
||||
|
@ -15,7 +21,7 @@ To install and use the Darkness Dependent Vision module for Foundry Virtual
|
|||
Tabletop, simply paste the following URL into the **Install Module** dialog on
|
||||
the Setup menu of the application.
|
||||
|
||||
https://git.f3l.de/saluu/darkness-dependent-vision/-/raw/latest/src/module.json?inline=false
|
||||
https://git2.f3l.de/api/packages/saluu/generic/darkness-dependent-vision/latest/module.json
|
||||
|
||||
### libWrapper
|
||||
|
||||
|
|
16
module.json
16
module.json
|
@ -3,7 +3,7 @@
|
|||
"id": "darkness-dependent-vision",
|
||||
"title": "Darkness Dependent Vision",
|
||||
"description": "A module for Foundry Virtual Tabletop that provides functionality to make the dim and bright vision of tokens depend on the scene's darkness level.",
|
||||
"version": "0.3.10",
|
||||
"version": "0.3.13",
|
||||
"author": "Johannes Loher",
|
||||
"authors": [
|
||||
{
|
||||
|
@ -31,11 +31,11 @@
|
|||
"path": "lang/en.json"
|
||||
}
|
||||
],
|
||||
"url": "https://git.f3l.de/saluu/darkness-dependent-vision",
|
||||
"manifest": "https://git.f3l.de/api/v4/projects/saluu%2Fdarkness-dependent-vision/packages/generic/darkness-dependent-vision/latest/module.json",
|
||||
"download": "https://git.f3l.de/saluu/darkness-dependent-vision/-/releases/0.3.10/downloads/darkness-dependent-vision.zip",
|
||||
"bugs": "https://git.f3l.de/saluu/darkness-dependent-vision/-/issues",
|
||||
"changelog": "https://git.f3l.de/saluu/darkness-dependent-vision/-/releases/0.3.10",
|
||||
"readme": "https://git.f3l.de/saluu/darkness-dependent-vision/-/raw/0.3.10/README.md",
|
||||
"license": "https://git.f3l.de/saluu/darkness-dependent-vision/-/raw/0.3.10/LICENSE.md"
|
||||
"url": "https://git2.f3l.de/saluu/darkness-dependent-vision",
|
||||
"manifest": "https://git2.f3l.de/api/packages/saluu/generic/darkness-dependent-vision/latest/module.json",
|
||||
"download": "https://git2.f3l.de/saluu/darkness-dependent-vision/releases/download/0.3.13/darkness-dependent-vision.zip",
|
||||
"bugs": "https://git2.f3l.de/saluu/darkness-dependent-vision/issues",
|
||||
"changelog": "https://git2.f3l.de/saluu/darkness-dependent-vision/releases/tag/0.3.13",
|
||||
"readme": "https://git2.f3l.de/saluu/darkness-dependent-vision/raw/tag/0.3.13/README.md",
|
||||
"license": "https://git2.f3l.de/saluu/darkness-dependent-vision/raw/tag/0.3.13/LICENSE.md"
|
||||
}
|
||||
|
|
36
package.json
36
package.json
|
@ -1,16 +1,16 @@
|
|||
{
|
||||
"private": true,
|
||||
"name": "darkness-dependent-vision",
|
||||
"version": "0.3.10",
|
||||
"version": "0.3.13",
|
||||
"description": "A module for Foundry Virtual Tabletop that provides functionality to make the dim and bright vision of tokens depend on the scene's darkness level.",
|
||||
"license": "https://git.f3l.de/saluu/darkness-dependent-vision#licensing",
|
||||
"homepage": "https://git.f3l.de/saluu/darkness-dependent-vision",
|
||||
"license": "https://git2.f3l.de/saluu/darkness-dependent-vision/src/branch/master/LICENSE.md",
|
||||
"homepage": "https://git2.f3l.de/saluu/darkness-dependent-vision",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.f3l.de/saluu/darkness-dependent-vision"
|
||||
"url": "https://git2.f3l.de/saluu/darkness-dependent-vision"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://git.f3l.de/saluu/darkness-dependent-vision/-/issues"
|
||||
"url": "https://git2.f3l.de/saluu/darkness-dependent-vision/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
|
@ -36,30 +36,30 @@
|
|||
"changelog": "conventional-changelog -p conventionalcommits -o CHANGELOG.md -r 2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "17.6.5",
|
||||
"@commitlint/config-conventional": "17.6.5",
|
||||
"@guanghechen/rollup-plugin-copy": "5.0.1",
|
||||
"@commitlint/cli": "18.4.3",
|
||||
"@commitlint/config-conventional": "18.4.3",
|
||||
"@guanghechen/rollup-plugin-copy": "5.0.12",
|
||||
"@typhonjs-fvtt/eslint-config-foundry.js": "0.8.0",
|
||||
"conventional-changelog-cli": "3.0.0",
|
||||
"conventional-changelog-conventionalcommits": "6.0.0",
|
||||
"eslint": "8.42.0",
|
||||
"eslint-config-prettier": "8.8.0",
|
||||
"conventional-changelog-cli": "4.1.0",
|
||||
"conventional-changelog-conventionalcommits": "7.0.2",
|
||||
"eslint": "8.56.0",
|
||||
"eslint-config-prettier": "9.1.0",
|
||||
"eslint-plugin-prettier": "4.2.1",
|
||||
"fs-extra": "11.1.1",
|
||||
"fs-extra": "11.2.0",
|
||||
"gulp": "4.0.2",
|
||||
"husky": "8.0.3",
|
||||
"lint-staged": "13.2.2",
|
||||
"lint-staged": "15.2.0",
|
||||
"npm-run-all": "4.1.5",
|
||||
"prettier": "2.8.8",
|
||||
"rimraf": "5.0.1",
|
||||
"rollup": "3.24.0",
|
||||
"rimraf": "5.0.5",
|
||||
"rollup": "4.9.1",
|
||||
"rollup-plugin-terser": "7.0.2",
|
||||
"semver": "7.5.1",
|
||||
"semver": "7.5.4",
|
||||
"yargs": "17.7.2"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.(js|mjs|cjs)": "eslint --fix",
|
||||
"*.(json|css|yml)": "prettier --write"
|
||||
},
|
||||
"packageManager": "yarn@3.6.0"
|
||||
"packageManager": "yarn@3.7.0"
|
||||
}
|
||||
|
|
|
@ -7,16 +7,20 @@ import semver from 'semver';
|
|||
import yargs from 'yargs';
|
||||
import { hideBin } from 'yargs/helpers';
|
||||
|
||||
const repository = 'saluu/darkness-dependent-vision';
|
||||
const gitlabURL = 'https://git.f3l.de';
|
||||
const packageType = 'module';
|
||||
const repositoryOwner = process.env.CI_REPO_OWNER;
|
||||
const repositoryName = process.env.CI_REPO_NAME;
|
||||
const repositoryURL = process.env.CI_REPO_LINK;
|
||||
const forgeURL = process.env.CI_FORGE_URL;
|
||||
|
||||
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/darkness-dependent-vision.zip`;
|
||||
const manifestURL = `${forgeURL}/api/packages/${repositoryOwner}/generic/${repositoryName}/latest/${packageType}.json`;
|
||||
const getDownloadURL = (version) => `${repositoryURL}/releases/download/${version}/${repositoryName}.zip`;
|
||||
const bugsURL = `${repositoryURL}/issues`;
|
||||
const getChangelogURL = (version) => `${repositoryURL}/releases/tag/${version}`;
|
||||
const getReadmeURL = (version) => `${repositoryURL}/raw/tag/${version}/README.md`;
|
||||
const getLicenseURL = (version) => `${repositoryURL}/raw/tag/${version}/LICENSE.md`;
|
||||
|
||||
const manifestPath = 'module.json';
|
||||
const manifestPath = `${packageType}.json`;
|
||||
|
||||
/**
|
||||
* Get the contents of the manifest file as object.
|
||||
|
@ -67,13 +71,16 @@ 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);
|
||||
fs.writeJSONSync('package.json', packageJson, { spaces: 2 });
|
||||
manifest.version = targetVersion;
|
||||
manifest.url = repositoryURL;
|
||||
manifest.manifest = manifestURL;
|
||||
manifest.download = getDownloadURL(targetVersion);
|
||||
fs.writeJSONSync(manifestPath, manifest, { spaces: 4 });
|
||||
manifest.bugs = bugsURL;
|
||||
manifest.changelog = getChangelogURL(targetVersion);
|
||||
manifest.readme = getReadmeURL(targetVersion);
|
||||
manifest.license = getLicenseURL(targetVersion);
|
||||
fs.writeJSONSync(manifestPath, manifest, { spaces: 2 });
|
||||
}
|
||||
|
||||
const argv = yargs(hideBin(process.argv)).usage('Usage: $0').option('release', {
|
||||
|
|
Loading…
Reference in a new issue