reactjsquality-check911 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/reactjsquality-check911.js +41 -0
- package/commands/coverage.js +117 -0
- package/commands/hooks.js +74 -0
- package/commands/init.js +227 -0
- package/commands/playwright.js +52 -0
- package/commands/quality.js +158 -0
- package/commands/scan.js +243 -0
- package/mcp-server/requirements.txt +1 -0
- package/mcp-server/server.py +61 -0
- package/mcp-server/tools/code_fixer.py +130 -0
- package/mcp-server/tools/component_scanner.py +47 -0
- package/mcp-server/tools/playwright_helper.py +78 -0
- package/mcp-server/tools/test_generator.py +119 -0
- package/package.json +44 -0
- package/scripts/setup-mcp.js +18 -0
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "reactjsquality-check911",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "GitHub Copilot agent for React/JS projects — enforces ESLint, Jest coverage, and Playwright tests on every commit and push",
|
|
5
|
+
"bin": {
|
|
6
|
+
"reactjsquality-check911": "./bin/reactjsquality-check911.js"
|
|
7
|
+
},
|
|
8
|
+
"scripts": {
|
|
9
|
+
"test": "echo \"No tests\" && exit 0",
|
|
10
|
+
"postinstall": "node scripts/setup-mcp.js"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"react",
|
|
14
|
+
"nextjs",
|
|
15
|
+
"vue",
|
|
16
|
+
"angular",
|
|
17
|
+
"eslint",
|
|
18
|
+
"jest",
|
|
19
|
+
"playwright",
|
|
20
|
+
"copilot",
|
|
21
|
+
"mcp",
|
|
22
|
+
"quality",
|
|
23
|
+
"git-hooks",
|
|
24
|
+
"frontend"
|
|
25
|
+
],
|
|
26
|
+
"author": "mamidi-santhosh",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=18.0.0"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"bin/",
|
|
33
|
+
"commands/",
|
|
34
|
+
"scripts/",
|
|
35
|
+
"config/",
|
|
36
|
+
"mcp-server/server.py",
|
|
37
|
+
"mcp-server/tools/*.py",
|
|
38
|
+
"mcp-server/requirements.txt"
|
|
39
|
+
],
|
|
40
|
+
"type": "commonjs",
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"commander": "^15.0.0"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const { execSync } = require("child_process");
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const fs = require("fs");
|
|
6
|
+
|
|
7
|
+
const serverPath = path.join(__dirname, "..", "mcp-server", "server.py");
|
|
8
|
+
|
|
9
|
+
// Install Python dependencies silently
|
|
10
|
+
try {
|
|
11
|
+
const req = path.join(__dirname, "..", "mcp-server", "requirements.txt");
|
|
12
|
+
if (fs.existsSync(req)) {
|
|
13
|
+
execSync(`pip install -r "${req}" -q`, { stdio: "pipe" });
|
|
14
|
+
}
|
|
15
|
+
} catch (_) {}
|
|
16
|
+
|
|
17
|
+
console.log("reactjsquality-check911 installed.");
|
|
18
|
+
console.log("Run `reactjsquality-check911 init` inside your React/JS project to get started.");
|