@devflow-tools/plugin-react 0.3.2 → 0.4.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/README.md +32 -0
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @devflow-tools/plugin-react
|
|
2
|
+
|
|
3
|
+
React 18 expert plugin for DevFlow — bug diagnosis, component refactoring, performance auditing, and hooks review.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @devflow-tools/plugin-react
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Workflows
|
|
12
|
+
|
|
13
|
+
| Workflow | Description |
|
|
14
|
+
|----------|-------------|
|
|
15
|
+
| `react:diagnose-bug` | Diagnose React bugs from error to fix |
|
|
16
|
+
| `react:new-feature` | Build new React features with tests |
|
|
17
|
+
| `react:audit-performance` | Audit rendering performance + optimize |
|
|
18
|
+
| `react:review-hooks` | Review hooks for rule violations + auto-fix |
|
|
19
|
+
| `react:refactor-component` | Refactor complex components safely |
|
|
20
|
+
| `react:new-component` | Create typed React components with tests |
|
|
21
|
+
|
|
22
|
+
## Usage with DevFlow CLI
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
devflow init
|
|
26
|
+
# Then in Claude Code:
|
|
27
|
+
# /devflow:react 分析项目中违反 react 最佳实践的地方
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## License
|
|
31
|
+
|
|
32
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devflow-tools/plugin-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"clean": "rm -rf dist"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@devflow-tools/sdk": "^0.
|
|
20
|
+
"@devflow-tools/sdk": "^0.4.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"typescript": "^5.5.0",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "c76bcf3a2bb8ac12b871738d6661979eb45090c6"
|
|
30
30
|
}
|