commit 4a6dbe33e15952e175ce5cc3544586a28f81914d Author: modules <> Date: Tue Apr 16 20:50:38 2024 +0000 Initial commit diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..679d35f --- /dev/null +++ b/.drone.yml @@ -0,0 +1,5 @@ +--- +kind: template +load: new-release.yaml +data: + image: gitea.kdiva.ru/infrastructure/archiver:latest diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0ca6fc7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +temp +*.zip +resources \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..4782a55 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "helper-scripts"] + path = helper-scripts + url = https://gitea.kdiva.ru/modules/helper-scripts.git diff --git a/README.md b/README.md new file mode 100644 index 0000000..a93d9d8 --- /dev/null +++ b/README.md @@ -0,0 +1,84 @@ +# Файл шаблона для новых репозиториев + +Для дальнейшей работы необходимо: +* добавить субмодуль со скриптами: git submodule add https://gitea.kdiva.ru/modules/helper-scripts.git +* заполнить поля в `module.json.template` + +```json + "id": "", + "name": "", + "title": "", + "description": "", + ... + "packs": [] +``` +`packs` может включать в себя следующие элементы: + +```json + { + "name": "actors", + "label": "new adventure template", + "path": "/packs/actors.db", + "entity": "Actor", + "type": "Actor", + "system": "dnd5e" + }, + { + "name": "adventure", + "label": "new adventure template", + "path": "/packs/adventure.db", + "entity": "Adventure", + "type": "Adventure", + "system": "dnd5e" + }, + { + "name": "cards", + "label": "new adventure template", + "path": "/packs/cards.db", + "entity": "Cards", + "type": "Cards" + }, + { + "name": "items", + "label": "new adventure template", + "path": "/packs/items.db", + "entity": "Item", + "type": "Item", + "system": "dnd5e" + }, + { + "name": "journals", + "label": "new adventure template", + "path": "/packs/journals.db", + "entity": "JournalEntry", + "type": "JournalEntry" + }, + { + "name": "macros", + "label": "new adventure template", + "path": "/packs/macros.db", + "entity": "Macro", + "type": "Macro" + }, + { + "name": "maps", + "label": "new adventure template", + "path": "/packs/maps.db", + "entity": "Scene", + "type": "Scene" + }, + { + "name": "playlists", + "label": "new adventure template", + "path": "/packs/playlists.db", + "entity": "Playlist", + "type": "Playlist" + }, + { + "name": "rolltables", + "label": "new adventure template", + "path": "/packs/rolltables.db", + "entity": "RollTable", + "type": "RollTable" + } +``` \ No newline at end of file diff --git a/module.json.template b/module.json.template new file mode 100644 index 0000000..d960bf9 --- /dev/null +++ b/module.json.template @@ -0,0 +1,23 @@ +{ + "id": "", + "name": "", + "title": "", + "description": "", + "authors": [ + { + "name": "leego neit" + } + ], + "version": "$RELEASE_TAG", + "minimumCoreVersion": "9", + "compatibility": { + "minimum": "9", + "verified": "11", + "maximum": "11" + }, + "url": "${DRONE_REPO_LINK}", + "manifest": "${DRONE_REPO_LINK}/releases/download/latest/module.json", + "download": "${DRONE_REPO_LINK}/releases/download/$RELEASE_TAG/module.zip", + "styles": [], + "packs": [] +} diff --git a/src/packs/actors.db b/src/packs/actors.db new file mode 100644 index 0000000..e69de29 diff --git a/src/packs/adventure.db b/src/packs/adventure.db new file mode 100644 index 0000000..e69de29 diff --git a/src/packs/cards.db b/src/packs/cards.db new file mode 100644 index 0000000..e69de29 diff --git a/src/packs/items.db b/src/packs/items.db new file mode 100644 index 0000000..e69de29 diff --git a/src/packs/journals.db b/src/packs/journals.db new file mode 100644 index 0000000..e69de29 diff --git a/src/packs/macros.db b/src/packs/macros.db new file mode 100644 index 0000000..e69de29 diff --git a/src/packs/maps.db b/src/packs/maps.db new file mode 100644 index 0000000..e69de29 diff --git a/src/packs/playlists.db b/src/packs/playlists.db new file mode 100644 index 0000000..e69de29 diff --git a/src/packs/rolltables.db b/src/packs/rolltables.db new file mode 100644 index 0000000..e69de29 diff --git a/src/scripts/init.js b/src/scripts/init.js new file mode 100644 index 0000000..1cc655e --- /dev/null +++ b/src/scripts/init.js @@ -0,0 +1 @@ +// Module specific code goes here. See https://foundryvtt.com/article/module-development/ for help. \ No newline at end of file