Skip to content

Commit

Permalink
add @size-limit (#86)
Browse files Browse the repository at this point in the history
* Feature/save game (#65)

* feat: add saving game

* refactor

* fix

* fix: some bug

* feat: better ai

* fix: tests en passant

* fix: isValidMove returns true for en passant capture

* fix: isValidMove returns true for en passant capture

* fix: add true

* Create CODE_OF_CONDUCT.md

Signed-off-by: Antoine Greuzard <[email protected]>

* Update issue templates

* refactor ai

* refactor board

* refactor piece

* refactor pieces

* refactor utils

* refactor canvas

* refactor timer

* fix: drag impossible on ai pieces

* fix: remove save game

---------

Signed-off-by: Antoine Greuzard <[email protected]>
Co-authored-by: Antoine GREUZARD <[email protected]>

* fix: remove saveGameToFile

* Update pull_request_template.md

Signed-off-by: Antoine Greuzard <[email protected]>

* fix: remove saveGameToFile

* refactor: add ai folder

* Create dependabot.yml

Signed-off-by: Antoine Greuzard <[email protected]>

* feat: add some jobs

* fix: add token

* fix: rename token to github_token

* feat: add letters and x,y on canvas

* remove dependabot

* feat: add @size-limit

* remove size-limit

* remove size-limit

* remove size-limit job

---------

Signed-off-by: Antoine Greuzard <[email protected]>
Co-authored-by: Antoine GREUZARD <[email protected]>
  • Loading branch information
antoinegreuzard and Antoine GREUZARD authored Nov 1, 2024
1 parent 73fa670 commit 3494b1a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
Binary file added .DS_Store
Binary file not shown.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ jobs:
- name: Run ESLint
run: npm run lint

# Check bundle size
- name: Check bundle size
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

deploy:
runs-on: ubuntu-latest
permissions:
Expand Down
12 changes: 12 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"license": "MIT",
"type": "module",
"main": "dist/index.js",
"size-limit": [
{
"path": "dist/**/*.js",
"limit": "200 KB"
}
],
"scripts": {
"build": "vite build",
"start": "vite",
Expand Down

0 comments on commit 3494b1a

Please sign in to comment.