Skip to content

Commit d07242c

Browse files
committed
Grimoire Generated
0 parents  commit d07242c

33 files changed

+2734
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
charset = utf-8
9+
indent_style = space
10+
indent_size = 2
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.eslintrc

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"env": {
4+
"node": true,
5+
"es6": true
6+
},
7+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
8+
"parserOptions": {
9+
"ecmaFeatures": {
10+
"jsx": true
11+
},
12+
"ecmaVersion": 2018,
13+
"sourceType": "module",
14+
"project": "./tsconfig.json"
15+
},
16+
"plugins": ["@typescript-eslint"],
17+
"rules": {
18+
"no-console": "off",
19+
"no-empty": "off",
20+
"no-implicit-coercion": "error",
21+
"arrow-body-style": ["error", "as-needed"],
22+
"no-return-await": "error",
23+
"prefer-regex-literals": "error",
24+
"prefer-promise-reject-errors": "error",
25+
"require-atomic-updates": "off",
26+
"@typescript-eslint/explicit-member-accessibility": "off",
27+
"@typescript-eslint/explicit-function-return-type": "off",
28+
"@typescript-eslint/no-explicit-any": "off",
29+
"@typescript-eslint/no-var-requires": "off",
30+
"@typescript-eslint/no-non-null-assertion": "off",
31+
"@typescript-eslint/no-use-before-define": ["error", { "functions": false }],
32+
"@typescript-eslint/no-parameter-properties": "off",
33+
"@typescript-eslint/no-extraneous-class": "error",
34+
"@typescript-eslint/no-this-alias": "error",
35+
"@typescript-eslint/no-unnecessary-qualifier": "error",
36+
"@typescript-eslint/no-unnecessary-type-assertion": "error",
37+
"@typescript-eslint/prefer-function-type": "error",
38+
"@typescript-eslint/prefer-for-of": "error",
39+
"@typescript-eslint/prefer-optional-chain": "error",
40+
"@typescript-eslint/array-type": "error",
41+
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
42+
"@typescript-eslint/prefer-as-const": "error",
43+
"@typescript-eslint/prefer-reduce-type-parameter": "error",
44+
"@typescript-eslint/unified-signatures": "error",
45+
"@typescript-eslint/no-unused-vars": [
46+
"error",
47+
{
48+
"varsIgnorePattern": "(^_|[iI]gnored)",
49+
"argsIgnorePattern": "(^_|[iI]gnored)",
50+
"ignoreRestSiblings": true
51+
}
52+
]
53+
}
54+
}

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Default core.autocrlf on
2+
* text=auto eol=lf
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This workflow runs every five minutes to check for a new manifest
2+
name: Check for Updates - Lore Books
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '30 * * * *'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
environment: github
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2.3.4
15+
with:
16+
ref: lore-books
17+
18+
- name: Install Node
19+
uses: actions/setup-node@v2.1.2
20+
with:
21+
node-version: '14.x'
22+
23+
- name: yarn install
24+
uses: bahmutov/npm-install@v1.1.0
25+
26+
- name: Check for manifest update
27+
run: yarn manifest:check
28+
env:
29+
API_KEY: ${{ secrets.API_KEY }}
30+
SKIP_CHECK: 'false'
31+
32+
- name: Check for new files
33+
id: data
34+
run: echo ::set-output name=porcelain::"$(git status --porcelain)"
35+
36+
- name: Commit latest manifest version
37+
if: steps.data.outputs.porcelain
38+
run: |
39+
git config --local user.email "action@github.com"
40+
git config --local user.name "D2 Grimoire Epub Bot"
41+
42+
git checkout --orphan tmp-lore-books
43+
git add -A
44+
git commit -m 'Grimoire Generated'
45+
git branch -D lore-books
46+
git branch -m lore-books
47+
git push -f origin lore-books
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This workflow runs every five minutes to check for a new manifest
2+
name: Check for Updates - Omnibus
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 * * * *'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
environment: github
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2.3.4
15+
16+
- name: Install Node
17+
uses: actions/setup-node@v2.1.2
18+
with:
19+
node-version: '14.x'
20+
21+
- name: yarn install
22+
uses: bahmutov/npm-install@v1.1.0
23+
24+
- name: Check for manifest update
25+
run: yarn manifest:check
26+
env:
27+
API_KEY: ${{ secrets.API_KEY }}
28+
SKIP_CHECK: 'false'
29+
30+
- name: Check for new files
31+
id: data
32+
run: echo ::set-output name=porcelain::"$(git status --porcelain)"
33+
34+
- name: Commit latest manifest version
35+
if: steps.data.outputs.porcelain
36+
run: |
37+
git config --local user.email "action@github.com"
38+
git config --local user.name "D2 Grimoire Epub Bot"
39+
40+
git checkout --orphan tmp
41+
git add -A
42+
git commit -m 'Grimoire Generated'
43+
git branch -D master
44+
git branch -m master
45+
git push -f origin master
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Skip Check - Omnibus
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2.3.4
11+
12+
- name: Install Node
13+
uses: actions/setup-node@v2.1.2
14+
with:
15+
node-version: '14.x'
16+
17+
- name: yarn install
18+
uses: bahmutov/npm-install@v1.1.0
19+
20+
- name: Check for manifest update
21+
run: yarn manifest:check
22+
env:
23+
API_KEY: ${{ secrets.API_KEY }}
24+
SKIP_CHECK: 'true'
25+
26+
- name: Check for new files
27+
id: data
28+
run: echo ::set-output name=porcelain::"$(git status --porcelain)"
29+
30+
- name: Commit latest manifest version
31+
if: steps.data.outputs.porcelain
32+
run: |
33+
git config --local user.email "action@github.com"
34+
git config --local user.name "D2 Grimoire Epub Bot"
35+
36+
git checkout --orphan tmp
37+
git add -A
38+
git commit -m 'Grimoire Generated'
39+
git branch -D master
40+
git branch -m master
41+
git push -f origin master
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Skip Check - Lore Books
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2.3.4
11+
with:
12+
ref: lore-books
13+
14+
- name: Install Node
15+
uses: actions/setup-node@v2.1.2
16+
with:
17+
node-version: '14.x'
18+
19+
- name: yarn install
20+
uses: bahmutov/npm-install@v1.1.0
21+
22+
- name: Check for manifest update
23+
run: yarn manifest:check
24+
env:
25+
API_KEY: ${{ secrets.API_KEY }}
26+
SKIP_CHECK: 'true'
27+
28+
- name: Check for new files
29+
id: data
30+
run: echo ::set-output name=porcelain::"$(git status --porcelain)"
31+
32+
- name: Commit latest manifest version
33+
if: steps.data.outputs.porcelain
34+
run: |
35+
git config --local user.email "action@github.com"
36+
git config --local user.name "D2 Grimoire Epub Bot"
37+
38+
git checkout --orphan tmp-lore-books
39+
git add -A
40+
git commit -m 'Grimoire Generated'
41+
git branch -D lore-books
42+
git branch -m lore-books
43+
git push -f origin lore-books

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules/
2+
manifests/
3+
built/
4+
yarn-error.log
5+
assets/*/*
6+
.DS_store
7+
.env

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
manifest_tables/*.json
2+
manifests/*
3+
data/**/*.json
4+
built/*
5+
.vscode

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 100,
3+
"singleQuote": true,
4+
"arrowParens": "always"
5+
}

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"editor.tabSize": 2,
3+
"editor.trimAutoWhitespace": true,
4+
"files.trimTrailingWhitespace": true,
5+
"typescript.tsdk": "node_modules/typescript/lib",
6+
"editor.formatOnSave": true,
7+
"search.exclude": {
8+
"manifests": true
9+
},
10+
}

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Destiny Item Manager
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)