Compare commits
6 Commits
110b54e328
...
3ca40b9604
| Author | SHA1 | Date |
|---|---|---|
|
|
3ca40b9604 | |
|
|
06a974ab5e | |
|
|
dd23f4e4b6 | |
|
|
3c0db3df50 | |
|
|
6db3e3226e | |
|
|
f16528a231 |
|
|
@ -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
|
API: https://foundryvtt.com/api/classes/foundry.abstract.Document.html
|
||||||
|
|
||||||
Demo: https://github.com/foundryvtt/dnd5e
|
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
|
||||||
|
)
|
||||||
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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -9,4 +9,6 @@ Hooks.once("init", () => {
|
||||||
CONFIG.Actor.dataModels = {
|
CONFIG.Actor.dataModels = {
|
||||||
character: PlayerCharacterDataModel,
|
character: PlayerCharacterDataModel,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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",
|
"title": "Das Schwarze Auge 4.1",
|
||||||
"description": "Noch ein Spielsystem für Das Schwarze Auge 4.1",
|
"description": "Noch ein Spielsystem für Das Schwarze Auge 4.1",
|
||||||
"version": "0.0.1",
|
"version": "{{VERSION}}",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": 12,
|
"minimum": 12,
|
||||||
"verified": 13
|
"verified": 13
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
"name": "macniel"
|
"name": "macniel"
|
||||||
}],
|
}],
|
||||||
"esmodules": ["main.mjs"],
|
"esmodules": ["main.mjs"],
|
||||||
"styles": ["styles/styles.css"],
|
"styles": ["style/styles.css"],
|
||||||
"packs": [{
|
"packs": [{
|
||||||
"name": "talente",
|
"name": "talente",
|
||||||
"label": "Basistalente",
|
"label": "Basistalente",
|
||||||
|
|
@ -52,6 +52,6 @@
|
||||||
"primaryTokenAttribute": "resources.sp",
|
"primaryTokenAttribute": "resources.sp",
|
||||||
"secondaryTokenAttribute": "resources.aus",
|
"secondaryTokenAttribute": "resources.aus",
|
||||||
"url": "https://git.macniel.online/macniel/foundry-dsa41-game",
|
"url": "https://git.macniel.online/macniel/foundry-dsa41-game",
|
||||||
"manifest": "https://git.macniel.online/macniel/foundry-dsa41-game/system.json",
|
"manifest": "https://git.macniel.online/macniel/foundry-dsa41-game/releases/download/{{VERSION}}/system.json",
|
||||||
"download": ""
|
"download": "https://git.macniel.online/macniel/foundry-dsa41-game/releases/download/{{VERSION}}/release.zip"
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue