supatool 0.1.0 → 0.1.2
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 +7 -3
- package/package.json +3 -3
package/README.md
CHANGED
@@ -23,13 +23,14 @@ npx supabase gen types typescript --project-id your_project_ref --schema public
|
|
23
23
|
2. Auto-generate CRUD code
|
24
24
|
|
25
25
|
```
|
26
|
-
supatool
|
26
|
+
supatool crud
|
27
27
|
```
|
28
28
|
- Output: `src/integrations/supabase/crud-autogen/`
|
29
29
|
|
30
30
|
3. Subcommands
|
31
31
|
|
32
|
-
See: [src/bin/helptext.ts](./src/bin/helptext.ts)
|
32
|
+
See: [src/bin/helptext.ts](./src/bin/helptext.ts) (for development)
|
33
|
+
or [dist/bin/helptext.js](./dist/bin/helptext.js) (for npm package)
|
33
34
|
|
34
35
|
For details on how to specify input/output folders, please refer to this as well.
|
35
36
|
|
@@ -37,6 +38,9 @@ For details on how to specify input/output folders, please refer to this as well
|
|
37
38
|
|
38
39
|
You can add a task to `.vscode/tasks.json` to run both commands at once:
|
39
40
|
|
41
|
+
> **Note:**
|
42
|
+
> After installing supatool, please restart VSCode (or your terminal) before using the task, so that the new command is recognized.
|
43
|
+
|
40
44
|
```json
|
41
45
|
{
|
42
46
|
"version": "2.0.0",
|
@@ -51,7 +55,7 @@ You can add a task to `.vscode/tasks.json` to run both commands at once:
|
|
51
55
|
}
|
52
56
|
```
|
53
57
|
|
54
|
-
## Example: How to use generated CRUD code in your
|
58
|
+
## Example: How to use generated CRUD code in your apps
|
55
59
|
|
56
60
|
CRUD utility files for the `apps` table will be generated in `src/integrations/supabase/crud-autogen/` by default.
|
57
61
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "supatool",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.2",
|
4
4
|
"description": "A CLI tool that automatically generates TypeScript CRUD code from Supabase type definitions.",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -27,11 +27,11 @@
|
|
27
27
|
"author": "IdeaGarage",
|
28
28
|
"license": "MIT",
|
29
29
|
"dependencies": {
|
30
|
+
"commander": "^13.1.0",
|
30
31
|
"tsx": "^4.7.0",
|
31
32
|
"typescript": "^5.0.0"
|
32
33
|
},
|
33
34
|
"devDependencies": {
|
34
|
-
"@types/node": "^20.17.30"
|
35
|
-
"commander": "^13.1.0"
|
35
|
+
"@types/node": "^20.17.30"
|
36
36
|
}
|
37
37
|
}
|