chore: scaffold Vite + Svelte 5 + TS project with chess.js and vitest

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
claude (duplicate_chess)
2026-05-19 00:40:03 -04:00
parent 61980f043f
commit bd24159f37
18 changed files with 2109 additions and 2 deletions
+26 -2
View File
@@ -1,7 +1,31 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
node_modules/ node_modules/
dist
dist/ dist/
.superpowers/ dist-ssr
.DS_Store
*.local *.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# Project-specific
.superpowers/
*.tsbuildinfo *.tsbuildinfo
GITEA_API.md GITEA_API.md
+865
View File
@@ -0,0 +1,865 @@
{
"version": "1.5.0",
"plugins_used": [
{
"name": "ArtifactoryDetector"
},
{
"name": "AWSKeyDetector"
},
{
"name": "AzureStorageKeyDetector"
},
{
"name": "Base64HighEntropyString",
"limit": 4.5
},
{
"name": "BasicAuthDetector"
},
{
"name": "CloudantDetector"
},
{
"name": "DiscordBotTokenDetector"
},
{
"name": "GitHubTokenDetector"
},
{
"name": "GitLabTokenDetector"
},
{
"name": "HexHighEntropyString",
"limit": 3.0
},
{
"name": "IbmCloudIamDetector"
},
{
"name": "IbmCosHmacDetector"
},
{
"name": "IPPublicDetector"
},
{
"name": "JwtTokenDetector"
},
{
"name": "KeywordDetector",
"keyword_exclude": ""
},
{
"name": "MailchimpDetector"
},
{
"name": "NpmDetector"
},
{
"name": "OpenAIDetector"
},
{
"name": "PrivateKeyDetector"
},
{
"name": "PypiTokenDetector"
},
{
"name": "SendGridDetector"
},
{
"name": "SlackDetector"
},
{
"name": "SoftlayerDetector"
},
{
"name": "SquareOAuthDetector"
},
{
"name": "StripeDetector"
},
{
"name": "TelegramBotTokenDetector"
},
{
"name": "TwilioKeyDetector"
}
],
"filters_used": [
{
"path": "detect_secrets.filters.allowlist.is_line_allowlisted"
},
{
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
"min_level": 2
},
{
"path": "detect_secrets.filters.heuristic.is_indirect_reference"
},
{
"path": "detect_secrets.filters.heuristic.is_likely_id_string"
},
{
"path": "detect_secrets.filters.heuristic.is_lock_file"
},
{
"path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
},
{
"path": "detect_secrets.filters.heuristic.is_potential_uuid"
},
{
"path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign"
},
{
"path": "detect_secrets.filters.heuristic.is_sequential_string"
},
{
"path": "detect_secrets.filters.heuristic.is_swagger_file"
},
{
"path": "detect_secrets.filters.heuristic.is_templated_secret"
}
],
"results": {
"pnpm-lock.yaml": [
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "88dcf5e48940431d207eb6beeda3f28b52b9dcd6",
"is_verified": false,
"line_number": 43
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "9b1aeb3238bb5411805279e20afb4fb96fa7490d",
"is_verified": false,
"line_number": 46
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "e8cc5935afdfd3788eae945e3db3f42e2c3acee6",
"is_verified": false,
"line_number": 49
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "8733ba82d33885a92ca3009eb6ba61e505a1ee9a",
"is_verified": false,
"line_number": 52
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "3e3522c83d724aa4133ee6bb6d627e4390be31a5",
"is_verified": false,
"line_number": 55
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "9d1b9dbec9f048e048f4dd38591947ca7deff5dd",
"is_verified": false,
"line_number": 58
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "f60c00cacddf514ad090fbde7005d8721adc0b89",
"is_verified": false,
"line_number": 62
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "b0e9cbf320ebe74507bcdaae3f0b40740459a092",
"is_verified": false,
"line_number": 65
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "f274e993f5da6ef04f9ab21f5152b7f16f86fc45",
"is_verified": false,
"line_number": 68
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "63ec2819c4e19e52c1d683e5e3e2e6ce0b6cac93",
"is_verified": false,
"line_number": 74
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "907c22434e5fe282d088f338a9e6155fb51ce241",
"is_verified": false,
"line_number": 77
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "e694aeb21a36497b6eb9bc56f884bd4c69ac5add",
"is_verified": false,
"line_number": 83
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "4d2585f3339105214d7685879b53a916f5aea9fa",
"is_verified": false,
"line_number": 89
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "f1833f6e7490c05a1a76205a4bdafb80e88e04e6",
"is_verified": false,
"line_number": 95
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "cacf9ecad80e93e92e88556952a24dedeae071ae",
"is_verified": false,
"line_number": 101
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "525571cc69c07ea83a7f575ab13f8174a1279317",
"is_verified": false,
"line_number": 107
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "be823e3374be22151f74deb53ad9b52ba62e1794",
"is_verified": false,
"line_number": 114
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "f057529a66a11ba122564fc9c36ccefe29df6f1a",
"is_verified": false,
"line_number": 121
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "2e065f3f711d422e5ef5abdcd9c255dea44113f7",
"is_verified": false,
"line_number": 128
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "04eddfeea8ec2c47eac1fdc1f6033f88d175e4cf",
"is_verified": false,
"line_number": 135
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "de1fe5a83dde4beebb24a15f2ebf259aa1adb023",
"is_verified": false,
"line_number": 142
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "aaa92f5d670cc00ba757939cebeda4c34436c037",
"is_verified": false,
"line_number": 149
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "2cd4187cd1381a5ff2776451a79449d69a7790ec",
"is_verified": false,
"line_number": 155
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "a427b668faefb136b19160d59226685364b3a9e5",
"is_verified": false,
"line_number": 160
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "007e6990046ea7fce8af0547e80941651f78eb17",
"is_verified": false,
"line_number": 166
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "b0da61692236cf0f51dfca9bea5b058e6db2a173",
"is_verified": false,
"line_number": 172
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "1e9ff9fee5ad181d3f63618e0267e8ad42826e83",
"is_verified": false,
"line_number": 175
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "0e08e31e43853476fc57d10643d8c871082c08b3",
"is_verified": false,
"line_number": 178
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "de37fe98add6f4734b9251d9b8c3e9d0772f2a7a",
"is_verified": false,
"line_number": 183
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "ae55501077a6c44a2607882f75ee062a47bc2a6a",
"is_verified": false,
"line_number": 190
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "2a99232e74af9898db82959893e9c64814b15714",
"is_verified": false,
"line_number": 193
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "7739c7a36e8b5c9759887d54c3d3a252d017cb71",
"is_verified": false,
"line_number": 196
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "d4dda0583372eb865e22ea00ae160ceb315aa0df",
"is_verified": false,
"line_number": 199
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "fa52615bd39e56c7366b834e0c9b496bbb96f043",
"is_verified": false,
"line_number": 202
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "2ff8e8e4076d74fa172588e8f030832fc1d1577f",
"is_verified": false,
"line_number": 205
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "5f411c7e6073b67aca1c9043e3e952322dc21d46",
"is_verified": false,
"line_number": 208
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "4ea248d159b60f6d7fef97d151e4684cb2bd1b7c",
"is_verified": false,
"line_number": 211
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "40efaa4408aa7a51f20a5dafc886853a090bdf7f",
"is_verified": false,
"line_number": 214
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "bbd4d55c127ca96a683a41840e2cf89a50b2d879",
"is_verified": false,
"line_number": 225
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "ca76999d735911c431e5bdd1fea97ba4933bc187",
"is_verified": false,
"line_number": 228
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "902751d36d478d198a9171b2692aea0bcee1d728",
"is_verified": false,
"line_number": 231
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "f9e756c256be01a72d3b154b30203f0e3bd4c554",
"is_verified": false,
"line_number": 234
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "b510709833d6f2ff1ea90f5cfa4b514c6c56b2ce",
"is_verified": false,
"line_number": 237
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "b2c03df0ed8f8caded3abab58c3b2e3b645dbb28",
"is_verified": false,
"line_number": 240
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "5bb90e7e3d7847438b155c9fb564dfd279383855",
"is_verified": false,
"line_number": 245
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "1c504c77e2b9f1ea0e1770e65673fd7f8b3f4c8f",
"is_verified": false,
"line_number": 249
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "4a6acdb47bbd22c85e10baf5921ddbb3c09a787b",
"is_verified": false,
"line_number": 253
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "bc23715592b7602434c2776230d19f43fc479898",
"is_verified": false,
"line_number": 257
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "8095985919187b5be33de4b775c7a5e7562aafee",
"is_verified": false,
"line_number": 261
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "8ff61e34bccd3c9f85c8a24db9723d984fd74314",
"is_verified": false,
"line_number": 264
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "5974b42acc3c558a08c734a45a10785534b5d382",
"is_verified": false,
"line_number": 268
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "08c8ee0987f57add8cd4071488caef8ec431336a",
"is_verified": false,
"line_number": 272
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "c0c7aeed5e5a888b2aa3cdb739955fd27d25335e",
"is_verified": false,
"line_number": 275
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "bef68af5091abf3bd912b28fd2f8b438426dd79d",
"is_verified": false,
"line_number": 279
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "deb1c562595f81e98efdd28daf90161dc8ab8013",
"is_verified": false,
"line_number": 283
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "d3bc9e85ef73bc81be3c9767f7c26c7600f357c0",
"is_verified": false,
"line_number": 286
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "4a1a266072e5f401e1aa928a9bf6d94bfeab4806",
"is_verified": false,
"line_number": 289
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "5522dfea7968ce0fbca87245aaf099a6211d7e23",
"is_verified": false,
"line_number": 292
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "763f4272f5426f2cb52dd90f1f6a490a4ce61418",
"is_verified": false,
"line_number": 300
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "16d0c877fca994fd1c43bd7f131be967bf4f87b6",
"is_verified": false,
"line_number": 303
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "16fa3bfaeef78e32910c87baf9060e51490d09ad",
"is_verified": false,
"line_number": 307
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "d950cd8ef510429f57fb282e4a437321ca86158c",
"is_verified": false,
"line_number": 316
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "aea3a2f0dd7f8e8655ed2e6cf823ce09d0d537a4",
"is_verified": false,
"line_number": 321
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "ecca8c8ee1920fbd6387220767bdecf3635a3741",
"is_verified": false,
"line_number": 324
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "b48b7cde42a2442c78c359b776b516d8127006c6",
"is_verified": false,
"line_number": 330
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "2fb4be4f309d24f5064ac5496b8c7f59df0bf966",
"is_verified": false,
"line_number": 336
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "b6acf38d09475b54b197ff0574abc4a7e86c3543",
"is_verified": false,
"line_number": 342
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "405ac79c3832190ec6bd61bce50e9390a026af72",
"is_verified": false,
"line_number": 348
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "5f3d1367a38ac4e76290f44b6dc26d3555bbabf5",
"is_verified": false,
"line_number": 354
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "d86912fe91c497e31a4344f459a68586ce096966",
"is_verified": false,
"line_number": 361
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "1509ab36ebf61526ec42f40016db32b0925e96bc",
"is_verified": false,
"line_number": 368
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "2139b734b30d5642cf104ea814b455bf3f08ca4c",
"is_verified": false,
"line_number": 375
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "ef73b9a0b786d2e003921cc9967a0a7cd6ae1913",
"is_verified": false,
"line_number": 382
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "2ffc317e2ecc11d98e3e05bf565c6575c4cbfd51",
"is_verified": false,
"line_number": 388
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "432730c731e24c084f98525d5e133e358dc47b2f",
"is_verified": false,
"line_number": 394
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "3e2f7beb6f6a2204eb1ca56ae8ca7e9602ad13f3",
"is_verified": false,
"line_number": 398
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "1e2228f0d8e0fc2bc3b8740a8ff3d287006b9a38",
"is_verified": false,
"line_number": 401
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "1229dc2178fd4b24f6dcb957dbdc4dd4f592e26f",
"is_verified": false,
"line_number": 404
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "5b6b494f771ff69c35ad46e17ec1f7da6eb8696e",
"is_verified": false,
"line_number": 408
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "fd987a3583a86961bbb3db9e742c93a837cd5bf6",
"is_verified": false,
"line_number": 413
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "9235bcf425e49c5749d9f52ed67b13717efda795",
"is_verified": false,
"line_number": 416
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "4439cc784aca22e5cdf33ed6656f5b8b99eaa44d",
"is_verified": false,
"line_number": 419
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "84cbfec871cf2b178ab90fcc1f442fa369e99a02",
"is_verified": false,
"line_number": 422
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "84a22bebcaaf61d613e397ca696c152d80aedf67",
"is_verified": false,
"line_number": 426
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "36149fc78b01f35bca00b832a55a4ea4f21995ae",
"is_verified": false,
"line_number": 430
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "ea0a3fae2d1694876f309429bfe231935a1e70f4",
"is_verified": false,
"line_number": 434
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "7e42e0804bd25c31e53b2f0871fa2b3551dc66d9",
"is_verified": false,
"line_number": 439
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "33e224ae0061fa6dc855702e88cad5e948136009",
"is_verified": false,
"line_number": 443
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "336d02c1e7195c5237197b5884304099ab15c6ba",
"is_verified": false,
"line_number": 446
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "b015b77432bd6d255596af7b2f552d8e8c91a7f7",
"is_verified": false,
"line_number": 450
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "c8fac131170b7bd907b0771e52111a64e940b2a5",
"is_verified": false,
"line_number": 453
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "befe96270355093c9f7fb4836d62f862ced86d2a",
"is_verified": false,
"line_number": 456
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "31277df63022917906a65ae6542742dc60d23b54",
"is_verified": false,
"line_number": 464
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "2fbe8ab30e5355ea9d7538aec4d6c869562a0ed8",
"is_verified": false,
"line_number": 468
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "03816f8548cdb479aadd0ed1610f90e001fef53f",
"is_verified": false,
"line_number": 471
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "bcc923e3a3bbb5c5c7c2f2b5e17bda91f8076652",
"is_verified": false,
"line_number": 475
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "f0661775df2ce05e6c49ee07d6003c0e831cda30",
"is_verified": false,
"line_number": 479
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "9bf200e3147a1d837839d6bf5b649716c1537cbb",
"is_verified": false,
"line_number": 483
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "4e65da49f5fe5560a904f41bd2519c712c48c151",
"is_verified": false,
"line_number": 486
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "2cf79101947343f62524a7ab71f313b66d694198",
"is_verified": false,
"line_number": 491
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "7bedcb999f1cafb154755766dcf512cbc27a2833",
"is_verified": false,
"line_number": 494
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "8ac9d9448e688e8f94e810f2c49fd9b728bd2041",
"is_verified": false,
"line_number": 537
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "05b85c0e6305e0bae00683ce171f23f02837787e",
"is_verified": false,
"line_number": 545
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "95b02c02e7cb902e9603042bf77d2ce3b47d7dd1",
"is_verified": false,
"line_number": 586
},
{
"type": "Base64 High Entropy String",
"filename": "pnpm-lock.yaml",
"hashed_secret": "9b0596f2945cdeab0d6fb2407275942153f87d9c",
"is_verified": false,
"line_number": 591
}
]
},
"generated_at": "2026-05-19T04:40:00Z"
}
+3
View File
@@ -0,0 +1,3 @@
{
"recommendations": ["svelte.svelte-vscode"]
}
+47
View File
@@ -0,0 +1,47 @@
# Svelte + TS + Vite
This template should help get you started developing with Svelte and TypeScript in Vite.
## Recommended IDE Setup
[VS Code](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode).
## Need an official Svelte framework?
Check out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also powered by Vite. Deploy anywhere with its serverless-first approach and adapt to various platforms, with out of the box support for TypeScript, SCSS, and Less, and easily-added support for mdsvex, GraphQL, PostCSS, Tailwind CSS, and more.
## Technical considerations
**Why use this over SvelteKit?**
- It brings its own routing solution which might not be preferable for some users.
- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
This template contains as little as possible to get started with Vite + TypeScript + Svelte, while taking into account the developer experience with regards to HMR and intellisense. It demonstrates capabilities on par with the other `create-vite` templates and is a good starting point for beginners dipping their toes into a Vite + Svelte project.
Should you later need the extended capabilities and extensibility provided by SvelteKit, the template has been structured similarly to SvelteKit so that it is easy to migrate.
**Why `global.d.ts` instead of `compilerOptions.types` inside `jsconfig.json` or `tsconfig.json`?**
Setting `compilerOptions.types` shuts out all other types not explicitly listed in the configuration. Using triple-slash references keeps the default TypeScript setting of accepting type information from the entire workspace, while also adding `svelte` and `vite/client` type information.
**Why include `.vscode/extensions.json`?**
Other templates indirectly recommend extensions via the README, but this file allows VS Code to prompt the user to install the recommended extension upon opening the project.
**Why enable `allowJs` in the TS template?**
While `allowJs: false` would indeed prevent the use of `.js` files in the project, it does not prevent the use of JavaScript syntax in `.svelte` files. In addition, it would force `checkJs: false`, bringing the worst of both worlds: not being able to guarantee the entire codebase is TypeScript, and also having worse typechecking for the existing JavaScript. In addition, there are valid use cases in which a mixed codebase may be relevant.
**Why is HMR not preserving my local component state?**
HMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/rixo/svelte-hmr#svelte-hmr).
If you have state that's important to retain within a component, consider creating an external store which would not be replaced by HMR.
```ts
// store.ts
// An extremely simple external store
import { writable } from 'svelte/store'
export default writable(0)
```
+13
View File
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>vite-tmp</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
+27
View File
@@ -0,0 +1,27 @@
{
"name": "duplicate-chess",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json",
"test": "vitest run --passWithNoTests",
"test:watch": "vitest"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^7.1.2",
"@tsconfig/svelte": "^5.0.8",
"@types/node": "^24.12.3",
"svelte": "^5.55.5",
"svelte-check": "^4.4.8",
"typescript": "~6.0.2",
"vite": "^8.0.12",
"vitest": "^4.1.6"
},
"dependencies": {
"chess.js": "^1.4.0"
}
}
+1025
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.3 KiB

+24
View File
@@ -0,0 +1,24 @@
<svg xmlns="http://www.w3.org/2000/svg">
<symbol id="bluesky-icon" viewBox="0 0 16 17">
<g clip-path="url(#bluesky-clip)"><path fill="#08060d" d="M7.75 7.735c-.693-1.348-2.58-3.86-4.334-5.097-1.68-1.187-2.32-.981-2.74-.79C.188 2.065.1 2.812.1 3.251s.241 3.602.398 4.13c.52 1.744 2.367 2.333 4.07 2.145-2.495.37-4.71 1.278-1.805 4.512 3.196 3.309 4.38-.71 4.987-2.746.608 2.036 1.307 5.91 4.93 2.746 2.72-2.746.747-4.143-1.747-4.512 1.702.189 3.55-.4 4.07-2.145.156-.528.397-3.691.397-4.13s-.088-1.186-.575-1.406c-.42-.19-1.06-.395-2.741.79-1.755 1.24-3.64 3.752-4.334 5.099"/></g>
<defs><clipPath id="bluesky-clip"><path fill="#fff" d="M.1.85h15.3v15.3H.1z"/></clipPath></defs>
</symbol>
<symbol id="discord-icon" viewBox="0 0 20 19">
<path fill="#08060d" d="M16.224 3.768a14.5 14.5 0 0 0-3.67-1.153c-.158.286-.343.67-.47.976a13.5 13.5 0 0 0-4.067 0c-.128-.306-.317-.69-.476-.976A14.4 14.4 0 0 0 3.868 3.77C1.546 7.28.916 10.703 1.231 14.077a14.7 14.7 0 0 0 4.5 2.306q.545-.748.965-1.587a9.5 9.5 0 0 1-1.518-.74q.191-.14.372-.293c2.927 1.369 6.107 1.369 8.999 0q.183.152.372.294-.723.437-1.52.74.418.838.963 1.588a14.6 14.6 0 0 0 4.504-2.308c.37-3.911-.63-7.302-2.644-10.309m-9.13 8.234c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.894 0 1.614.82 1.599 1.82.001 1-.705 1.82-1.6 1.82m5.91 0c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.893 0 1.614.82 1.599 1.82 0 1-.706 1.82-1.6 1.82"/>
</symbol>
<symbol id="documentation-icon" viewBox="0 0 21 20">
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="m15.5 13.333 1.533 1.322c.645.555.967.833.967 1.178s-.322.623-.967 1.179L15.5 18.333m-3.333-5-1.534 1.322c-.644.555-.966.833-.966 1.178s.322.623.966 1.179l1.534 1.321"/>
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M17.167 10.836v-4.32c0-1.41 0-2.117-.224-2.68-.359-.906-1.118-1.621-2.08-1.96-.599-.21-1.349-.21-2.848-.21-2.623 0-3.935 0-4.983.369-1.684.591-3.013 1.842-3.641 3.428C3 6.449 3 7.684 3 10.154v2.122c0 2.558 0 3.838.706 4.726q.306.383.713.671c.76.536 1.79.64 3.581.66"/>
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M3 10a2.78 2.78 0 0 1 2.778-2.778c.555 0 1.209.097 1.748-.047.48-.129.854-.503.982-.982.145-.54.048-1.194.048-1.749a2.78 2.78 0 0 1 2.777-2.777"/>
</symbol>
<symbol id="github-icon" viewBox="0 0 19 19">
<path fill="#08060d" fill-rule="evenodd" d="M9.356 1.85C5.05 1.85 1.57 5.356 1.57 9.694a7.84 7.84 0 0 0 5.324 7.44c.387.079.528-.168.528-.376 0-.182-.013-.805-.013-1.454-2.165.467-2.616-.935-2.616-.935-.349-.91-.864-1.143-.864-1.143-.71-.48.051-.48.051-.48.787.051 1.2.805 1.2.805.695 1.194 1.817.857 2.268.649.064-.507.27-.857.49-1.052-1.728-.182-3.545-.857-3.545-3.87 0-.857.31-1.558.8-2.104-.078-.195-.349-1 .077-2.078 0 0 .657-.208 2.14.805a7.5 7.5 0 0 1 1.946-.26c.657 0 1.328.092 1.946.26 1.483-1.013 2.14-.805 2.14-.805.426 1.078.155 1.883.078 2.078.502.546.799 1.247.799 2.104 0 3.013-1.818 3.675-3.558 3.87.284.247.528.714.528 1.454 0 1.052-.012 1.896-.012 2.156 0 .208.142.455.528.377a7.84 7.84 0 0 0 5.324-7.441c.013-4.338-3.48-7.844-7.773-7.844" clip-rule="evenodd"/>
</symbol>
<symbol id="social-icon" viewBox="0 0 20 20">
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M12.5 6.667a4.167 4.167 0 1 0-8.334 0 4.167 4.167 0 0 0 8.334 0"/>
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M2.5 16.667a5.833 5.833 0 0 1 8.75-5.053m3.837.474.513 1.035c.07.144.257.282.414.309l.93.155c.596.1.736.536.307.965l-.723.73a.64.64 0 0 0-.152.531l.207.903c.164.715-.213.991-.84.618l-.872-.52a.63.63 0 0 0-.577 0l-.872.52c-.624.373-1.003.094-.84-.618l.207-.903a.64.64 0 0 0-.152-.532l-.723-.729c-.426-.43-.289-.864.306-.964l.93-.156a.64.64 0 0 0 .412-.31l.513-1.034c.28-.562.735-.562 1.012 0"/>
</symbol>
<symbol id="x-icon" viewBox="0 0 19 19">
<path fill="#08060d" fill-rule="evenodd" d="M1.893 1.98c.052.072 1.245 1.769 2.653 3.77l2.892 4.114c.183.261.333.48.333.486s-.068.089-.152.183l-.522.593-.765.867-3.597 4.087c-.375.426-.734.834-.798.905a1 1 0 0 0-.118.148c0 .01.236.017.664.017h.663l.729-.83c.4-.457.796-.906.879-.999a692 692 0 0 0 1.794-2.038c.034-.037.301-.34.594-.675l.551-.624.345-.392a7 7 0 0 1 .34-.374c.006 0 .93 1.306 2.052 2.903l2.084 2.965.045.063h2.275c1.87 0 2.273-.003 2.266-.021-.008-.02-1.098-1.572-3.894-5.547-2.013-2.862-2.28-3.246-2.273-3.266.008-.019.282-.332 2.085-2.38l2-2.274 1.567-1.782c.022-.028-.016-.03-.65-.03h-.674l-.3.342a871 871 0 0 1-1.782 2.025c-.067.075-.405.458-.75.852a100 100 0 0 1-.803.91c-.148.172-.299.344-.99 1.127-.304.343-.32.358-.345.327-.015-.019-.904-1.282-1.976-2.808L6.365 1.85H1.8zm1.782.91 8.078 11.294c.772 1.08 1.413 1.973 1.425 1.984.016.017.241.02 1.05.017l1.03-.004-2.694-3.766L7.796 5.75 5.722 2.852l-1.039-.004-1.039-.004z" clip-rule="evenodd"/>
</symbol>
</svg>

After

Width:  |  Height:  |  Size: 4.9 KiB

+4
View File
@@ -0,0 +1,4 @@
<main>
<h1>Duplicate Chess</h1>
<p>Sandbox under construction.</p>
</main>
View File
+9
View File
@@ -0,0 +1,9 @@
import { mount } from 'svelte'
import './app.css'
import App from './App.svelte'
const app = mount(App, {
target: document.getElementById('app')!,
})
export default app
+2
View File
@@ -0,0 +1,2 @@
/** @type {import("@sveltejs/vite-plugin-svelte").SvelteConfig} */
export default {}
+20
View File
@@ -0,0 +1,20 @@
{
"extends": "@tsconfig/svelte/tsconfig.json",
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"target": "es2023",
"module": "esnext",
"types": ["svelte", "vite/client"],
"noEmit": true,
/**
* Typecheck JS in `.svelte` and `.js` files by default.
* Disable checkJs if you'd like to use dynamic types in JS.
* Note that setting allowJs false does not prevent the use
* of JS in `.svelte` files.
*/
"allowJs": true,
"checkJs": true,
"moduleDetection": "force"
},
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.svelte"]
}
+7
View File
@@ -0,0 +1,7 @@
{
"files": [],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
]
}
+24
View File
@@ -0,0 +1,24 @@
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"target": "es2023",
"lib": ["ES2023"],
"module": "esnext",
"types": ["node"],
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,
/* Linting */
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true
},
"include": ["vite.config.ts"]
}
+7
View File
@@ -0,0 +1,7 @@
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
// https://vite.dev/config/
export default defineConfig({
plugins: [svelte()],
})
+5
View File
@@ -0,0 +1,5 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: { environment: 'node', include: ['src/**/*.test.ts'] },
});