diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..353a79b --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,2 @@ +npm run format +npm run lint diff --git a/.mcp.json b/.mcp.json new file mode 100644 index 0000000..c54fcd3 --- /dev/null +++ b/.mcp.json @@ -0,0 +1,8 @@ +{ + "mcpServers": { + "chrome-devtools": { + "command": "npx", + "args": ["-y", "chrome-devtools-mcp@latest"] + } + } +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 6107d1d..b9dab6a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "web/" ], "devDependencies": { + "husky": "^9.1.7", "vite": "^8.0.0" } }, @@ -3834,6 +3835,22 @@ "node": ">=18.18.0" } }, + "node_modules/husky": { + "version": "9.1.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", + "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", + "dev": true, + "license": "MIT", + "bin": { + "husky": "bin.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, "node_modules/iconv-lite": { "version": "0.7.2", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz", diff --git a/package.json b/package.json index 19f083e..3aaa16d 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "web/" ], "devDependencies": { + "husky": "^9.1.7", "vite": "^8.0.0" }, "scripts": { @@ -16,6 +17,7 @@ "codegen": "npm run codegen --workspaces --if-present", "build": "npm run build --workspaces --if-present", "lint": "npm run lint --workspaces --if-present", - "test": "npm run test --workspaces --if-present" + "test": "npm run test --workspaces --if-present", + "prepare": "husky" } } diff --git a/web/index.html b/web/index.html index 8b574d9..4c45aa7 100644 --- a/web/index.html +++ b/web/index.html @@ -2,9 +2,25 @@ - Game Gallery + + + + + + + + + + + + + +