Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: initial release #1

Merged
merged 47 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
2c9f64b
chore: initial start
SlayerOrnstein Feb 8, 2024
5c3de06
chore: add codeowners
SlayerOrnstein Feb 8, 2024
99895fc
chore: update .github/CODEOWNERS
SlayerOrnstein Feb 8, 2024
bbdadc7
chore: update gitignore
SlayerOrnstein Feb 8, 2024
d047a07
chore: better mapping for player skills
SlayerOrnstein Feb 8, 2024
9509737
chore: map colors
SlayerOrnstein Feb 8, 2024
75eeb08
fixed imports
SlayerOrnstein Feb 9, 2024
5127cdd
add one all in one test for now
SlayerOrnstein Feb 10, 2024
db7f26a
copied over workflows from warframe-worldstate-parser
SlayerOrnstein Feb 10, 2024
c4942d3
change branch name to main
SlayerOrnstein Feb 10, 2024
e24201f
parse color to 16-bit strings
SlayerOrnstein Feb 10, 2024
54bb557
update chai, install-peerdeps, and node-fetch
SlayerOrnstein Feb 10, 2024
f6c5a3f
remove node 14 and 16 EoL
SlayerOrnstein Feb 10, 2024
d86e56c
use node v21 not v20
SlayerOrnstein Feb 10, 2024
14d7617
k new 'with' doesn't work with node v18
SlayerOrnstein Feb 10, 2024
894ce6f
change coverallsapp action to use main instead of master
SlayerOrnstein Feb 10, 2024
359e277
update workflow actions
SlayerOrnstein Feb 10, 2024
00c0981
follow worldstate-parser and use c8
SlayerOrnstein Feb 10, 2024
6a59801
added docs
SlayerOrnstein Feb 14, 2024
8f54b5f
update eslint
SlayerOrnstein Feb 17, 2024
312dea8
cleaned up naming structure and added some stuff from data
SlayerOrnstein Feb 17, 2024
1b4a25d
small change for item name
SlayerOrnstein Feb 18, 2024
4a543fc
made some discussed changes to workflows
SlayerOrnstein Feb 18, 2024
d98d847
whoops
SlayerOrnstein Feb 18, 2024
c06d155
update eslint
SlayerOrnstein Feb 18, 2024
17b9c81
use `latest` in peerdeps
SlayerOrnstein Feb 18, 2024
6d6036b
migrate to new utility functions in `warframe-items` and `warframe-wo…
SlayerOrnstein Feb 25, 2024
a49a059
create a map for color objects
SlayerOrnstein Mar 1, 2024
a321df8
parse data correctly
SlayerOrnstein Mar 1, 2024
8ddc924
update intrinisc to match in-game naming
SlayerOrnstein Mar 2, 2024
68fa5c3
remove node-fetch
SlayerOrnstein Mar 2, 2024
370ea0b
add some more test
SlayerOrnstein Mar 2, 2024
f776aab
hope I'm doing this type stuff right
SlayerOrnstein Mar 2, 2024
204858c
more assertions on itemConfig
TobiTenno Mar 2, 2024
79ee692
fix return type of mapToHex
TobiTenno Mar 2, 2024
b21808c
add item for full item info from warframe-items
SlayerOrnstein Mar 3, 2024
270651c
create `tsconfig.declaration.json`
SlayerOrnstein Mar 21, 2024
5898321
fix types path
SlayerOrnstein Mar 21, 2024
c4d04b9
remove my `index.d.ts`
SlayerOrnstein Mar 21, 2024
fe5a80e
update deps
SlayerOrnstein Mar 21, 2024
fe4ad33
fix(types): import the right ColorMap
TobiTenno Mar 21, 2024
6db754f
ci: ignore .eslintcache
TobiTenno Mar 21, 2024
69c8389
translate archon shards
SlayerOrnstein Apr 8, 2024
1777a26
add challenge test
SlayerOrnstein Apr 8, 2024
96ea352
update warframe-items
SlayerOrnstein Apr 8, 2024
049add6
add more test
SlayerOrnstein Apr 9, 2024
1e94aae
fix typo and cleaned up test and data
SlayerOrnstein Apr 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @WFCD/node-libraries
57 changes: 57 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Actions
on:
pull_request:
branches:
- main

jobs:
lint:
TobiTenno marked this conversation as resolved.
Show resolved Hide resolved
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install Dependencies
run: npm ci
- name: Run linters
run: npm run lint
test:
name: Test
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
node-version: ['lts/hydrogen', 'lts/iron', 'lts/*', 21]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm i --no-save warframe-worldstate-data@latest
- run: npm test
env:
CI: true
parallel: true
coverage:
name: Coverage
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm test
env:
CI: true
- name: Coveralls
uses: coverallsapp/github-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 'CodeQL'

on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: '24 12 * * 6'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ['javascript']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
26 changes: 26 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: GitHub pages

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: npm i
- run: npm install jsdoc ink-docstrap tsd-jsdoc
- name: Build
run: npm run build:docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./docs
46 changes: 46 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Release
on:
push:
branches:
- main

jobs:
verify:
name: Verify
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install Dependencies
run: npm ci
- name: Run linters
run: npm run lint
- name: Run tests
run: npm run test
release:
name: Release
runs-on: ubuntu-latest
needs: [verify]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
semantic_version: 17
branches: |
['main']
55 changes: 55 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
.nyc_output/

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
node_modules

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# WebStorm files
.idea

warframe-worldstate-parser-*.tgz
package.json.backup

# Test debugging files
data.*.json

# unwanted configs from plugins
.jshintignore
.jshintrc

.vscode/

# generated at release as part of the package
types/

# eslint cache
.eslintcache
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/hydrogen
Loading