elit 3.5.4 → 3.5.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.md CHANGED
@@ -218,6 +218,7 @@ Main commands:
218
218
  ```bash
219
219
  npx elit dev
220
220
  npx elit build --entry ./src/main.ts --out-dir dist
221
+ npx elit --version
221
222
  npx elit preview
222
223
  npx elit test
223
224
  npx elit desktop ./src/main.ts
@@ -234,6 +235,8 @@ npx elit desktop wapk run ./app.wapk
234
235
 
235
236
  Useful flags:
236
237
 
238
+ - `elit --version`
239
+ - `elit -v`
237
240
  - `elit dev --port 3000 --host 0.0.0.0 --no-open`
238
241
  - `elit build --entry ./src/main.ts --out-dir dist --format esm --sourcemap`
239
242
  - `elit preview --root dist --base-path /app`
@@ -946,7 +949,7 @@ The package also exports `elit/test`, `elit/test-runtime`, and `elit/test-report
946
949
 
947
950
  Latest release notes live in [CHANGELOG.md](CHANGELOG.md).
948
951
 
949
- Highlights in `v3.5.4`:
952
+ Highlights in `v3.5.5`:
950
953
 
951
954
  - Added `elit pm` for detached background process management of shell commands, file targets, and WAPK apps.
952
955
  - Added `pm.apps[]` and `pm.dataDir` in `elit.config.*` for config-first process manager workflows.
package/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;GAEG;AAiIH,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,iBAqD1C;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,iBA2D5C;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,iBAoF9C;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,iBA8C3C;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,iBAO9C;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,iBAO7C;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,iBAO7C;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,iBAOzC;AAEH,wBAAsB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,iBAOzC"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;GAEG;AAkIH,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,iBAqD1C;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,iBA2D5C;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,iBAoF9C;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,iBA8C3C;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,iBAO9C;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,iBAO7C;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,iBAO7C;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,iBAOzC;AAEH,wBAAsB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,iBAOzC"}
package/dist/cli.js CHANGED
@@ -59400,7 +59400,7 @@ var require_package3 = __commonJS({
59400
59400
  "package.json"(exports2, module2) {
59401
59401
  module2.exports = {
59402
59402
  name: "elit",
59403
- version: "3.5.4",
59403
+ version: "3.5.5",
59404
59404
  description: "Optimized lightweight library for creating DOM elements with reactive state",
59405
59405
  main: "dist/index.js",
59406
59406
  module: "dist/index.mjs",
@@ -80880,6 +80880,7 @@ async function runPmCommand(args) {
80880
80880
 
80881
80881
  // src/cli.ts
80882
80882
  var COMMANDS = ["dev", "build", "preview", "test", "desktop", "mobile", "native", "pm", "wapk", "help", "version"];
80883
+ var VERSION_FLAGS = /* @__PURE__ */ new Set(["--version", "-v"]);
80883
80884
  function setupShutdownHandlers(closeFunc) {
80884
80885
  const shutdown = async () => {
80885
80886
  console.log("\n[Server] Shutting down...");
@@ -80924,7 +80925,7 @@ function parseArgs(args, handlers, options) {
80924
80925
  }
80925
80926
  async function main() {
80926
80927
  const args = process.argv.slice(2);
80927
- const command = args[0] || "help";
80928
+ const command = VERSION_FLAGS.has(args[0] || "") ? "version" : args[0] || "help";
80928
80929
  if (!COMMANDS.includes(command)) {
80929
80930
  console.error(`Unknown command: ${command}`);
80930
80931
  printHelp();
@@ -81371,6 +81372,8 @@ Elit - Modern Web Development Toolkit
81371
81372
 
81372
81373
  Usage:
81373
81374
  elit <command> [options]
81375
+ elit --version
81376
+ elit -v
81374
81377
 
81375
81378
  Commands:
81376
81379
  dev Start development server
@@ -81385,6 +81388,9 @@ Commands:
81385
81388
  version Show version number
81386
81389
  help Show this help message
81387
81390
 
81391
+ Global Flags:
81392
+ -v, --version Show version number
81393
+
81388
81394
  Dev Options:
81389
81395
  -p, --port <number> Port to run server on (default: 3000)
81390
81396
  -h, --host <string> Host to bind to (default: localhost)
package/dist/cli.mjs CHANGED
@@ -59405,7 +59405,7 @@ var require_package3 = __commonJS({
59405
59405
  "package.json"(exports2, module2) {
59406
59406
  module2.exports = {
59407
59407
  name: "elit",
59408
- version: "3.5.4",
59408
+ version: "3.5.5",
59409
59409
  description: "Optimized lightweight library for creating DOM elements with reactive state",
59410
59410
  main: "dist/index.js",
59411
59411
  module: "dist/index.mjs",
@@ -80879,6 +80879,7 @@ async function runPmCommand(args) {
80879
80879
 
80880
80880
  // src/cli.ts
80881
80881
  var COMMANDS = ["dev", "build", "preview", "test", "desktop", "mobile", "native", "pm", "wapk", "help", "version"];
80882
+ var VERSION_FLAGS = /* @__PURE__ */ new Set(["--version", "-v"]);
80882
80883
  function setupShutdownHandlers(closeFunc) {
80883
80884
  const shutdown = async () => {
80884
80885
  console.log("\n[Server] Shutting down...");
@@ -80923,7 +80924,7 @@ function parseArgs(args, handlers, options) {
80923
80924
  }
80924
80925
  async function main() {
80925
80926
  const args = process.argv.slice(2);
80926
- const command = args[0] || "help";
80927
+ const command = VERSION_FLAGS.has(args[0] || "") ? "version" : args[0] || "help";
80927
80928
  if (!COMMANDS.includes(command)) {
80928
80929
  console.error(`Unknown command: ${command}`);
80929
80930
  printHelp();
@@ -81370,6 +81371,8 @@ Elit - Modern Web Development Toolkit
81370
81371
 
81371
81372
  Usage:
81372
81373
  elit <command> [options]
81374
+ elit --version
81375
+ elit -v
81373
81376
 
81374
81377
  Commands:
81375
81378
  dev Start development server
@@ -81384,6 +81387,9 @@ Commands:
81384
81387
  version Show version number
81385
81388
  help Show this help message
81386
81389
 
81390
+ Global Flags:
81391
+ -v, --version Show version number
81392
+
81387
81393
  Dev Options:
81388
81394
  -p, --port <number> Port to run server on (default: 3000)
81389
81395
  -h, --host <string> Host to bind to (default: localhost)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elit",
3
- "version": "3.5.4",
3
+ "version": "3.5.5",
4
4
  "description": "Optimized lightweight library for creating DOM elements with reactive state",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/cli.ts CHANGED
@@ -15,6 +15,7 @@ import type { DevServerOptions, BuildOptions, PreviewOptions } from './types';
15
15
 
16
16
  const COMMANDS = ['dev', 'build', 'preview', 'test', 'desktop', 'mobile', 'native', 'pm', 'wapk', 'help', 'version'] as const;
17
17
  type Command = typeof COMMANDS[number];
18
+ const VERSION_FLAGS = new Set(['--version', '-v']);
18
19
 
19
20
  /**
20
21
  * Helper: Setup graceful shutdown handlers (eliminates duplication in runDev and runPreview)
@@ -84,7 +85,7 @@ function parseArgs<T>(args: string[], handlers: Record<string, ArgHandler<T>>, o
84
85
 
85
86
  async function main() {
86
87
  const args = process.argv.slice(2);
87
- const command = (args[0] as Command) || 'help';
88
+ const command = VERSION_FLAGS.has(args[0] || '') ? 'version' : ((args[0] as Command) || 'help');
88
89
 
89
90
  if (!COMMANDS.includes(command)) {
90
91
  console.error(`Unknown command: ${command}`);
@@ -581,6 +582,8 @@ Elit - Modern Web Development Toolkit
581
582
 
582
583
  Usage:
583
584
  elit <command> [options]
585
+ elit --version
586
+ elit -v
584
587
 
585
588
  Commands:
586
589
  dev Start development server
@@ -595,6 +598,9 @@ Commands:
595
598
  version Show version number
596
599
  help Show this help message
597
600
 
601
+ Global Flags:
602
+ -v, --version Show version number
603
+
598
604
  Dev Options:
599
605
  -p, --port <number> Port to run server on (default: 3000)
600
606
  -h, --host <string> Host to bind to (default: localhost)