@rivi-software/radiotools-sdk-generator 0.2.0 → 0.2.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 +26 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# @rivi-software/radiotools-sdk-generator
|
|
2
|
+
|
|
3
|
+
CLI that emits the RadioTools SDKs (framework bindings, language stubs and OpenAPI) from [`@rivi-software/radiotools-contract`](../contract).
|
|
4
|
+
|
|
5
|
+
The generator writes into the `packages/sdk-*` directories of the [radiotools-sdk monorepo](https://github.com/RIVI-Software/radiotools-sdk), so it is meant to be run from a checkout of that repository.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
bun run generate # all targets
|
|
11
|
+
bun run --filter @rivi-software/radiotools-sdk-generator generate --target python # one target
|
|
12
|
+
bun run --filter @rivi-software/radiotools-sdk-generator list-targets
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Targets
|
|
16
|
+
|
|
17
|
+
`react`, `vue`, `svelte`, `next`, `python`, `go`, `csharp`, `ruby`, `php`, `kotlin`, `swift`, `openapi`. Run `list` for the current set.
|
|
18
|
+
|
|
19
|
+
| Flag | Description |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| `--target <id\|all>` | Which target to generate (default `all`) |
|
|
22
|
+
| `--dry-run` | Report what would be written without touching files |
|
|
23
|
+
|
|
24
|
+
## Adding a target
|
|
25
|
+
|
|
26
|
+
Add a module under `src/targets/`, register it in `src/engine.ts`, and add the matching `packages/sdk-<name>/` output directory.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivi-software/radiotools-sdk-generator",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Generate RadioTools SDKs for multiple frameworks from @rivi-software/radiotools-contract",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|
|
31
|
-
"url": "https://github.com/
|
|
31
|
+
"url": "https://github.com/rivi-software/radiotools-sdk.git",
|
|
32
32
|
"directory": "packages/generator"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|