Merge branch 'beta' into beta
|
@ -15,7 +15,7 @@ jobs:
|
|||
submodules: 'recursive'
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Build
|
||||
|
|
|
@ -18,7 +18,7 @@ jobs:
|
|||
submodules: 'recursive'
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Build
|
||||
|
|
|
@ -24,7 +24,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout repository for Typedoc
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
path: pokerogue_docs
|
||||
|
@ -34,14 +34,14 @@ jobs:
|
|||
sudo apt update
|
||||
sudo apt install -y git openssh-client
|
||||
|
||||
- name: Setup Node 20.13.1
|
||||
uses: actions/setup-node@v1
|
||||
- name: Setup Node 22.14.1
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
node-version-file: "pokerogue_docs/.nvmrc"
|
||||
|
||||
- name: Checkout repository for Github Pages
|
||||
if: github.event_name == 'push'
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: pokerogue_gh
|
||||
ref: gh-pages
|
||||
|
|
|
@ -29,6 +29,7 @@ jobs:
|
|||
uses: actions/setup-node@v4 # Use the setup-node action version 4
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install Node.js dependencies # Step to install Node.js dependencies
|
||||
run: npm ci # Use 'npm ci' to install dependencies
|
||||
|
|
|
@ -19,14 +19,15 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v4.2.2
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'npm'
|
||||
- name: Install Node.js dependencies
|
||||
run: npm ci
|
||||
- name: Run tests
|
||||
run: npx vitest --project ${{ inputs.project }} --shard=${{ inputs.shard }}/${{ inputs.totalShards }} ${{ !runner.debug && '--silent' || '' }}
|
||||
run: npx vitest --project ${{ inputs.project }} --no-isolate --shard=${{ inputs.shard }}/${{ inputs.totalShards }} ${{ !runner.debug && '--silent' || '' }}
|
||||
|
|
|
@ -5,39 +5,58 @@ on:
|
|||
# but only for the main branch
|
||||
push:
|
||||
branches:
|
||||
- main # Trigger on push events to the main branch
|
||||
- main # Trigger on push events to the main branch
|
||||
- beta # Trigger on push events to the beta branch
|
||||
# go upvote https://github.com/actions/runner/issues/1182 and yell at microsoft until they fix this or ditch yml for workflows
|
||||
paths:
|
||||
# src and test files
|
||||
- "src/**"
|
||||
- "test/**"
|
||||
- "public/**"
|
||||
# Workflows that can impact tests
|
||||
- ".github/workflows/test*.yml"
|
||||
# top-level files
|
||||
- "package*.json"
|
||||
- ".nvrmc" # Updates to node version can break tests
|
||||
- "vite.*.ts" # vite.config.ts, vite.vitest.config.ts, vitest.workspace.ts
|
||||
- "tsconfig*.json" # tsconfig.json tweaking can impact compilation
|
||||
- "global.d.ts"
|
||||
- ".env.*"
|
||||
# Blanket negations for files that cannot impact tests
|
||||
- "!**/*.py" # No .py files
|
||||
- "!**/*.sh" # No .sh files
|
||||
- "!**/*.md" # No .md files
|
||||
- "!**/.git*" # .gitkeep and family
|
||||
|
||||
pull_request:
|
||||
branches:
|
||||
- main # Trigger on pull request events targeting the main branch
|
||||
- main # Trigger on pull request events targeting the main branch
|
||||
- beta # Trigger on pull request events targeting the beta branch
|
||||
paths: # go upvote https://github.com/actions/runner/issues/1182 and yell at microsoft because until then we have to duplicate this
|
||||
# src and test files
|
||||
- "src/**"
|
||||
- "test/**"
|
||||
- "public/**"
|
||||
# Workflows that can impact tests
|
||||
- ".github/workflows/test*.yml"
|
||||
# top-level files
|
||||
- "package*.json"
|
||||
- ".nvrmc" # Updates to node version can break tests
|
||||
- "vite*" # vite.config.ts, vite.vitest.config.ts, vitest.workspace.ts
|
||||
- "tsconfig*.json" # tsconfig.json tweaking can impact compilation
|
||||
- "global.d.ts"
|
||||
- ".env.*"
|
||||
# Blanket negations for files that cannot impact tests
|
||||
- "!**/*.py" # No .py files
|
||||
- "!**/*.sh" # No .sh files
|
||||
- "!**/*.md" # No .md files
|
||||
- "!**/.git*" # .gitkeep and family
|
||||
merge_group:
|
||||
types: [checks_requested]
|
||||
|
||||
jobs:
|
||||
pre-test:
|
||||
name: Run Pre-test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
path: tests-action
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- name: Install Node.js dependencies
|
||||
working-directory: tests-action
|
||||
run: npm ci
|
||||
- name: Run Pre-test
|
||||
working-directory: tests-action
|
||||
run: npx vitest run --project pre ${{ !runner.debug && '--silent' || '' }}
|
||||
|
||||
run-tests:
|
||||
name: Run Tests
|
||||
needs: [pre-test]
|
||||
name: Run Tests
|
||||
strategy:
|
||||
matrix:
|
||||
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
||||
|
@ -45,4 +64,4 @@ jobs:
|
|||
with:
|
||||
project: main
|
||||
shard: ${{ matrix.shard }}
|
||||
totalShards: 10
|
||||
totalShards: 10
|
||||
|
|
|
@ -12,7 +12,7 @@ If you have the motivation and experience with Typescript/Javascript (or are wil
|
|||
|
||||
#### Prerequisites
|
||||
|
||||
- node: 20.13.1
|
||||
- node: 22.14.0
|
||||
- npm: [how to install](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
|
||||
|
||||
#### Running Locally
|
||||
|
|
11
biome.jsonc
|
@ -31,7 +31,7 @@
|
|||
"src/overrides.ts",
|
||||
// TODO: these files are too big and complex, ignore them until their respective refactors
|
||||
"src/data/moves/move.ts",
|
||||
"src/data/ability.ts",
|
||||
"src/data/abilities/ability.ts",
|
||||
"src/field/pokemon.ts",
|
||||
|
||||
// this file is just too big:
|
||||
|
@ -50,7 +50,8 @@
|
|||
"noUndeclaredVariables": "off",
|
||||
"noUnusedVariables": "error",
|
||||
"noSwitchDeclarations": "warn", // TODO: refactor and make this an error
|
||||
"noVoidTypeReturn": "warn" // TODO: Refactor and make this an error
|
||||
"noVoidTypeReturn": "warn", // TODO: Refactor and make this an error
|
||||
"noUnusedImports": "error"
|
||||
},
|
||||
"style": {
|
||||
"noVar": "error",
|
||||
|
@ -64,7 +65,8 @@
|
|||
"useDefaultParameterLast": "off", // TODO: Fix spots in the codebase where this flag would be triggered, and then enable
|
||||
"useSingleVarDeclarator": "off",
|
||||
"useNodejsImportProtocol": "off",
|
||||
"useTemplate": "off" // string concatenation is faster: https://stackoverflow.com/questions/29055518/are-es6-template-literals-faster-than-string-concatenation
|
||||
"useTemplate": "off", // string concatenation is faster: https://stackoverflow.com/questions/29055518/are-es6-template-literals-faster-than-string-concatenation
|
||||
"noNamespaceImport": "error"
|
||||
},
|
||||
"suspicious": {
|
||||
"noDoubleEquals": "error",
|
||||
|
@ -98,6 +100,9 @@
|
|||
"rules": {
|
||||
"performance": {
|
||||
"noDelete": "off"
|
||||
},
|
||||
"style": {
|
||||
"noNamespaceImport": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,6 +68,10 @@ input:-internal-autofill-selected {
|
|||
background-clip: text;
|
||||
}
|
||||
|
||||
input:-webkit-autofill {
|
||||
-webkit-text-fill-color: #a1a1a1;
|
||||
}
|
||||
|
||||
/* Need adjust input font-size */
|
||||
input {
|
||||
font-size: 3.2rem;
|
||||
|
|
|
@ -8,12 +8,6 @@ pre-commit:
|
|||
skip:
|
||||
- merge
|
||||
- rebase
|
||||
|
||||
pre-push:
|
||||
commands:
|
||||
biome-lint:
|
||||
glob: "*.{js,ts,jsx,tsx}"
|
||||
run: npx @biomejs/biome check --write --reporter=summary {push_files} --no-errors-on-unmatched
|
||||
|
||||
post-merge:
|
||||
commands:
|
||||
|
|
61
package.json
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "pokemon-rogue-battle",
|
||||
"private": true,
|
||||
"version": "1.7.7",
|
||||
"version": "1.8.4",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
|
@ -9,10 +9,10 @@
|
|||
"build": "vite build",
|
||||
"build:beta": "vite build --mode beta",
|
||||
"preview": "vite preview",
|
||||
"test": "vitest run --project pre && vitest run --project main",
|
||||
"test:cov": "vitest run --project pre && vitest run --project main --coverage",
|
||||
"test:watch": "vitest run --project pre && vitest watch --project main --coverage",
|
||||
"test:silent": "vitest run --project pre && vitest run --project main --silent",
|
||||
"test": "vitest run",
|
||||
"test:cov": "vitest run --coverage --no-isolate",
|
||||
"test:watch": "vitest watch --coverage --no-isolate",
|
||||
"test:silent": "vitest run --silent --no-isolate",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"eslint": "eslint --fix .",
|
||||
"eslint-ci": "eslint .",
|
||||
|
@ -29,43 +29,44 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "1.9.4",
|
||||
"@eslint/js": "^9.3.0",
|
||||
"@hpcc-js/wasm": "^2.18.0",
|
||||
"@stylistic/eslint-plugin-ts": "^2.6.0-beta.0",
|
||||
"@eslint/js": "^9.23.0",
|
||||
"@hpcc-js/wasm": "^2.22.4",
|
||||
"@stylistic/eslint-plugin-ts": "^4.1.0",
|
||||
"@types/jsdom": "^21.1.7",
|
||||
"@types/node": "^20.12.13",
|
||||
"@typescript-eslint/eslint-plugin": "^8.0.0-alpha.54",
|
||||
"@typescript-eslint/parser": "^8.0.0-alpha.54",
|
||||
"@vitest/coverage-istanbul": "^2.1.9",
|
||||
"@types/node": "^22.13.14",
|
||||
"@typescript-eslint/eslint-plugin": "^8.28.0",
|
||||
"@typescript-eslint/parser": "^8.28.0",
|
||||
"@vitest/coverage-istanbul": "^3.0.9",
|
||||
"dependency-cruiser": "^16.3.10",
|
||||
"eslint": "^9.7.0",
|
||||
"eslint-plugin-import-x": "^4.2.1",
|
||||
"inquirer": "^11.0.2",
|
||||
"jsdom": "^24.0.0",
|
||||
"lefthook": "^1.6.12",
|
||||
"msw": "^2.4.9",
|
||||
"eslint": "^9.23.0",
|
||||
"eslint-plugin-import-x": "^4.9.4",
|
||||
"inquirer": "^12.4.2",
|
||||
"jsdom": "^26.0.0",
|
||||
"lefthook": "^1.11.5",
|
||||
"msw": "^2.7.3",
|
||||
"phaser3spectorjs": "^0.0.8",
|
||||
"typedoc": "^0.26.4",
|
||||
"typescript": "^5.5.3",
|
||||
"typescript-eslint": "^8.0.0-alpha.54",
|
||||
"vite": "^5.4.14",
|
||||
"vite-tsconfig-paths": "^4.3.2",
|
||||
"vitest": "^2.1.9",
|
||||
"typedoc": "^0.28.1",
|
||||
"typescript": "^5.8.2",
|
||||
"typescript-eslint": "^8.28.0",
|
||||
"vite": "^6.2.0",
|
||||
"vite-tsconfig-paths": "^5.1.4",
|
||||
"vitest": "^3.0.9",
|
||||
"vitest-canvas-mock": "^0.3.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@material/material-color-utilities": "^0.2.7",
|
||||
"compare-versions": "^6.1.1",
|
||||
"crypto-js": "^4.2.0",
|
||||
"i18next": "^23.11.1",
|
||||
"i18next-browser-languagedetector": "^7.2.1",
|
||||
"i18next-http-backend": "^2.6.1",
|
||||
"i18next": "^24.2.2",
|
||||
"i18next-browser-languagedetector": "^8.0.4",
|
||||
"i18next-http-backend": "^3.0.2",
|
||||
"i18next-korean-postposition-processor": "^1.0.0",
|
||||
"json-stable-stringify": "^1.1.0",
|
||||
"json-stable-stringify": "^1.2.0",
|
||||
"jszip": "^3.10.1",
|
||||
"phaser": "^3.70.0",
|
||||
"phaser3-rex-plugins": "^1.1.84"
|
||||
"phaser3-rex-plugins": "^1.80.14"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.0.0"
|
||||
"node": ">=22.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4599,8 +4599,6 @@
|
|||
"728",
|
||||
"729",
|
||||
"730",
|
||||
"730_2",
|
||||
"730_2",
|
||||
"747",
|
||||
"748",
|
||||
"753",
|
||||
|
|
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 32 KiB |
14703
public/images/items.json
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 257 B After Width: | Height: | Size: 274 B |
Before Width: | Height: | Size: 556 B After Width: | Height: | Size: 308 B |
Before Width: | Height: | Size: 241 B After Width: | Height: | Size: 243 B |
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 236 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 317 B |
Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 235 B After Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 236 B After Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 228 B After Width: | Height: | Size: 242 B |
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 253 B |
Before Width: | Height: | Size: 293 B After Width: | Height: | Size: 270 B |
Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 282 B |
Before Width: | Height: | Size: 240 B After Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 695 B |
Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 653 B After Width: | Height: | Size: 596 B |
Before Width: | Height: | Size: 247 B After Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 390 B After Width: | Height: | Size: 327 B |
Before Width: | Height: | Size: 275 B After Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 275 B After Width: | Height: | Size: 258 B |
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 313 B |
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 374 B After Width: | Height: | Size: 318 B |
Before Width: | Height: | Size: 258 B After Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 248 B After Width: | Height: | Size: 243 B |
Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 308 B After Width: | Height: | Size: 232 B |
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 302 B |
Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 259 B |
Before Width: | Height: | Size: 400 B After Width: | Height: | Size: 324 B |
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 349 B |
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 242 B |
Before Width: | Height: | Size: 295 B After Width: | Height: | Size: 280 B |
Before Width: | Height: | Size: 247 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 259 B |
Before Width: | Height: | Size: 511 B After Width: | Height: | Size: 316 B |
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 289 B |
Before Width: | Height: | Size: 287 B After Width: | Height: | Size: 280 B |
Before Width: | Height: | Size: 322 B After Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 251 B |
Before Width: | Height: | Size: 240 B After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 242 B |
Before Width: | Height: | Size: 856 B After Width: | Height: | Size: 785 B |
Before Width: | Height: | Size: 404 B After Width: | Height: | Size: 350 B |
Before Width: | Height: | Size: 283 B After Width: | Height: | Size: 268 B |
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 255 B |
Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 320 B |
Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 823 B After Width: | Height: | Size: 752 B |
Before Width: | Height: | Size: 411 B After Width: | Height: | Size: 358 B |
Before Width: | Height: | Size: 298 B After Width: | Height: | Size: 235 B |
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 274 B After Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 235 B After Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 274 B After Width: | Height: | Size: 268 B |
Before Width: | Height: | Size: 239 B After Width: | Height: | Size: 256 B |
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 302 B |
Before Width: | Height: | Size: 293 B After Width: | Height: | Size: 275 B |
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 242 B |
Before Width: | Height: | Size: 308 B After Width: | Height: | Size: 232 B |
Before Width: | Height: | Size: 289 B After Width: | Height: | Size: 275 B |
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 341 B |
Before Width: | Height: | Size: 233 B After Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 308 B After Width: | Height: | Size: 232 B |