From 3494b1aff70d710c83c598aa2f572c85d257a685 Mon Sep 17 00:00:00 2001 From: Antoine Greuzard Date: Fri, 1 Nov 2024 09:38:40 +0100 Subject: [PATCH] add @size-limit (#86) * 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 * 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 Co-authored-by: Antoine GREUZARD * fix: remove saveGameToFile * Update pull_request_template.md Signed-off-by: Antoine Greuzard * fix: remove saveGameToFile * refactor: add ai folder * Create dependabot.yml Signed-off-by: Antoine Greuzard * 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 Co-authored-by: Antoine GREUZARD --- .DS_Store | Bin 0 -> 8196 bytes .github/workflows/ci.yml | 6 ------ package-lock.json | 12 ++++++++++++ package.json | 6 ++++++ 4 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..952d41c9179ca8f89d1f03ae7b9d12488d391246 GIT binary patch literal 8196 zcmeHMU2GIp6u#edDKi7Lw?9DH0W#90MOttR7AP3l{_&Gy3T*!<;JUjrz=Y{c-I?8j zgjhAcD5&wp2gScvqtORVtkLL`O?(m?BM)k#i7%RnJ{l7}Gj|qffd>;pnm9MP_sqHH zoO|y%_d9dv?lQ*EQ!+XjYhsMaR0GPFQFEIT$b))Ik)oaiQII_|yn>x~U7MJ=#1V)i z5Jw=6KpcTM0*f;O(J?LG;oM)Gi;hQ=-BY(G>&2oci@hFCEcoL4`R(booFuGol*`!r5tjJyd5% z3mUg^1mXzX8i62v63k#0^O%40{k@t^vJ%TPn?!~DlsB2T-8?DJAYXaTHbGw52+C?(W?;FgRCpUoEdw8`N=%ljB<_ zEwgwu=M_xHu$)uFQV^XqB>T}TaTA4 z{~T|Y<#3L5nywxd+b5V1;|4r$gPU4cocAX)D|i^K4UhXrpBjTZIpZ&RuGQHdb&aCdfrk5q*2KZtc-v z+JiaIADlFuU`ew=)o$zg zho+UQYP7>zM&?&!+8N6!TLfy_ae-~QIlWPAPUvKFIwd%TPOsH$Go6zA*>Pr4>YQU2 z*=6=RdzXF0zF=Rmuh~`h1N)Kv#C~SKu|L`0NT3F_;HX0qt=NE#Xv0HDqZ>UKz#$w) z217W3JPI&z5-v(8<1EhMX*`GLaS1Qr6}*YJ@HXDT3_ii9_zYj-3ckS{zQ^ylhClF^ zl#rH4)l#j*rFyABYLQx{l+-Eh77Ldu$#Qf)=A=EuFHDx`6(HHSOO|B+-hGQBS*|V* z)1$tjamBjk4V$)X+qLI9j0El~P`eqx;fBt`dWhOEeHI{YF3cl!&Du)h+(;#nTEhf) z^Q;_X9bX!0-@jfaxbr0u+tNzx0IwEovaMaF)Z$Xes>xJ`LJ7pHBDSrQSO`Y#+Nn?~ z@kGR~*-b19nPjr3mxh_;@_)za2W*CY&Su#h;q({wE4#-2flTO3LPtx8&o*qrHf+ZZ z?8L+9$6oBi0Yd5!hB1OMj1x``Lh314D8hqJXnhjXcnZ(pS;FdzcnL4#RlJ7Fcq2mX z`}lYP4iC)7A!g?DF?SauP$kA{3hw{?cmDnVF3uPa6-OYBz+#I45`CGz9$Ho9V_@L| zgS)m)^)aeJ3G}7~4Na&CRD%BSI!^TZABOa-N3wK8rv)Vmm3#g}0DX7H=l?C=sqy(A JqVfOJ{0otF9+m(A literal 0 HcmV?d00001 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 315ce15..7ce3211 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/package-lock.json b/package-lock.json index a2a2c2e..d5e0960 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6406,6 +6406,18 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "node_modules/jiti": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.3.3.tgz", + "integrity": "sha512-EX4oNDwcXSivPrw2qKH2LB5PoFxEvgtv2JgwW0bU858HoLQ+kutSvjLMUqBd0PeJYEinLWhoI9Ol0eYMqj/wNQ==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", diff --git a/package.json b/package.json index 03076f2..eee55f4 100644 --- a/package.json +++ b/package.json @@ -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",