@aponiajs/cli 0.3.9 → 0.3.11
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 +13 -15
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,20 +7,20 @@ The Bun-native Aponia command-line interface.
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
bun add --
|
|
10
|
+
bun add --global @aponiajs/cli
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Commands
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
aponia new my-api
|
|
17
|
+
aponia n my-api --dry-run
|
|
18
|
+
aponia new my-api --skip-install
|
|
19
|
+
aponia generate controller users
|
|
20
|
+
aponia g s users
|
|
21
|
+
aponia g resource users --type rest
|
|
22
|
+
aponia g router health --no-spec
|
|
23
|
+
aponia --version
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
The generate command supports the complete built-in Nest schematic catalog:
|
|
@@ -34,12 +34,10 @@ registered in the nearest Aponia module unless `--skip-import` is used.
|
|
|
34
34
|
Resource transports include REST, GraphQL code-first, GraphQL schema-first,
|
|
35
35
|
microservices, and WebSockets.
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
[`create-aponia`](https://www.npmjs.com/package/create-aponia)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
bun create aponia my-api
|
|
42
|
-
```
|
|
37
|
+
The separately published
|
|
38
|
+
[`create-aponia`](https://www.npmjs.com/package/create-aponia) package delegates
|
|
39
|
+
to the same generator. The documented CLI workflow uses the globally installed
|
|
40
|
+
`aponia` command consistently.
|
|
43
41
|
|
|
44
42
|
[npm package](https://www.npmjs.com/package/@aponiajs/cli) ·
|
|
45
43
|
[complete CLI guide](../../docs/cli.md) ·
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import findFiles from "fast-glob";
|
|
|
7
7
|
import { singularize } from "inflection";
|
|
8
8
|
import { IndentationText, Node, Project, QuoteKind, SyntaxKind } from "ts-morph";
|
|
9
9
|
//#region package.json
|
|
10
|
-
var version = "0.3.
|
|
10
|
+
var version = "0.3.11";
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/arguments.ts
|
|
13
13
|
const generateSchematics = [
|