@kizunajs/kotlin 2.0.0-beta.2 → 2.0.0-beta.21
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 +18 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/{generator-BvNpSarY.mjs → generator-DHi8XSWb.mjs} +306 -78
- package/dist/{generator-s2pn7vqP.cjs → generator-Dft2DL-3.cjs} +310 -76
- package/dist/index.cjs +39 -8
- package/dist/index.d.cts +22 -34
- package/dist/index.d.mts +22 -34
- package/dist/index.mjs +38 -9
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -10,8 +10,25 @@ pnpm add -D @kizunajs/kotlin
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
+
Name the client in your config, and `kizuna generate` writes it with the rest:
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { kotlinClient } from '@kizunajs/kotlin';
|
|
17
|
+
|
|
18
|
+
export default defineConfig({
|
|
19
|
+
routes,
|
|
20
|
+
clients: [
|
|
21
|
+
kotlinClient({
|
|
22
|
+
output: '../android/app/src/main/kotlin/com/example/APIClient.kt',
|
|
23
|
+
namespace: 'API',
|
|
24
|
+
package: 'com.example',
|
|
25
|
+
}),
|
|
26
|
+
],
|
|
27
|
+
});
|
|
28
|
+
```
|
|
29
|
+
|
|
13
30
|
```sh
|
|
14
|
-
kizuna
|
|
31
|
+
kizuna generate
|
|
15
32
|
```
|
|
16
33
|
|
|
17
34
|
## Documentation
|
package/dist/cli.cjs
CHANGED
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as generateKotlinClient } from "./generator-
|
|
2
|
+
import { t as generateKotlinClient } from "./generator-DHi8XSWb.mjs";
|
|
3
3
|
import { mkdirSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { dirname, resolve } from "node:path";
|
|
5
5
|
import { parseArgs } from "node:util";
|