@constela/cli 0.5.30 → 0.5.36
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 +21 -21
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -39,22 +39,22 @@ constela compile <input> [options]
|
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
# Compile to stdout
|
|
42
|
-
constela compile app.json
|
|
42
|
+
constela compile app.constela.json
|
|
43
43
|
|
|
44
44
|
# Compile to file
|
|
45
|
-
constela compile app.json --out dist/app.compiled.json
|
|
45
|
+
constela compile app.constela.json --out dist/app.compiled.json
|
|
46
46
|
|
|
47
47
|
# Pretty-print output
|
|
48
|
-
constela compile app.json --pretty
|
|
48
|
+
constela compile app.constela.json --pretty
|
|
49
49
|
|
|
50
50
|
# JSON output for AI tools
|
|
51
|
-
constela compile app.json --json
|
|
51
|
+
constela compile app.constela.json --json
|
|
52
52
|
|
|
53
53
|
# Watch mode for development
|
|
54
|
-
constela compile app.json --watch
|
|
54
|
+
constela compile app.constela.json --watch
|
|
55
55
|
|
|
56
56
|
# Verbose output with timing
|
|
57
|
-
constela compile app.json --verbose
|
|
57
|
+
constela compile app.constela.json --verbose
|
|
58
58
|
# Output:
|
|
59
59
|
# [1/3] Validating schema... OK (2ms)
|
|
60
60
|
# [2/3] Analyzing semantics... OK (1ms)
|
|
@@ -62,9 +62,9 @@ constela compile app.json --verbose
|
|
|
62
62
|
# Compilation successful (5ms total)
|
|
63
63
|
|
|
64
64
|
# Debug information
|
|
65
|
-
constela compile app.json --debug
|
|
65
|
+
constela compile app.constela.json --debug
|
|
66
66
|
# Output:
|
|
67
|
-
# [DEBUG] Input file: app.json (1234 bytes)
|
|
67
|
+
# [DEBUG] Input file: app.constela.json (1234 bytes)
|
|
68
68
|
# [DEBUG] Parse time: 1ms
|
|
69
69
|
# [DEBUG] Validate pass: 15 nodes validated (2ms)
|
|
70
70
|
# ...
|
|
@@ -89,13 +89,13 @@ constela validate [input] [options]
|
|
|
89
89
|
|
|
90
90
|
```bash
|
|
91
91
|
# Validate single file
|
|
92
|
-
constela validate app.json
|
|
92
|
+
constela validate app.constela.json
|
|
93
93
|
|
|
94
94
|
# Validate all JSON files in directory
|
|
95
95
|
constela validate --all src/routes/
|
|
96
96
|
|
|
97
97
|
# JSON output for tooling
|
|
98
|
-
constela validate app.json --json
|
|
98
|
+
constela validate app.constela.json --json
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
**Error Output with Suggestions:**
|
|
@@ -130,13 +130,13 @@ constela inspect <input> [options]
|
|
|
130
130
|
|
|
131
131
|
```bash
|
|
132
132
|
# Show all program structure
|
|
133
|
-
constela inspect app.json
|
|
133
|
+
constela inspect app.constela.json
|
|
134
134
|
|
|
135
135
|
# Show only state
|
|
136
|
-
constela inspect app.json --state
|
|
136
|
+
constela inspect app.constela.json --state
|
|
137
137
|
|
|
138
138
|
# JSON output
|
|
139
|
-
constela inspect app.json --json
|
|
139
|
+
constela inspect app.constela.json --json
|
|
140
140
|
```
|
|
141
141
|
|
|
142
142
|
**Output:**
|
|
@@ -237,11 +237,11 @@ The CLI expects the following project structure:
|
|
|
237
237
|
```
|
|
238
238
|
project/
|
|
239
239
|
src/
|
|
240
|
-
pages/ # Page files (.json, .ts)
|
|
241
|
-
index.json # / route
|
|
242
|
-
about.json # /about route
|
|
240
|
+
pages/ # Page files (.constela.json, .ts)
|
|
241
|
+
index.constela.json # / route
|
|
242
|
+
about.constela.json # /about route
|
|
243
243
|
users/
|
|
244
|
-
[id].json # /users/:id route
|
|
244
|
+
[id].constela.json # /users/:id route
|
|
245
245
|
layouts/ # Layout files (optional)
|
|
246
246
|
default.json
|
|
247
247
|
docs.json
|
|
@@ -275,7 +275,7 @@ export default {
|
|
|
275
275
|
Add `--debug` to any compile command to see internal processing:
|
|
276
276
|
|
|
277
277
|
```bash
|
|
278
|
-
constela compile app.json --debug
|
|
278
|
+
constela compile app.constela.json --debug
|
|
279
279
|
```
|
|
280
280
|
|
|
281
281
|
**Debug output includes:**
|
|
@@ -320,13 +320,13 @@ Use `inspect` to understand your program without compilation:
|
|
|
320
320
|
|
|
321
321
|
```bash
|
|
322
322
|
# See state structure
|
|
323
|
-
constela inspect app.json --state
|
|
323
|
+
constela inspect app.constela.json --state
|
|
324
324
|
|
|
325
325
|
# See view tree
|
|
326
|
-
constela inspect app.json --view
|
|
326
|
+
constela inspect app.constela.json --view
|
|
327
327
|
|
|
328
328
|
# Get JSON for tooling
|
|
329
|
-
constela inspect app.json --json | jq '.state'
|
|
329
|
+
constela inspect app.constela.json --json | jq '.state'
|
|
330
330
|
```
|
|
331
331
|
|
|
332
332
|
### Browser DevTools
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constela/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.36",
|
|
4
4
|
"description": "CLI tools for Constela UI framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"commander": "^12.0.0",
|
|
22
|
-
"@constela/
|
|
23
|
-
"@constela/
|
|
24
|
-
"@constela/
|
|
22
|
+
"@constela/compiler": "0.14.0",
|
|
23
|
+
"@constela/start": "1.8.14",
|
|
24
|
+
"@constela/core": "0.15.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^20.10.0",
|