@colrealpro/react-luau-doctor 0.17.0 → 0.17.1
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 +20 -12
- package/dist/cli.js +93 -344
- package/dist/cli.js.map +13 -13
- package/docs/ci.md +11 -15
- package/docs/cli.md +4 -4
- package/docs/development.md +18 -17
- package/docs/rules.md +1 -1
- package/package.json +6 -7
- package/action.yml +0 -71
- package/dist/runtime-lock.json +0 -29
package/README.md
CHANGED
|
@@ -4,31 +4,39 @@ Find React-Luau mistakes before they reach your Roblox UI.
|
|
|
4
4
|
|
|
5
5
|
React-Luau Doctor checks `.lua` and `.luau` source files for hook mistakes, missing cleanup, render side effects, and avoidable rerenders. Findings include a category, severity, source location, and repair guidance. The `why` command explains individual findings and shows suggested changes where available.
|
|
6
6
|
|
|
7
|
-
This
|
|
7
|
+
This beta CLI runs with Bun and analyzes React-Luau source on your computer or CI runner. It does not run inside Roblox Studio, analyze JavaScript/TypeScript React, or edit your code automatically.
|
|
8
8
|
|
|
9
9
|
## Get started
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
React-Luau Doctor requires [Bun](https://bun.com/) 1.4.0 or newer. Run it directly from npm with either Bun or npm:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
bun link
|
|
14
|
+
bunx @colrealpro/react-luau-doctor .
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx @colrealpro/react-luau-doctor .
|
|
20
19
|
```
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
`npx` still requires Bun to be installed because the React-Luau Doctor CLI itself runs with Bun.
|
|
22
|
+
|
|
23
|
+
For a reusable `react-luau-doctor` command, install it globally with Bun:
|
|
23
24
|
|
|
24
25
|
```bash
|
|
26
|
+
bun add --global @colrealpro/react-luau-doctor
|
|
25
27
|
react-luau-doctor .
|
|
26
28
|
react-luau-doctor . --verbose
|
|
27
29
|
```
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
To work on React-Luau Doctor itself, clone the repository and use Bun for development:
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
```bash
|
|
34
|
+
git clone https://github.com/colrealpro/react-luau-doctor.git
|
|
35
|
+
cd react-luau-doctor
|
|
36
|
+
bun install --frozen-lockfile
|
|
37
|
+
bun run build
|
|
38
|
+
bun run ci
|
|
39
|
+
```
|
|
32
40
|
|
|
33
41
|
## Read a finding
|
|
34
42
|
|
|
@@ -87,7 +95,7 @@ From your Roblox repository:
|
|
|
87
95
|
react-luau-doctor ci install --yes
|
|
88
96
|
```
|
|
89
97
|
|
|
90
|
-
Commit the generated
|
|
98
|
+
Commit the generated `.github/workflows/react-luau-doctor.yml`. The workflow pins the exact npm version of React-Luau Doctor that generated it and runs that package with Bun, so your repository does not need to vendor the analyzer or its parser assets.
|
|
91
99
|
|
|
92
100
|
By default, pull requests receive advisory findings without failing the check. Enable a gate with:
|
|
93
101
|
|