achscli 1.3.5
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.es.md +75 -0
- package/README.md +75 -0
- package/dist/bin.js +42249 -0
- package/dist/bin.js.map +7 -0
- package/package.json +37 -0
- package/templates/generate/nestjs/controller.hbs +30 -0
- package/templates/generate/nestjs/decorator.hbs +10 -0
- package/templates/generate/nestjs/docs-controller.hbs +19 -0
- package/templates/generate/nestjs/dto.hbs +17 -0
- package/templates/generate/nestjs/dynamic-module.hbs +36 -0
- package/templates/generate/nestjs/entity.hbs +23 -0
- package/templates/generate/nestjs/filter.hbs +52 -0
- package/templates/generate/nestjs/guard.hbs +34 -0
- package/templates/generate/nestjs/http-exception.hbs +11 -0
- package/templates/generate/nestjs/interceptor.hbs +40 -0
- package/templates/generate/nestjs/interface.hbs +9 -0
- package/templates/generate/nestjs/middleware.hbs +24 -0
- package/templates/generate/nestjs/module.hbs +9 -0
- package/templates/generate/nestjs/param-decorator.hbs +15 -0
- package/templates/generate/nestjs/repository.hbs +35 -0
- package/templates/generate/nestjs/service.hbs +24 -0
- package/templates/generate/nestjs/spec-controller.hbs +35 -0
- package/templates/generate/nestjs/spec-repository.hbs +32 -0
- package/templates/generate/nestjs/spec-service.hbs +28 -0
- package/templates/generate/nestjs/spec.hbs +8 -0
package/README.es.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# achscli
|
|
2
|
+
|
|
3
|
+
## Uso de linea de comando
|
|
4
|
+
|
|
5
|
+
### new
|
|
6
|
+
|
|
7
|
+
Sintaxis:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
achscli new <framework> <name> [options]
|
|
11
|
+
achscli n <framework> <name> [options]
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Frameworks:
|
|
15
|
+
|
|
16
|
+
- `nestjs` (alias: `nt`)
|
|
17
|
+
- `iris` (alias: `ir`)
|
|
18
|
+
|
|
19
|
+
Opciones:
|
|
20
|
+
|
|
21
|
+
- `-p, --path <path>` - Ruta base donde se creara el proyecto
|
|
22
|
+
- `--force` - Sobrescribe archivos existentes
|
|
23
|
+
- `--install` - Instala dependencias despues de crear el proyecto (nestjs, react)
|
|
24
|
+
|
|
25
|
+
Notas:
|
|
26
|
+
|
|
27
|
+
- Con `--force`, NestJS/Iris clonan en un directorio temporal cuando el destino no esta vacio y luego copian al path final.
|
|
28
|
+
|
|
29
|
+
Ejemplos:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
achscli new nestjs mi-api
|
|
33
|
+
achscli n ir mi-proyecto
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### generate
|
|
37
|
+
|
|
38
|
+
Sintaxis:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
achscli generate <framework> <schematic> [options] <name>
|
|
42
|
+
achscli g <framework|alias> <schematic|alias> [options] <name>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### NestJS
|
|
46
|
+
|
|
47
|
+
Schematics:
|
|
48
|
+
|
|
49
|
+
- `controller` (alias: `co`)
|
|
50
|
+
- `service` (alias: `s`)
|
|
51
|
+
- `module` (alias: `mo`)
|
|
52
|
+
- `dto` (alias: `d`)
|
|
53
|
+
- `interface` (alias: `itf`)
|
|
54
|
+
- `repository` (alias: `repo`)
|
|
55
|
+
- `decorator` (alias: `dec`)
|
|
56
|
+
- `entity` (alias: `ent`)
|
|
57
|
+
- `filter` (alias: `f`)
|
|
58
|
+
- `guard` (alias: `gu`)
|
|
59
|
+
- `httpExc` (alias: `he`)
|
|
60
|
+
- `interceptor` (alias: `itc`)
|
|
61
|
+
- `middleware` (alias: `mi`)
|
|
62
|
+
- `dymodule` (alias: `dmo`)
|
|
63
|
+
- `paramdecorator` (alias: `pdec`)
|
|
64
|
+
- `vitest` (alias: `vt`)
|
|
65
|
+
|
|
66
|
+
Opciones:
|
|
67
|
+
|
|
68
|
+
- `-p, --path <path>` - Ruta base (default: `src`)
|
|
69
|
+
- `--flat` - No crea carpeta para el feature
|
|
70
|
+
- `--dry-run` - No escribe archivos, solo muestra acciones
|
|
71
|
+
- `--force` - Sobrescribe archivos existentes
|
|
72
|
+
- `--no-spec` - No genera `*.spec.ts` (solo en schematics que lo soportan)
|
|
73
|
+
- `--no-docs` - No genera `*.docs.ts` (solo en schematics que lo soportan)
|
|
74
|
+
- `-m, --module <module>` - Modulo en el que registrar (solo en schematics que lo soportan)
|
|
75
|
+
- `--skip-import` - No registra en el modulo (solo en schematics que lo soportan)
|
package/README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# achscli
|
|
2
|
+
|
|
3
|
+
## Command line usage
|
|
4
|
+
|
|
5
|
+
### new
|
|
6
|
+
|
|
7
|
+
Syntax:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
achscli new <framework> <name> [options]
|
|
11
|
+
achscli n <framework> <name> [options]
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Frameworks:
|
|
15
|
+
|
|
16
|
+
- `nestjs` (alias: `nt`)
|
|
17
|
+
- `iris` (alias: `ir`)
|
|
18
|
+
|
|
19
|
+
Options:
|
|
20
|
+
|
|
21
|
+
- `-p, --path <path>` - Base path where project will be created
|
|
22
|
+
- `--force` - Overwrite existing files
|
|
23
|
+
- `--install` - Install dependencies after project creation (nestjs, react)
|
|
24
|
+
|
|
25
|
+
Notes:
|
|
26
|
+
|
|
27
|
+
- With `--force`, NestJS/Iris clone into a temp dir when the target is not empty, then copy to the final path.
|
|
28
|
+
|
|
29
|
+
Examples:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
achscli new nestjs my-api
|
|
33
|
+
achscli n ir my-project
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### generate
|
|
37
|
+
|
|
38
|
+
Syntax:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
achscli generate <framework> <schematic> [options] <name>
|
|
42
|
+
achscli g <framework|alias> <schematic|alias> [options] <name>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### NestJS
|
|
46
|
+
|
|
47
|
+
Schematics:
|
|
48
|
+
|
|
49
|
+
- `controller` (alias: `co`)
|
|
50
|
+
- `service` (alias: `s`)
|
|
51
|
+
- `module` (alias: `mo`)
|
|
52
|
+
- `dto` (alias: `d`)
|
|
53
|
+
- `interface` (alias: `itf`)
|
|
54
|
+
- `repository` (alias: `repo`)
|
|
55
|
+
- `decorator` (alias: `dec`)
|
|
56
|
+
- `entity` (alias: `ent`)
|
|
57
|
+
- `filter` (alias: `f`)
|
|
58
|
+
- `guard` (alias: `gu`)
|
|
59
|
+
- `httpExc` (alias: `he`)
|
|
60
|
+
- `interceptor` (alias: `itc`)
|
|
61
|
+
- `middleware` (alias: `mi`)
|
|
62
|
+
- `dymodule` (alias: `dmo`)
|
|
63
|
+
- `paramdecorator` (alias: `pdec`)
|
|
64
|
+
- `vitest` (alias: `vt`)
|
|
65
|
+
|
|
66
|
+
Options:
|
|
67
|
+
|
|
68
|
+
- `-p, --path <path>` - Base path (default: `src`)
|
|
69
|
+
- `--flat` - Do not create a folder for the feature
|
|
70
|
+
- `--dry-run` - Do not write files, only print actions
|
|
71
|
+
- `--force` - Overwrite existing files
|
|
72
|
+
- `--no-spec` - Do not generate `*.spec.ts` (supported schematics only)
|
|
73
|
+
- `--no-docs` - Do not generate `*.docs.ts` (supported schematics only)
|
|
74
|
+
- `-m, --module <module>` - Module to register in (supported schematics only)
|
|
75
|
+
- `--skip-import` - Do not register in the module (supported schematics only)
|