aerocoding 0.0.3 → 0.1.1
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 +127 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1034 -0
- package/dist/index.js.map +1 -0
- package/package.json +59 -17
package/README.md
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# AeroCoding CLI
|
|
2
|
+
|
|
3
|
+
Generate production-ready code from your UML diagrams.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g aerocoding
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# 1. Login (once)
|
|
15
|
+
aerocoding login
|
|
16
|
+
|
|
17
|
+
# 2. Initialize project (once per project)
|
|
18
|
+
aerocoding init
|
|
19
|
+
|
|
20
|
+
# 3. Generate code (anytime)
|
|
21
|
+
aerocoding generate
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Commands
|
|
25
|
+
|
|
26
|
+
### `aerocoding login`
|
|
27
|
+
|
|
28
|
+
Authenticate with your AeroCoding account. Opens browser for secure OAuth authentication.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
aerocoding login
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### `aerocoding init`
|
|
35
|
+
|
|
36
|
+
Interactive wizard to configure code generation for your project. Creates a `.aerocodingrc.json` config file.
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
aerocoding init
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Options:
|
|
43
|
+
- `-p, --project <id>` - Skip project selection
|
|
44
|
+
- `-f, --force` - Overwrite existing config
|
|
45
|
+
|
|
46
|
+
### `aerocoding generate`
|
|
47
|
+
|
|
48
|
+
Generate code based on your config file or CLI options.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# Using config file (recommended)
|
|
52
|
+
aerocoding generate
|
|
53
|
+
|
|
54
|
+
# With CLI overrides
|
|
55
|
+
aerocoding generate --no-testing
|
|
56
|
+
aerocoding generate -y # Skip confirmation
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Options:
|
|
60
|
+
- `-p, --project <id>` - Project ID (overrides config)
|
|
61
|
+
- `-t, --targets <targets...>` - Generation targets
|
|
62
|
+
- `-o, --output <dir>` - Output directory (default: `./generated`)
|
|
63
|
+
- `--backend-preset <preset>` - Backend architecture preset
|
|
64
|
+
- `--frontend-preset <preset>` - Frontend architecture preset
|
|
65
|
+
- `--backend-layers <layers...>` - Backend layers to generate
|
|
66
|
+
- `--frontend-layers <layers...>` - Frontend layers to generate
|
|
67
|
+
- `--no-validations` - Exclude validation code
|
|
68
|
+
- `--no-comments` - Exclude comments
|
|
69
|
+
- `--no-annotations` - Exclude annotations/decorators
|
|
70
|
+
- `--no-logging` - Exclude logging
|
|
71
|
+
- `--no-testing` - Exclude test files
|
|
72
|
+
- `--validation-lib <lib>` - Validation library (e.g., `fluentvalidation`, `zod`)
|
|
73
|
+
- `-y, --yes` - Skip confirmation prompt
|
|
74
|
+
|
|
75
|
+
### `aerocoding whoami`
|
|
76
|
+
|
|
77
|
+
Show current authenticated user.
|
|
78
|
+
|
|
79
|
+
### `aerocoding logout`
|
|
80
|
+
|
|
81
|
+
Clear stored credentials.
|
|
82
|
+
|
|
83
|
+
## Config File
|
|
84
|
+
|
|
85
|
+
The `aerocoding init` command creates a `.aerocodingrc.json` file:
|
|
86
|
+
|
|
87
|
+
```json
|
|
88
|
+
{
|
|
89
|
+
"$schema": "https://aerocoding.app/schemas/aerocodingrc.json",
|
|
90
|
+
"project": "your-project-id",
|
|
91
|
+
"output": "./generated",
|
|
92
|
+
"backend": {
|
|
93
|
+
"preset": "clean-architecture-dotnet",
|
|
94
|
+
"layers": ["entities", "dtos", "validators", "repositories"]
|
|
95
|
+
},
|
|
96
|
+
"frontend": {
|
|
97
|
+
"preset": "feature-based",
|
|
98
|
+
"layers": ["models", "services"]
|
|
99
|
+
},
|
|
100
|
+
"codeStyle": {
|
|
101
|
+
"includeValidations": true,
|
|
102
|
+
"includeComments": true,
|
|
103
|
+
"includeAnnotations": true,
|
|
104
|
+
"includeLogging": true,
|
|
105
|
+
"includeTesting": false
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
CLI arguments override config file values.
|
|
111
|
+
|
|
112
|
+
## Security
|
|
113
|
+
|
|
114
|
+
Credentials are stored securely in your OS credential manager:
|
|
115
|
+
|
|
116
|
+
- **macOS**: Keychain
|
|
117
|
+
- **Windows**: Credential Manager
|
|
118
|
+
- **Linux**: Secret Service API
|
|
119
|
+
|
|
120
|
+
## Links
|
|
121
|
+
|
|
122
|
+
- [Website](https://aerocoding.app)
|
|
123
|
+
- [Documentation](https://docs.aerocoding.app)
|
|
124
|
+
|
|
125
|
+
## License
|
|
126
|
+
|
|
127
|
+
MIT
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|