Merge branch 'refs/heads/main' into feature/xml-import
# Conflicts: # main.mjs # src/system.jsonpull/12/head
commit
06a974ab5e
|
|
@ -0,0 +1,28 @@
|
|||
name: Pull Request Check
|
||||
run-name: ${{ gitea.actor }} is updating the pull request 🚀
|
||||
on:
|
||||
pull_request:
|
||||
types: [synchronize]
|
||||
|
||||
jobs:
|
||||
testing:
|
||||
runs-on: node-01
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '18' # Specify the Node.js version you need
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
|
||||
- name: Build project
|
||||
env:
|
||||
VERSION: ${{github.ref_name}}
|
||||
run: npm run build
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
name: Release Job
|
||||
run-name: ${{gitea.actor}} is releasing a package
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: node-01
|
||||
steps:
|
||||
- name: Print Tag
|
||||
run: |
|
||||
echo ${{github.ref_name}}
|
||||
echo ${GITHUB_REF##*/}
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '18' # Specify the Node.js version you need
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
|
||||
- name: Build project
|
||||
env:
|
||||
VERSION: ${{github.ref_name}}
|
||||
run: npm run build
|
||||
|
||||
- name: Package build output
|
||||
run: |
|
||||
cd ./dist
|
||||
zip -r release.zip . # Adjust the path to your build output directory
|
||||
mv release.zip /tmp/release.zip
|
||||
|
||||
- name: Package Upload
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
server_url: https://git.macniel.online
|
||||
files: |
|
||||
/tmp/release.zip
|
||||
./dist/system.json
|
||||
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
dist
|
||||
node_modules
|
||||
|
|
@ -16,3 +16,5 @@ Systementwicklung: https://foundryvtt.com/article/system-development/
|
|||
API: https://foundryvtt.com/api/classes/foundry.abstract.Document.html
|
||||
|
||||
Demo: https://github.com/foundryvtt/dnd5e
|
||||
|
||||
Flim Flam
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
const { src, dest, series } = require('gulp');
|
||||
const process = require('node:process');
|
||||
const replace = require('gulp-replace');
|
||||
const sass = require('gulp-sass')(require('sass'));
|
||||
|
||||
function buildStyles() {
|
||||
return src('src/style/**/*.scss')
|
||||
.pipe(sass().on('error', sass.logError))
|
||||
.pipe(dest('dist/style/'))
|
||||
};
|
||||
|
||||
function copySource() {
|
||||
return src(['src/**/*', '!src/style/**/*.scss'])
|
||||
.pipe(dest('dist/'));
|
||||
}
|
||||
|
||||
function updateManifestFile() {
|
||||
return src('dist/system.json')
|
||||
.pipe(replace('{{VERSION}}', process.env.VERSION))
|
||||
.pipe(dest('dist/'))
|
||||
}
|
||||
|
||||
exports.default = series(
|
||||
copySource,
|
||||
buildStyles,
|
||||
updateManifestFile
|
||||
)
|
||||
12
main.mjs
12
main.mjs
|
|
@ -1,12 +0,0 @@
|
|||
import {PlayerCharacterDataModel} from "./module/character/character.mjs";
|
||||
import {DsaActor} from "./module/Actors/dsa-actor.mjs";
|
||||
|
||||
Hooks.once("init", () => {
|
||||
// Configure custom Document implementations.
|
||||
CONFIG.Actor.documentClass = DsaActor;
|
||||
|
||||
// Configure System Data Models.
|
||||
CONFIG.Actor.dataModels = {
|
||||
character: PlayerCharacterDataModel,
|
||||
};
|
||||
})
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"name": "DSA41Module",
|
||||
"version": "0.0.1",
|
||||
"description": "Another DSA 4.1 System Module for FoundryVTT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://git.macniel.online/macniel/foundry-dsa41-game.git"
|
||||
},
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"test": "true",
|
||||
"build": "gulp"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp": "^5.0.1",
|
||||
"gulp-replace": "^1.1.4",
|
||||
"gulp-sass": "^6.0.1",
|
||||
"sass": "^1.93.2",
|
||||
"sass-build": "^1.1.6"
|
||||
},
|
||||
"dependencies": {
|
||||
"gulp-cli": "^3.1.0"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Hooks.once("init", () => {
|
||||
console.log("DSA 4.1 is ready for development!")
|
||||
})
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
$bgcolor: FFF;
|
||||
|
||||
html {
|
||||
background-color: $bgcolor;
|
||||
}
|
||||
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"id": "DSA 4.1",
|
||||
"id": "DSA_4-1",
|
||||
"title": "Das Schwarze Auge 4.1",
|
||||
"description": "Noch ein Spielsystem für Das Schwarze Auge 4.1",
|
||||
"version": "0.0.1",
|
||||
"version": "{{VERSION}}",
|
||||
"compatibility": {
|
||||
"minimum": 12,
|
||||
"verified": 13
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
"name": "macniel"
|
||||
}],
|
||||
"esmodules": ["main.mjs"],
|
||||
"styles": ["styles/styles.css"],
|
||||
"styles": ["style/styles.css"],
|
||||
"packs": [{
|
||||
"name": "talente",
|
||||
"label": "Basistalente",
|
||||
|
|
@ -52,6 +52,6 @@
|
|||
"primaryTokenAttribute": "resources.sp",
|
||||
"secondaryTokenAttribute": "resources.aus",
|
||||
"url": "https://git.macniel.online/macniel/foundry-dsa41-game",
|
||||
"manifest": "https://git.macniel.online/macniel/foundry-dsa41-game/system.json",
|
||||
"download": ""
|
||||
"manifest": "https://git.macniel.online/macniel/foundry-dsa41-game/releases/download/{{VERSION}}/system.json",
|
||||
"download": "https://git.macniel.online/macniel/foundry-dsa41-game/releases/download/{{VERSION}}/release.zip"
|
||||
}
|
||||
Loading…
Reference in New Issue