Skip to content

Commit

Permalink
Grimoire Generated
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 22, 2025
0 parents commit 6621b8e
Show file tree
Hide file tree
Showing 33 changed files with 2,734 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# http://editorconfig.org
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
54 changes: 54 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parser": "@typescript-eslint/parser",
"env": {
"node": true,
"es6": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"rules": {
"no-console": "off",
"no-empty": "off",
"no-implicit-coercion": "error",
"arrow-body-style": ["error", "as-needed"],
"no-return-await": "error",
"prefer-regex-literals": "error",
"prefer-promise-reject-errors": "error",
"require-atomic-updates": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": ["error", { "functions": false }],
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-extraneous-class": "error",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
"@typescript-eslint/prefer-as-const": "error",
"@typescript-eslint/prefer-reduce-type-parameter": "error",
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "(^_|[iI]gnored)",
"argsIgnorePattern": "(^_|[iI]gnored)",
"ignoreRestSiblings": true
}
]
}
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Default core.autocrlf on
* text=auto eol=lf
47 changes: 47 additions & 0 deletions .github/workflows/check-for-updates-lore-books.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This workflow runs every five minutes to check for a new manifest
name: Check for Updates - Lore Books
on:
workflow_dispatch:
schedule:
- cron: '30 * * * *'

jobs:
build:
runs-on: ubuntu-latest
environment: github
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
with:
ref: lore-books

- name: Install Node
uses: actions/setup-node@v2.1.2
with:
node-version: '14.x'

- name: yarn install
uses: bahmutov/npm-install@v1.1.0

- name: Check for manifest update
run: yarn manifest:check
env:
API_KEY: ${{ secrets.API_KEY }}
SKIP_CHECK: 'false'

- name: Check for new files
id: data
run: echo ::set-output name=porcelain::"$(git status --porcelain)"

- name: Commit latest manifest version
if: steps.data.outputs.porcelain
run: |
git config --local user.email "action@github.com"
git config --local user.name "D2 Grimoire Epub Bot"
git checkout --orphan tmp-lore-books
git add -A
git commit -m 'Grimoire Generated'
git branch -D lore-books
git branch -m lore-books
git push -f origin lore-books
45 changes: 45 additions & 0 deletions .github/workflows/check-for-updates-omnibus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow runs every five minutes to check for a new manifest
name: Check for Updates - Omnibus
on:
workflow_dispatch:
schedule:
- cron: '0 * * * *'

jobs:
build:
runs-on: ubuntu-latest
environment: github
steps:
- name: Checkout
uses: actions/checkout@v2.3.4

- name: Install Node
uses: actions/setup-node@v2.1.2
with:
node-version: '14.x'

- name: yarn install
uses: bahmutov/npm-install@v1.1.0

- name: Check for manifest update
run: yarn manifest:check
env:
API_KEY: ${{ secrets.API_KEY }}
SKIP_CHECK: 'false'

- name: Check for new files
id: data
run: echo ::set-output name=porcelain::"$(git status --porcelain)"

- name: Commit latest manifest version
if: steps.data.outputs.porcelain
run: |
git config --local user.email "action@github.com"
git config --local user.name "D2 Grimoire Epub Bot"
git checkout --orphan tmp
git add -A
git commit -m 'Grimoire Generated'
git branch -D master
git branch -m master
git push -f origin master
41 changes: 41 additions & 0 deletions .github/workflows/skip-check-for-new-manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Skip Check - Omnibus
on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.4

- name: Install Node
uses: actions/setup-node@v2.1.2
with:
node-version: '14.x'

- name: yarn install
uses: bahmutov/npm-install@v1.1.0

- name: Check for manifest update
run: yarn manifest:check
env:
API_KEY: ${{ secrets.API_KEY }}
SKIP_CHECK: 'true'

- name: Check for new files
id: data
run: echo ::set-output name=porcelain::"$(git status --porcelain)"

- name: Commit latest manifest version
if: steps.data.outputs.porcelain
run: |
git config --local user.email "action@github.com"
git config --local user.name "D2 Grimoire Epub Bot"
git checkout --orphan tmp
git add -A
git commit -m 'Grimoire Generated'
git branch -D master
git branch -m master
git push -f origin master
43 changes: 43 additions & 0 deletions .github/workflows/skip-check-lore-books.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Skip Check - Lore Books
on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
with:
ref: lore-books

- name: Install Node
uses: actions/setup-node@v2.1.2
with:
node-version: '14.x'

- name: yarn install
uses: bahmutov/npm-install@v1.1.0

- name: Check for manifest update
run: yarn manifest:check
env:
API_KEY: ${{ secrets.API_KEY }}
SKIP_CHECK: 'true'

- name: Check for new files
id: data
run: echo ::set-output name=porcelain::"$(git status --porcelain)"

- name: Commit latest manifest version
if: steps.data.outputs.porcelain
run: |
git config --local user.email "action@github.com"
git config --local user.name "D2 Grimoire Epub Bot"
git checkout --orphan tmp-lore-books
git add -A
git commit -m 'Grimoire Generated'
git branch -D lore-books
git branch -m lore-books
git push -f origin lore-books
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules/
manifests/
built/
yarn-error.log
assets/*/*
.DS_store
.env
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
manifest_tables/*.json
manifests/*
data/**/*.json
built/*
.vscode
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 100,
"singleQuote": true,
"arrowParens": "always"
}
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"editor.tabSize": 2,
"editor.trimAutoWhitespace": true,
"files.trimTrailingWhitespace": true,
"typescript.tsdk": "node_modules/typescript/lib",
"editor.formatOnSave": true,
"search.exclude": {
"manifests": true
},
}
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Destiny Item Manager

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 6621b8e

Please sign in to comment.