Merge branch 'master' into 014_track_talents
This commit is contained in:
commit
5bd43125f9
6 changed files with 527 additions and 454 deletions
|
@ -45,11 +45,12 @@ build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- npm run build
|
- npm run build
|
||||||
|
- mv dist ds4
|
||||||
cache:
|
cache:
|
||||||
<<: *global_cache
|
<<: *global_cache
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- dist
|
- ds4
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
@ -58,7 +59,7 @@ deploy:
|
||||||
dependencies:
|
dependencies:
|
||||||
- build
|
- build
|
||||||
script:
|
script:
|
||||||
- rsync --delete -az ./dist/ rsync://${DEPLOYMENT_USER}@${DEPLOYMENT_SERVER}:${DEPLOYMENT_PATH}
|
- rsync --delete -az ./ds4/ rsync://${DEPLOYMENT_USER}@${DEPLOYMENT_SERVER}:${DEPLOYMENT_PATH}
|
||||||
environment:
|
environment:
|
||||||
name: production
|
name: production
|
||||||
url: https://vtt.f3l.de/
|
url: https://vtt.f3l.de/
|
||||||
|
|
29
.gitlab/issue_templates/Bug Report.md
Normal file
29
.gitlab/issue_templates/Bug Report.md
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# Description
|
||||||
|
|
||||||
|
Please describe the issue.
|
||||||
|
|
||||||
|
# Steps to Reproduce
|
||||||
|
|
||||||
|
1. ...
|
||||||
|
2. ...
|
||||||
|
3. ...
|
||||||
|
|
||||||
|
# Expected Behavior
|
||||||
|
|
||||||
|
Please describe the expected behavior.
|
||||||
|
|
||||||
|
# Actual Behavior
|
||||||
|
|
||||||
|
Please describe the actual behavior.
|
||||||
|
|
||||||
|
# Additional Details
|
||||||
|
|
||||||
|
These are optional, please add them if it makes sense.
|
||||||
|
|
||||||
|
- ![Screenshot]()
|
||||||
|
- [Logfile]()
|
||||||
|
- ...
|
||||||
|
|
||||||
|
# Possible Solutions
|
||||||
|
|
||||||
|
If you have any suggestions on how to solve the issue, please add them here.
|
|
@ -1,9 +1,13 @@
|
||||||
# Description
|
# Story
|
||||||
|
|
||||||
As a …, I want … so that …
|
As a …, I want … so that …
|
||||||
|
|
||||||
|
# Description
|
||||||
|
|
||||||
|
Please add a more detailed description of the feature here.
|
||||||
|
|
||||||
# Acceptance criteria
|
# Acceptance criteria
|
||||||
|
|
||||||
* Criterion 1
|
1. Criterion 1
|
||||||
* Criterion 2
|
2. Criterion 2
|
||||||
* …
|
3. …
|
||||||
|
|
73
README.md
73
README.md
|
@ -3,50 +3,89 @@
|
||||||
An implementation of the Dungeonslayers 4 game system for [Foundry Virtual
|
An implementation of the Dungeonslayers 4 game system for [Foundry Virtual
|
||||||
Tabletop](http://foundryvtt.com).
|
Tabletop](http://foundryvtt.com).
|
||||||
|
|
||||||
## Prerequisites
|
This system provides character sheet support for Actors and Items and mechanical
|
||||||
|
support for dice and rules necessary to
|
||||||
|
play games of Dungeponslayers 4.
|
||||||
|
|
||||||
In order to build this system, a recent version of `npm` is required.
|
## Installation
|
||||||
|
|
||||||
## Building
|
To install and use the Dungeonslayers 4 system for Foundry Virtual Tabletop,
|
||||||
|
simply paste the following URL into the **Install System** dialog on the Setup
|
||||||
|
menu of the application.
|
||||||
|
|
||||||
To build the system, first install all required dependencies:
|
https://git.f3l.de/dungeonslayers/ds4/-/raw/master/src/system.json?inline=false
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
### Prerequisits
|
||||||
|
|
||||||
|
In order to build this system, recent versions of `node` and `npm` are required.
|
||||||
|
We recommend using the latest lts version of `node`, which is `v14.15.4` at the
|
||||||
|
time of writing. If you use `nvm` to manage your `node` versions, you can simply
|
||||||
|
run
|
||||||
|
```
|
||||||
|
nvm install
|
||||||
|
```
|
||||||
|
|
||||||
|
in the project's root directory.
|
||||||
|
|
||||||
|
You also need to install the the project's dependencies. To do so, run
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
Then build the project by running
|
### Building
|
||||||
|
|
||||||
|
You can build the project by running
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run build
|
npm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
If you'd like the built system to be automatically linked to your local Foundry
|
Alternatively, you can run
|
||||||
VTT installation's data folder, add a file called `foundryconfig.json` to the
|
|
||||||
project root with the following contents:
|
```
|
||||||
|
npm run build:watch
|
||||||
|
```
|
||||||
|
|
||||||
|
to watch for changes and automatically build as necessary.
|
||||||
|
|
||||||
|
### Linking the built system to Foundry VTT
|
||||||
|
|
||||||
|
In order to provide a fluent development experience, it is recommended to link
|
||||||
|
the built system to your local Foundry VTT installation's data folder. In order
|
||||||
|
to do so, first add a file called `foundryconfig.json` to the project root with
|
||||||
|
the following content:
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"dataPath": "/<absolute path to your home>/.local/share/FoundryVTT",
|
"dataPath": "<path to your home directory>/.local/share/FoundryVTT"
|
||||||
"repository": "",
|
|
||||||
"rawURL": ""
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
On platforms other than Linux you need to adjust the path accordingly.
|
||||||
|
|
||||||
Then run
|
Then run
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run link
|
npm run link
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want the system to be continuously build upon every saved change, just
|
### Running the tests
|
||||||
run
|
|
||||||
|
You can run the tests with the following command:
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run build:watch
|
npm test
|
||||||
```
|
```
|
||||||
|
|
||||||
# Licensing
|
## Contributing
|
||||||
|
|
||||||
|
Code and content contributions are accepted. Please feel free to submit issues
|
||||||
|
to the issue tracker or submit merge requests for code changes.
|
||||||
|
|
||||||
|
## Licensing
|
||||||
|
|
||||||
Dungeonslayers (© Christian Kennig) is licensed under [CC BY-NC-SA 3.0](https://creativecommons.org/licenses/by-nc-sa/3.0/de/deed.en).
|
Dungeonslayers (© Christian Kennig) is licensed under [CC BY-NC-SA 3.0](https://creativecommons.org/licenses/by-nc-sa/3.0/de/deed.en).
|
||||||
|
|
||||||
|
@ -56,5 +95,5 @@ CC BY-NC-SA 3.0. Hence the modified icons are also published under this
|
||||||
license. A copy of this license can be found under
|
license. A copy of this license can be found under
|
||||||
[src/assets/official/LICENSE](src/assets/official/LICENSE).
|
[src/assets/official/LICENSE](src/assets/official/LICENSE).
|
||||||
|
|
||||||
The rest of this project is licensed under the MIT License, a copy of which can
|
The software component of this project is licensed under the MIT License, a copy
|
||||||
be found under [LICENSE](LICENSE).
|
of which can be found under [LICENSE](LICENSE).
|
||||||
|
|
|
@ -87,7 +87,7 @@ function createTransformer() {
|
||||||
node.decorators,
|
node.decorators,
|
||||||
node.modifiers,
|
node.modifiers,
|
||||||
node.importClause,
|
node.importClause,
|
||||||
newModuleSpecifier
|
newModuleSpecifier,
|
||||||
);
|
);
|
||||||
} else if (typescript.isExportDeclaration(node)) {
|
} else if (typescript.isExportDeclaration(node)) {
|
||||||
const newModuleSpecifier = typescript.createLiteral(`${node.moduleSpecifier.text}.js`);
|
const newModuleSpecifier = typescript.createLiteral(`${node.moduleSpecifier.text}.js`);
|
||||||
|
@ -96,7 +96,7 @@ function createTransformer() {
|
||||||
node.decorators,
|
node.decorators,
|
||||||
node.modifiers,
|
node.modifiers,
|
||||||
node.exportClause,
|
node.exportClause,
|
||||||
newModuleSpecifier
|
newModuleSpecifier,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -190,7 +190,7 @@ async function clean() {
|
||||||
`${name}.js`,
|
`${name}.js`,
|
||||||
"module.json",
|
"module.json",
|
||||||
"system.json",
|
"system.json",
|
||||||
"template.json"
|
"template.json",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -405,7 +405,7 @@ function gitCommit() {
|
||||||
git.commit(`v${getManifest().file.version}`, {
|
git.commit(`v${getManifest().file.version}`, {
|
||||||
args: "-a",
|
args: "-a",
|
||||||
disableAppendPaths: true,
|
disableAppendPaths: true,
|
||||||
})
|
}),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
"gridUnits": "m",
|
"gridUnits": "m",
|
||||||
"primaryTokenAttribute": "combatValues.hitPoints.current",
|
"primaryTokenAttribute": "combatValues.hitPoints.current",
|
||||||
"url": "https://git.f3l.de/dungeonslayers/ds4",
|
"url": "https://git.f3l.de/dungeonslayers/ds4",
|
||||||
"manifest": "https://git.f3l.de/dungeonslayers/ds4/-/blob/master/src/system.json",
|
"manifest": "https://git.f3l.de/dungeonslayers/ds4/-/raw/master/src/system.json?inline=false",
|
||||||
"download": "https://git.f3l.de/dungeonslayers/ds4/-/archive/master/ds4-master.zip",
|
"download": "https://git.f3l.de/dungeonslayers/ds4/-/jobs/artifacts/0.1.0/download?job=build",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue