neex 0.2.8 → 0.3.0

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.
Files changed (66) hide show
  1. package/README.md +1 -1
  2. package/bun.lock +118 -544
  3. package/dist/cli.d.ts +1 -0
  4. package/dist/cli.js +46 -0
  5. package/dist/cli.js.map +1 -0
  6. package/dist/commands/build.d.ts +3 -0
  7. package/dist/commands/build.js +41 -0
  8. package/dist/commands/build.js.map +1 -0
  9. package/dist/commands/cache.d.ts +3 -0
  10. package/dist/commands/cache.js +34 -0
  11. package/dist/commands/cache.js.map +1 -0
  12. package/dist/commands/dev.d.ts +3 -0
  13. package/dist/commands/dev.js +51 -0
  14. package/dist/commands/dev.js.map +1 -0
  15. package/dist/commands/process-command/process.d.ts +2 -0
  16. package/dist/commands/process-command/process.js +149 -0
  17. package/dist/commands/process-command/process.js.map +1 -0
  18. package/dist/commands/process.d.ts +2 -0
  19. package/dist/commands/process.js +216 -0
  20. package/dist/commands/process.js.map +1 -0
  21. package/dist/commands/project-command/build.d.ts +3 -0
  22. package/dist/commands/project-command/build.js +41 -0
  23. package/dist/commands/project-command/build.js.map +1 -0
  24. package/dist/commands/project-command/cache.d.ts +3 -0
  25. package/dist/commands/project-command/cache.js +56 -0
  26. package/dist/commands/project-command/cache.js.map +1 -0
  27. package/dist/commands/project-command/dev.d.ts +3 -0
  28. package/dist/commands/project-command/dev.js +51 -0
  29. package/dist/commands/project-command/dev.js.map +1 -0
  30. package/dist/commands/project-command/start.d.ts +3 -0
  31. package/dist/commands/project-command/start.js +45 -0
  32. package/dist/commands/project-command/start.js.map +1 -0
  33. package/dist/commands/run-commands/run.d.ts +2 -0
  34. package/dist/commands/run-commands/run.js +81 -0
  35. package/dist/commands/run-commands/run.js.map +1 -0
  36. package/dist/commands/run.d.ts +2 -0
  37. package/dist/commands/run.js +81 -0
  38. package/dist/commands/run.js.map +1 -0
  39. package/dist/commands/start.d.ts +3 -0
  40. package/dist/commands/start.js +45 -0
  41. package/dist/commands/start.js.map +1 -0
  42. package/dist/dev-manager.d.ts +34 -0
  43. package/dist/dev-manager.js +172 -0
  44. package/dist/dev-manager.js.map +1 -0
  45. package/dist/index.d.ts +30 -0
  46. package/dist/index.js +65 -0
  47. package/dist/index.js.map +1 -0
  48. package/dist/logger.d.ts +31 -0
  49. package/dist/logger.js +238 -0
  50. package/dist/logger.js.map +1 -0
  51. package/dist/process-manager.d.ts +61 -0
  52. package/dist/process-manager.js +279 -0
  53. package/dist/process-manager.js.map +1 -0
  54. package/dist/project-manager.d.ts +51 -0
  55. package/dist/project-manager.js +252 -0
  56. package/dist/project-manager.js.map +1 -0
  57. package/dist/runner.d.ts +16 -0
  58. package/dist/runner.js +331 -0
  59. package/dist/runner.js.map +1 -0
  60. package/dist/types.d.ts +37 -0
  61. package/dist/types.js +3 -0
  62. package/dist/types.js.map +1 -0
  63. package/dist/typescript-runner.d.ts +12 -0
  64. package/dist/typescript-runner.js +162 -0
  65. package/dist/typescript-runner.js.map +1 -0
  66. package/package.json +5 -2
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerBuildCommand = registerBuildCommand;
7
+ const chalk_1 = __importDefault(require("chalk"));
8
+ const figures_1 = __importDefault(require("figures"));
9
+ function registerBuildCommand(program, projectManager) {
10
+ program
11
+ .command('build')
12
+ .description('Build TypeScript project with optimized output')
13
+ .option('-o, --outDir <dir>', 'Output directory', 'dist')
14
+ .option('-m, --minify', 'Minify output')
15
+ .option('-s, --sourcemap', 'Generate source maps')
16
+ .option('-w, --watch', 'Watch mode')
17
+ .option('-c, --compiler <type>', 'Compiler to use: swc, esbuild, tsc', 'auto')
18
+ .option('--target <target>', 'Target ES version', 'ES2022')
19
+ .action(async (options) => {
20
+ try {
21
+ await projectManager.build({
22
+ outDir: options.outDir,
23
+ minify: options.minify,
24
+ sourcemap: options.sourcemap,
25
+ watch: options.watch,
26
+ compiler: options.compiler,
27
+ target: options.target
28
+ });
29
+ }
30
+ catch (error) {
31
+ if (error instanceof Error) {
32
+ console.error(chalk_1.default.red(`${figures_1.default.cross} Error: ${error.message}`));
33
+ }
34
+ else {
35
+ console.error(chalk_1.default.red(`${figures_1.default.cross} An unknown error occurred`));
36
+ }
37
+ process.exit(1);
38
+ }
39
+ });
40
+ }
41
+ //# sourceMappingURL=build.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/commands/project-command/build.ts"],"names":[],"mappings":";;;;;AAKA,oDA6BC;AAjCD,kDAA0B;AAC1B,sDAA8B;AAG9B,SAAgB,oBAAoB,CAAC,OAAgB,EAAE,cAA8B;IACjF,OAAO;SACF,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,gDAAgD,CAAC;SAC7D,MAAM,CAAC,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,CAAC;SACxD,MAAM,CAAC,cAAc,EAAE,eAAe,CAAC;SACvC,MAAM,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;SACjD,MAAM,CAAC,aAAa,EAAE,YAAY,CAAC;SACnC,MAAM,CAAC,uBAAuB,EAAE,oCAAoC,EAAE,MAAM,CAAC;SAC7E,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,QAAQ,CAAC;SAC1D,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QACtB,IAAI,CAAC;YACD,MAAM,cAAc,CAAC,KAAK,CAAC;gBACvB,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,MAAM,EAAE,OAAO,CAAC,MAAM;aACzB,CAAC,CAAC;QACP,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;gBACzB,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,GAAG,iBAAO,CAAC,KAAK,WAAW,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;YACzE,CAAC;iBAAM,CAAC;gBACJ,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,GAAG,iBAAO,CAAC,KAAK,4BAA4B,CAAC,CAAC,CAAC;YAC3E,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC;IACL,CAAC,CAAC,CAAC;AACX,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ import { ProjectManager } from '../../project-manager.js';
3
+ export declare function registerCacheCommand(program: Command, projectManager: ProjectManager): void;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerCacheCommand = registerCacheCommand;
7
+ const chalk_1 = __importDefault(require("chalk"));
8
+ const figures_1 = __importDefault(require("figures"));
9
+ const logger_js_1 = __importDefault(require("../../logger.js"));
10
+ function registerCacheCommand(program, projectManager) {
11
+ program
12
+ .command('cache')
13
+ .description('Manage TypeScript compilation cache')
14
+ .option('-c, --clear', 'Clear compilation cache')
15
+ .option('-s, --stats', 'Show cache statistics')
16
+ .option('-p, --path', 'Show cache directory path')
17
+ .action((options) => {
18
+ try {
19
+ if (options.clear) {
20
+ projectManager.clearCache();
21
+ console.log(chalk_1.default.green(`${figures_1.default.tick} Cache cleared successfully`));
22
+ }
23
+ else if (options.stats) {
24
+ const stats = projectManager.getCacheStats();
25
+ console.log(chalk_1.default.blue('Cache Statistics:'));
26
+ console.log(chalk_1.default.white(` Size: ${stats.size}`));
27
+ console.log(chalk_1.default.white(` Files: ${stats.files}`));
28
+ console.log(chalk_1.default.white(` Last Updated: ${stats.lastUpdated}`));
29
+ if (stats.files === 0) {
30
+ console.log(chalk_1.default.yellow(`${figures_1.default.warning} Cache is empty`));
31
+ }
32
+ }
33
+ else if (options.path) {
34
+ const cachePath = projectManager.getCachePath();
35
+ console.log(chalk_1.default.blue('Cache Directory:'));
36
+ console.log(chalk_1.default.white(` ${cachePath}`));
37
+ }
38
+ else {
39
+ console.log(chalk_1.default.blue('Cache management:'));
40
+ console.log(chalk_1.default.white(' --clear Clear compilation cache'));
41
+ console.log(chalk_1.default.white(' --stats Show cache statistics'));
42
+ console.log(chalk_1.default.white(' --path Show cache directory path'));
43
+ }
44
+ }
45
+ catch (error) {
46
+ if (error instanceof Error) {
47
+ logger_js_1.default.printLine(`Error: ${error.message}`, 'error');
48
+ }
49
+ else {
50
+ logger_js_1.default.printLine('An unknown error occurred', 'error');
51
+ }
52
+ process.exit(1);
53
+ }
54
+ });
55
+ }
56
+ //# sourceMappingURL=cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache.js","sourceRoot":"","sources":["../../../src/commands/project-command/cache.ts"],"names":[],"mappings":";;;;;AAMA,oDAwCC;AA7CD,kDAA0B;AAC1B,sDAA8B;AAE9B,gEAAqC;AAErC,SAAgB,oBAAoB,CAAC,OAAgB,EAAE,cAA8B;IACjF,OAAO;SACF,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,qCAAqC,CAAC;SAClD,MAAM,CAAC,aAAa,EAAE,yBAAyB,CAAC;SAChD,MAAM,CAAC,aAAa,EAAE,uBAAuB,CAAC;SAC9C,MAAM,CAAC,YAAY,EAAE,2BAA2B,CAAC;SACjD,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE;QAChB,IAAI,CAAC;YACD,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;gBAChB,cAAc,CAAC,UAAU,EAAE,CAAC;gBAC5B,OAAO,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qC,CAAC,CAAC,CAAC;gBAChE,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC,CAAC;gBAC9D,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAC,CAAC;YACtE,CAAC;QACL,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;gBACzB,mBAAM,CAAC,SAAS,CAAC,UAAU,KAAK,CAAC,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;YACzD,CAAC;iBAAM,CAAC;gBACJ,mBAAM,CAAC,SAAS,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;YAC3D,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC;IACL,CAAC,CAAC,CAAC;AACX,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ import { ProjectManager } from '../../project-manager.js';
3
+ export declare function registerDevCommand(program: Command, projectManager: ProjectManager): void;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerDevCommand = registerDevCommand;
7
+ const chalk_1 = __importDefault(require("chalk"));
8
+ const figures_1 = __importDefault(require("figures"));
9
+ function registerDevCommand(program, projectManager) {
10
+ program
11
+ .command('dev <entry>')
12
+ .description('Run project in development mode with hot reload')
13
+ .option('-p, --port <number>', 'Port to run the server on', '3000')
14
+ .option('-w, --watch <paths...>', 'Paths to watch for changes', ['src'])
15
+ .option('-i, --ignore <paths...>', 'Paths to ignore', ['node_modules', 'dist', '.git', '.neex'])
16
+ .option('-e, --ext <extensions...>', 'File extensions to watch', ['ts', 'js', 'json'])
17
+ .option('-d, --delay <number>', 'Delay before restarting in milliseconds', '500')
18
+ .option('-c, --no-color', 'Disable colored output')
19
+ .option('--no-clear', 'Disable screen clearing on restart')
20
+ .option('--no-cache', 'Disable TypeScript compilation cache')
21
+ .option('--compiler <type>', 'Choose compiler: swc, esbuild, tsc', 'auto')
22
+ .option('--inspect', 'Enable Node.js inspector')
23
+ .option('--inspect-brk', 'Enable Node.js inspector with break')
24
+ .action(async (entry, options) => {
25
+ try {
26
+ await projectManager.startDev({
27
+ entry,
28
+ port: options.port,
29
+ watch: options.watch,
30
+ ignore: options.ignore,
31
+ ext: options.ext,
32
+ delay: options.delay,
33
+ clear: options.clear,
34
+ cache: options.cache,
35
+ compiler: options.compiler,
36
+ inspect: options.inspect,
37
+ inspectBrk: options.inspectBrk
38
+ });
39
+ }
40
+ catch (error) {
41
+ if (error instanceof Error) {
42
+ console.error(chalk_1.default.red(`${figures_1.default.cross} Error: ${error.message}`));
43
+ }
44
+ else {
45
+ console.error(chalk_1.default.red(`${figures_1.default.cross} An unknown error occurred`));
46
+ }
47
+ process.exit(1);
48
+ }
49
+ });
50
+ }
51
+ //# sourceMappingURL=dev.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev.js","sourceRoot":"","sources":["../../../src/commands/project-command/dev.ts"],"names":[],"mappings":";;;;;AAKA,gDAuCC;AA3CD,kDAA0B;AAC1B,sDAA8B;AAG9B,SAAgB,kBAAkB,CAAC,OAAgB,EAAE,cAA8B;IAC/E,OAAO;SACF,OAAO,CAAC,aAAa,CAAC;SACtB,WAAW,CAAC,iDAAiD,CAAC;SAC9D,MAAM,CAAC,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,CAAC;SAClE,MAAM,CAAC,wBAAwB,EAAE,4BAA4B,EAAE,CAAC,KAAK,CAAC,CAAC;SACvE,MAAM,CAAC,yBAAyB,EAAE,iBAAiB,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;SAC/F,MAAM,CAAC,2BAA2B,EAAE,0BAA0B,EAAE,C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AK,4BAA4B,CAAC,CAAC,CAAC;YAC3E,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC;IACL,CAAC,CAAC,CAAC;AACX,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ import { ProjectManager } from '../../project-manager.js';
3
+ export declare function registerStartCommand(program: Command, projectManager: ProjectManager): void;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerStartCommand = registerStartCommand;
7
+ const chalk_1 = __importDefault(require("chalk"));
8
+ const figures_1 = __importDefault(require("figures"));
9
+ function registerStartCommand(program, projectManager) {
10
+ program
11
+ .command('start')
12
+ .description('Start the built application in production mode with health monitoring')
13
+ .option('-p, --port <number>', 'Port to run the server on', '3000')
14
+ .option('-o, --outDir <dir>', 'Output directory', 'dist')
15
+ .option('-e, --entry <file>', 'Entry file name', 'server.js')
16
+ .option('-i, --inspect', 'Enable Node.js inspector')
17
+ .option('-c, --cluster', 'Run in cluster mode')
18
+ .option('-w, --workers <number>', 'Number of worker processes', '0')
19
+ .option('--max-memory <size>', 'Maximum memory per process (e.g., 1024M)')
20
+ .option('--health-check', 'Enable health check endpoint')
21
+ .action(async (options) => {
22
+ try {
23
+ await projectManager.start({
24
+ port: options.port,
25
+ outDir: options.outDir,
26
+ entry: options.entry,
27
+ inspect: options.inspect,
28
+ cluster: options.cluster,
29
+ workers: options.workers,
30
+ maxMemory: options.maxMemory,
31
+ healthCheck: options.healthCheck
32
+ });
33
+ }
34
+ catch (error) {
35
+ if (error instanceof Error) {
36
+ console.error(chalk_1.default.red(`${figures_1.default.cross} Error: ${error.message}`));
37
+ }
38
+ else {
39
+ console.error(chalk_1.default.red(`${figures_1.default.cross} An unknown error occurred`));
40
+ }
41
+ process.exit(1);
42
+ }
43
+ });
44
+ }
45
+ //# sourceMappingURL=start.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start.js","sourceRoot":"","sources":["../../../src/commands/project-command/start.ts"],"names":[],"mappings":";;;;;AAKA,oDAiCC;AArCD,kDAA0B;AAC1B,sDAA8B;AAG9B,SAAgB,oBAAoB,CAAC,OAAgB,EAAE,cAA8B;IACjF,OAAO;SACF,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,uEAAuE,CAAC;SACpF,MAAM,CAAC,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,CAAC;SAClE,MAAM,CAAC,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,CAAC;SACxD,MAAM,CAAC,oBAAoB,EAAE,iBAAiB,EAAE,WAAW,CAAC;SAC5D,MAAM,CAAC,eAAe,EAAE,0BAA0B,CAAC;SACnD,MAAM,CAAC,eAAe,EAAE,qBAAqB,CAAC;SAC9C,MAAM,CAAC,wBAAwB,EAAE,4BAA4B,EAAE,GAAG,CAAC;SACnE,MAAM,CAAC,qBAAqB,EAAE,0CAA0C,CAAC;SACzE,MAAM,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;SACxD,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QACtB,IAAI,CAAC;YACD,MAAM,cAAc,CAAC,KAAK,CAAC;gBACvB,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,WAAW,EAAE,OAAO,CAAC,WAAW;aACnC,CAAC,CAAC;QACP,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;gBACzB,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,GAAG,iBAAO,CAAC,KAAK,WAAW,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;YACzE,CAAC;iBAAM,CAAC;gBACJ,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,GAAG,iBAAO,CAAC,KAAK,4BAA4B,CAAC,CAAC,CAAC;YAC3E,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC;IACL,CAAC,CAAC,CAAC;AACX,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare function registerRunCommands(program: Command): void;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerRunCommands = registerRunCommands;
7
+ const chalk_1 = __importDefault(require("chalk"));
8
+ const figures_1 = __importDefault(require("figures"));
9
+ const index_js_1 = require("../../index.js");
10
+ function registerRunCommands(program) {
11
+ // Sequential execution command
12
+ program
13
+ .command('sequential <commands...>')
14
+ .alias('s')
15
+ .description('Run commands sequentially')
16
+ .option('-c, --no-color', 'Disable colored output')
17
+ .option('-t, --no-timing', 'Hide timing information')
18
+ .option('-p, --no-prefix', 'Hide command prefix')
19
+ .option('-s, --stop-on-error', 'Stop on first error')
20
+ .option('-o, --no-output', 'Hide command output')
21
+ .option('-m, --minimal', 'Use minimal output format')
22
+ .action(async (commands, options) => {
23
+ try {
24
+ await (0, index_js_1.run)(commands, {
25
+ parallel: false,
26
+ color: options.color,
27
+ showTiming: options.timing,
28
+ prefix: options.prefix,
29
+ stopOnError: options.stopOnError,
30
+ printOutput: options.output,
31
+ minimalOutput: options.minimal
32
+ });
33
+ }
34
+ catch (error) {
35
+ if (error instanceof Error) {
36
+ console.error(chalk_1.default.red(`${figures_1.default.cross} Error: ${error.message}`));
37
+ }
38
+ else {
39
+ console.error(chalk_1.default.red(`${figures_1.default.cross} An unknown error occurred`));
40
+ }
41
+ process.exit(1);
42
+ }
43
+ });
44
+ // Parallel execution command
45
+ program
46
+ .command('parallel <commands...>', { isDefault: true })
47
+ .alias('p')
48
+ .description('Run commands in parallel (default) or sequentially with -q. Alias: p')
49
+ .option('-c, --no-color', 'Disable colored output')
50
+ .option('-t, --no-timing', 'Hide timing information')
51
+ .option('-p, --no-prefix', 'Hide command prefix')
52
+ .option('-s, --stop-on-error', 'Stop on first error')
53
+ .option('-o, --no-output', 'Hide command output')
54
+ .option('-m, --minimal', 'Use minimal output format')
55
+ .option('-x, --max-parallel <number>', 'Maximum number of parallel processes', parseInt)
56
+ .option('-q, --sequential', 'Run commands sequentially instead of in parallel')
57
+ .action(async (commands, options) => {
58
+ try {
59
+ await (0, index_js_1.run)(commands, {
60
+ parallel: !options.sequential,
61
+ maxParallel: options.maxParallel,
62
+ color: options.color,
63
+ showTiming: options.timing,
64
+ prefix: options.prefix,
65
+ stopOnError: options.stopOnError,
66
+ printOutput: options.output,
67
+ minimalOutput: options.minimal
68
+ });
69
+ }
70
+ catch (error) {
71
+ if (error instanceof Error) {
72
+ console.error(chalk_1.default.red(`${figures_1.default.cross} Error: ${error.message}`));
73
+ }
74
+ else {
75
+ console.error(chalk_1.default.red(`${figures_1.default.cross} An unknown error occurred`));
76
+ }
77
+ process.exit(1);
78
+ }
79
+ });
80
+ }
81
+ //# sourceMappingURL=run.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/commands/run-commands/run.ts"],"names":[],"mappings":";;;;;AAKA,kDAmEC;AAvED,kDAA0B;AAC1B,sDAA8B;AAC9B,6CAAqC;AAErC,SAAgB,mBAAmB,CAAC,OAAgB;IAChD,+BAA+B;IAC/B,OAAO;SACF,OAAO,CAAC,0BAA0B,CAAC;SACnC,KAAK,CAAC,GAAG,CAAC;SACV,WAAW,CAAC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C3E,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC;IACL,CAAC,CAAC,CAAC;AACX,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare function registerRunCommands(program: Command): void;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerRunCommands = registerRunCommands;
7
+ const chalk_1 = __importDefault(require("chalk"));
8
+ const figures_1 = __importDefault(require("figures"));
9
+ const index_js_1 = require("../index.js");
10
+ function registerRunCommands(program) {
11
+ // Sequential execution command
12
+ program
13
+ .command('sequential <commands...>')
14
+ .alias('s')
15
+ .description('Run commands sequentially')
16
+ .option('-c, --no-color', 'Disable colored output')
17
+ .option('-t, --no-timing', 'Hide timing information')
18
+ .option('-p, --no-prefix', 'Hide command prefix')
19
+ .option('-s, --stop-on-error', 'Stop on first error')
20
+ .option('-o, --no-output', 'Hide command output')
21
+ .option('-m, --minimal', 'Use minimal output format')
22
+ .action(async (commands, options) => {
23
+ try {
24
+ await (0, index_js_1.run)(commands, {
25
+ parallel: false,
26
+ color: options.color,
27
+ showTiming: options.timing,
28
+ prefix: options.prefix,
29
+ stopOnError: options.stopOnError,
30
+ printOutput: options.output,
31
+ minimalOutput: options.minimal
32
+ });
33
+ }
34
+ catch (error) {
35
+ if (error instanceof Error) {
36
+ console.error(chalk_1.default.red(`${figures_1.default.cross} Error: ${error.message}`));
37
+ }
38
+ else {
39
+ console.error(chalk_1.default.red(`${figures_1.default.cross} An unknown error occurred`));
40
+ }
41
+ process.exit(1);
42
+ }
43
+ });
44
+ // Parallel execution command
45
+ program
46
+ .command('parallel <commands...>', { isDefault: true })
47
+ .alias('p')
48
+ .description('Run commands in parallel (default) or sequentially with -q. Alias: p')
49
+ .option('-c, --no-color', 'Disable colored output')
50
+ .option('-t, --no-timing', 'Hide timing information')
51
+ .option('-p, --no-prefix', 'Hide command prefix')
52
+ .option('-s, --stop-on-error', 'Stop on first error')
53
+ .option('-o, --no-output', 'Hide command output')
54
+ .option('-m, --minimal', 'Use minimal output format')
55
+ .option('-x, --max-parallel <number>', 'Maximum number of parallel processes', parseInt)
56
+ .option('-q, --sequential', 'Run commands sequentially instead of in parallel')
57
+ .action(async (commands, options) => {
58
+ try {
59
+ await (0, index_js_1.run)(commands, {
60
+ parallel: !options.sequential,
61
+ maxParallel: options.maxParallel,
62
+ color: options.color,
63
+ showTiming: options.timing,
64
+ prefix: options.prefix,
65
+ stopOnError: options.stopOnError,
66
+ printOutput: options.output,
67
+ minimalOutput: options.minimal
68
+ });
69
+ }
70
+ catch (error) {
71
+ if (error instanceof Error) {
72
+ console.error(chalk_1.default.red(`${figures_1.default.cross} Error: ${error.message}`));
73
+ }
74
+ else {
75
+ console.error(chalk_1.default.red(`${figures_1.default.cross} An unknown error occurred`));
76
+ }
77
+ process.exit(1);
78
+ }
79
+ });
80
+ }
81
+ //# sourceMappingURL=run.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":";;;;;AAKA,kDAmEC;AAvED,kDAA0B;AAC1B,sDAA8B;AAC9B,0CAAkC;AAElC,SAAgB,mBAAmB,CAAC,OAAgB;IAChD,+BAA+B;IAC/B,OAAO;SACF,OAAO,CAAC,0BAA0B,CAAC;SACnC,KAAK,CAAC,GAAG,CAAC;SACV,WAAW,CAAC,2BAA2B,CAAC;SACxC,MAAM,CAAC,gBAAgB,EAAE,wBAAwB,CAAC;SAClD,MAAM,CAAC,iBAAiB,EAAE,yBAAyB,CAAC;SACpD,MAAM,CAAC,iBAAiB,EAAE,qBAAqB,CAAC;SAChD,MAAM,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;SACpD,MAAM,CAAC,iBAAiB,EAAE,qBAAqB,CAAC;SAChD,MAA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iB,EAAE,qBAAqB,CAAC;SAChD,MAAM,CAAC,eAAe,EAAE,2BAA2B,CAAC;SACpD,MAAM,CAAC,6BAA6B,EAAE,sCAAsC,EAAE,QAAQ,CAAC;SACvF,MAAM,CAAC,kBAAkB,EAAE,kDAAkD,CAAC;SAC9E,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE;QAChC,IAAI,CAAC;YACD,MAAM,IAAA,cAAG,EAAC,QAAQ,EAAE;gBAChB,QAAQ,EAAE,CAAC,OAAO,CAAC,UAAU;gBAC7B,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,UAAU,EAAE,OAAO,CAAC,MAAM;gBAC1B,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,WAAW,EAAE,OAAO,CAAC,MAAM;gBAC3B,aAAa,EAAE,OAAO,CAAC,OAAO;aACjC,CAAC,CAAC;QACP,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;gBACzB,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,GAAG,iBAAO,CAAC,KAAK,WAAW,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;YACzE,CAAC;iBAAM,CAAC;gBACJ,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,GAAG,iBAAO,CAAC,KAAK,4BAA4B,CAAC,CAAC,CAAC;YAC3E,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC;IACL,CAAC,CAAC,CAAC;AACX,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ import { ProjectManager } from '../project-manager.js';
3
+ export declare function registerStartCommand(program: Command, projectManager: ProjectManager): void;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerStartCommand = registerStartCommand;
7
+ const chalk_1 = __importDefault(require("chalk"));
8
+ const figures_1 = __importDefault(require("figures"));
9
+ function registerStartCommand(program, projectManager) {
10
+ program
11
+ .command('start')
12
+ .description('Start the built application in production mode with health monitoring')
13
+ .option('-p, --port <number>', 'Port to run the server on', '3000')
14
+ .option('-o, --outDir <dir>', 'Output directory', 'dist')
15
+ .option('-e, --entry <file>', 'Entry file name', 'server.js')
16
+ .option('-i, --inspect', 'Enable Node.js inspector')
17
+ .option('-c, --cluster', 'Run in cluster mode')
18
+ .option('-w, --workers <number>', 'Number of worker processes', '0')
19
+ .option('--max-memory <size>', 'Maximum memory per process (e.g., 1024M)')
20
+ .option('--health-check', 'Enable health check endpoint')
21
+ .action(async (options) => {
22
+ try {
23
+ await projectManager.start({
24
+ port: options.port,
25
+ outDir: options.outDir,
26
+ entry: options.entry,
27
+ inspect: options.inspect,
28
+ cluster: options.cluster,
29
+ workers: options.workers,
30
+ maxMemory: options.maxMemory,
31
+ healthCheck: options.healthCheck
32
+ });
33
+ }
34
+ catch (error) {
35
+ if (error instanceof Error) {
36
+ console.error(chalk_1.default.red(`${figures_1.default.cross} Error: ${error.message}`));
37
+ }
38
+ else {
39
+ console.error(chalk_1.default.red(`${figures_1.default.cross} An unknown error occurred`));
40
+ }
41
+ process.exit(1);
42
+ }
43
+ });
44
+ }
45
+ //# sourceMappingURL=start.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start.js","sourceRoot":"","sources":["../../src/commands/start.ts"],"names":[],"mappings":";;;;;AAKA,oDAiCC;AArCD,kDAA0B;AAC1B,sDAA8B;AAG9B,SAAgB,oBAAoB,CAAC,OAAgB,EAAE,cAA8B;IACjF,OAAO;SACF,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,uEAAuE,CAAC;SAC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AC,CAAC;QACpB,CAAC;IACL,CAAC,CAAC,CAAC;AACX,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { EventEmitter } from 'events';
2
+ interface DevOptions {
3
+ entry: string;
4
+ outdir?: string;
5
+ watch?: boolean;
6
+ port?: number;
7
+ env?: Record<string, string>;
8
+ sourcemap?: boolean;
9
+ minify?: boolean;
10
+ target?: string[];
11
+ format?: 'cjs' | 'esm' | 'iife';
12
+ }
13
+ interface BuildResult {
14
+ success: boolean;
15
+ outputPath?: string;
16
+ error?: Error;
17
+ }
18
+ declare class DevManager extends EventEmitter {
19
+ private watcher;
20
+ private process;
21
+ private isRestarting;
22
+ private restartTimer;
23
+ private defaultOutDir;
24
+ private defaultPort;
25
+ constructor();
26
+ build(options: DevOptions): Promise<BuildResult>;
27
+ private startProcess;
28
+ private setupWatcher;
29
+ dev(options: DevOptions): Promise<void>;
30
+ start(options: DevOptions): Promise<void>;
31
+ stop(): void;
32
+ }
33
+ export declare const devManager: DevManager;
34
+ export {};