-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Muttley/develop
Release 11.1.0
- Loading branch information
Showing
197 changed files
with
13,784 additions
and
1,602 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = tab | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: NodeJS with Gulp | ||
|
||
on: | ||
push: | ||
branches: [ "develop" ] | ||
pull_request: | ||
branches: [ "develop" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Build | ||
run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: Create Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'release-*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up variables | ||
id: get_vars | ||
run: | | ||
TAG=${GITHUB_REF/refs\/tags\//} | ||
echo ::set-output name=TAG_NAME::$TAG | ||
echo ::set-output name=ZIP_NAME::ac2d20.zip | ||
echo ::set-output name=RELEASE_DOWNLOAD_URL::https://github.com/${{github.repository}}/releases/latest/download/ac2d20.zip | ||
echo ::set-output name=RELEASE_INSTALL_URL::https://github.com/${{github.repository}}/releases/download/$TAG/system.json | ||
JSON=$(cat ./system/system.json) | ||
echo ::set-output name=SYSTEM_JSON::${JSON//'%'/'%25'} | ||
# Run some tests to make sure our `system.json` is correct | ||
# Exit before setting up node if not | ||
- name: Verify Naming | ||
env: | ||
TAG_NAME: ${{ steps.get_vars.outputs.TAG_NAME }} | ||
RELEASE_DOWNLOAD: ${{steps.get_vars.outputs.RELEASE_DOWNLOAD_URL}} | ||
# Extract version and download url from system.json | ||
# https://docs.github.com/en/actions/learn-github-actions/expressions#fromjson | ||
PACKAGE_VERSION: ${{fromJSON(steps.get_vars.outputs.SYSTEM_JSON).version}} | ||
PACKAGE_DOWNLOAD: ${{fromJSON(steps.get_vars.outputs.SYSTEM_JSON).download}} | ||
run: | | ||
# Validate that the tag being released matches the package version. | ||
if [[ ! $TAG_NAME == release-$PACKAGE_VERSION ]]; then | ||
echo "The system.json version does not match tag name." | ||
echo "system.json: $PACKAGE_VERSION" | ||
echo "tag name: $TAG_NAME" | ||
echo "Please fix this and push the tag again." | ||
exit 1 | ||
fi | ||
# Validate that the package download url matches the release asset that will be created. | ||
if [[ ! $RELEASE_DOWNLOAD == $PACKAGE_DOWNLOAD ]]; then | ||
echo "The system.json download url does not match the created release asset url." | ||
echo "system.json: $PACKAGE_DOWNLOAD" | ||
echo "release asset url: $RELEASE_DOWNLOAD" | ||
echo "Please fix this and push the tag again." | ||
exit 1 | ||
fi | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Build | ||
run: | | ||
npm run build | ||
cp --force LICENSE.txt system/. | ||
cp --force README.md system/. | ||
- run: cd system && zip ../${{steps.get_vars.outputs.ZIP_NAME}} -r assets css fonts lang packs src templates ac2d20.mjs ac2d20-compiled.mjs ac2d20-compiled.mjs.map LICENSE.txt README.md system.json template.json | ||
|
||
# Create a release for this specific version | ||
- name: Update Release with Files | ||
id: create_version_release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true # Set this to false if you want to prevent updating existing releases | ||
name: ${{steps.get_vars.outputs.TAG_NAME}} | ||
draft: false | ||
prerelease: false | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
artifacts: './system/system.json, ./${{steps.get_vars.outputs.ZIP_NAME}}' | ||
tag: ${{steps.get_vars.outputs.TAG_NAME}} | ||
body: '**Installation:** To manually install this release, please use the following manifest URL: ${{steps.get_vars.outputs.RELEASE_INSTALL_URL}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,9 @@ | ||
# IDE | ||
.idea/ | ||
.vs/ | ||
*.code-workspace | ||
|
||
# Node Modules | ||
.vscode/ | ||
node_modules/ | ||
npm-debug.log | ||
|
||
# Gulp | ||
gulpfile.js | ||
package-lock.json | ||
package.json | ||
scratch/ | ||
system/css/ | ||
system/i18n/ | ||
system/packs/ | ||
|
||
# Foundry | ||
*.lock | ||
|
||
# Releases and zips | ||
*.7z | ||
*.zip | ||
*.rar | ||
*.code-workspace | ||
ac2d20-compiled* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"recommendations": [ | ||
"EditorConfig.EditorConfig", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"Gruntfuggly.todo-tree", | ||
"lokalise.i18n-ally" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Author: FloRad from SWADE game system | ||
# https://gitlab.com/peginc/swade | ||
|
||
# .vscode/i18n-ally-custom-framework.yml | ||
|
||
# An array of strings which contain Language Ids defined by VS Code | ||
# You can check avaliable language ids here: https://code.visualstudio.com/docs/languages/overview#_language-id | ||
languageIds: | ||
- javascript | ||
- typescript | ||
- handlebars | ||
|
||
# An array of RegExes to find the key usage. **The key should be captured in the first match group**. | ||
# You should unescape RegEx strings in order to fit in the YAML file | ||
# To help with this, you can use https://www.freeformatter.com/json-escape.html | ||
usageMatchRegex: | ||
# The following example shows how to detect `t("your.i18n.keys")` | ||
# the `{key}` will be placed by a proper keypath matching regex, | ||
# you can ignore it and use your own matching rules as well | ||
- "[^\\w\\d]game\\.i18n\\.localize\\(['\"`]({key})['\"`]\\)" | ||
- "[^\\w\\d]game\\.i18n\\.format\\(['\"`]({key})['\"`]" | ||
- "[^\\w\\d]ui\\.notifications\\.info\\(['\"`]({key})['\"`],\\s{\\s*.*\\slocalize: true\\s*.*}" | ||
- "[^\\w\\d]ui\\.notifications\\.warn\\(['\"`]({key})['\"`],\\s{\\s*.*\\slocalize: true\\s*.*}" | ||
- "[^\\w\\d]ui\\.notifications\\.error\\(['\"`]({key})['\"`],\\s{\\s*.*\\slocalize: true\\s*.*}" | ||
- "\\{\\{\\s*localize\\s+[\"']({key})['\"]\\}\\}" | ||
- "\\{\\{[\\w\\.\\s\\=]*\\(localize\\s+[\"']({key})['\"]\\)[\\w\\.\\s\\=]*\\}\\}" | ||
- "name:\\s+[\"'](SETTINGS.{key})[\"']" | ||
- "hint:\\s+[\"'](SETTINGS.{key})[\"']" | ||
|
||
# An array of strings containing refactor templates. | ||
# The "$1" will be replaced by the keypath specified. | ||
# Optional: uncomment the following two lines to use | ||
|
||
# refactorTemplates: | ||
# - "{{localize '$1'}}" | ||
# - '{{localize "$1"}}' | ||
|
||
# If set to true, only enables this custom framework (will disable all built-in frameworks) | ||
monopoly: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "Achtung! Cthulhu 2d20 System", | ||
"url": "http://localhost:30000", | ||
"webRoot": "${workspaceFolder}/system" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
{ | ||
"liveSassCompile.settings.formats": [ | ||
{ | ||
"format": "expanded", | ||
"extensionName": ".css", | ||
"savePath": "/css", | ||
//"savePath": "/src" | ||
}, | ||
], | ||
"liveSassCompile.settings.autoprefix": null, | ||
"liveSassCompile.settings.excludeList": [ | ||
"**/node_modules/**", | ||
".vscode/**" | ||
] | ||
} | ||
"i18n-ally.localesPaths": "i18n" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.