@maligator/cli 0.1.0-alpha.6 → 0.1.0-alpha.7
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 +17 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -50,12 +50,19 @@ maligator init
|
|
|
50
50
|
maligator doctor [--verbose] [--target rust-triple]
|
|
51
51
|
maligator build [entry] [--production] [--artifact directory] [--target rust-triple] [--config path]
|
|
52
52
|
maligator run [entry] [--config path] [-- args...]
|
|
53
|
+
maligator dev [entry] [--config path] [-- args...]
|
|
53
54
|
maligator test [path ...] [--run name] [--shuffle [seed]] [--repeat count] [--bail]
|
|
54
55
|
```
|
|
55
56
|
|
|
56
57
|
Run commands from the project root. Maligator does not search parent directories
|
|
57
58
|
for configuration.
|
|
58
59
|
|
|
60
|
+
`run` and `dev` use the runtime embedded in the platform package for the supported
|
|
61
|
+
single-process, asset-free, Intl-disabled development profile, so they do not need
|
|
62
|
+
a local native toolchain. `dev` retains compiler identities between edits and
|
|
63
|
+
restarts a fresh application VM after every successful rebuild. Build failures keep
|
|
64
|
+
the watcher alive for recovery on the next edit.
|
|
65
|
+
|
|
59
66
|
## Testing
|
|
60
67
|
|
|
61
68
|
`maligator test` discovers conventional JavaScript and erasable-TypeScript test
|
|
@@ -143,11 +150,14 @@ package declarations explicitly:
|
|
|
143
150
|
|
|
144
151
|
## Build cache
|
|
145
152
|
|
|
146
|
-
Normal `maligator build` and `maligator
|
|
147
|
-
|
|
153
|
+
Normal `maligator build`, `maligator run`, and `maligator test` commands share a
|
|
154
|
+
content-addressed portable VM definition store. On a valid hit, Maligator skips
|
|
148
155
|
parsing, module-graph construction, semantic analysis, optimization, register
|
|
149
|
-
allocation, and VM lowering
|
|
150
|
-
the restored definition
|
|
156
|
+
allocation, and VM lowering. For the single-process, asset-free, Intl-disabled
|
|
157
|
+
development profile, `run` executes the restored definition with the isolated
|
|
158
|
+
runtime embedded in the platform CLI; it does not generate C or invoke a native
|
|
159
|
+
toolchain. Normal and production `build` commands emit
|
|
160
|
+
native translation units from the same restored definition. Those units and the native driver are
|
|
151
161
|
compiled into independently content-addressed objects, so unchanged objects can
|
|
152
162
|
be relinked without repeating C compilation. The final link still runs, and
|
|
153
163
|
native runtime and Rust archives remain separately content-addressed.
|
|
@@ -247,7 +257,9 @@ explicitly:
|
|
|
247
257
|
|
|
248
258
|
## Build toolchain
|
|
249
259
|
|
|
250
|
-
|
|
260
|
+
`maligator test` and supported `maligator run` profiles use the development runtime
|
|
261
|
+
embedded in the platform CLI and do not require a native toolchain. Native `build`
|
|
262
|
+
commands—and development runs using bundled assets, Intl, or multiprocessing—require:
|
|
251
263
|
|
|
252
264
|
- A C23 compiler and archive tool: Apple clang, clang 19 or newer, or GCC 15 or
|
|
253
265
|
newer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maligator/cli",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.7",
|
|
4
4
|
"description": "Ahead-of-time JavaScript compiler and native runtime",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/dirkdev98/maligator#readme",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
|
-
"@maligator/cli-darwin-arm64": "0.1.0-alpha.
|
|
48
|
+
"@maligator/cli-darwin-arm64": "0.1.0-alpha.7"
|
|
49
49
|
}
|
|
50
50
|
}
|