@mahameru/cli 0.0.9 → 0.0.11

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 (2) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * ┌────────────────────────────────────────────┐
4
4
  * │ │
5
5
  * │ ▲ MahameruJS - CLI UTILITY │
6
- * │ Version: 0.0.9
6
+ * │ Version: 0.0.11
7
7
  * │ Built: 2026 │
8
8
  * │ │
9
9
  * │ Copyright (c) Bintan <hello@bintvn.co> │
@@ -34,7 +34,7 @@ bgCyanBright:e("",""),bgWhiteBright:e("","")}};t.exports=a
34
34
  ;function _(t){var e=g[t];if(void 0!==e)return e.exports;var i=g[t]={exports:{}};return f[t](i,i.exports,_),i.exports}
35
35
  _.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return _.d(e,{a:e}),e},_.d=(t,e)=>{
36
36
  for(var i in e)_.o(e,i)&&!_.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},
37
- _.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const v={rE:"0.0.9"
37
+ _.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const v={rE:"0.0.11"
38
38
  },b=(t=0)=>e=>`[${e+t}m`,x=(t=0)=>e=>`[${38+t};5;${e}m`,O=(t=0)=>(e,i,r)=>`[${38+t};2;${e};${i};${r}m`,y={modifier:{
39
39
  reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],
40
40
  strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],
@@ -663,7 +663,7 @@ appPath:r(Pe,"src"),port:void 0!==e?e:void 0!==u.port?u.port:3e3,host:void 0!==t
663
663
  modulesPath:r(Pe,"src","modules"),routesPath:r(Pe,"src","routes")}
664
664
  ;const m=`\n import mahameru from "mahameru";\n\n mahameru(${JSON.stringify(u)}).then(app => \n app.initialize().then(() => {\n console.log("\\x1b[32m Mahameru Server Ready! 🚀\\x1b[0m");\n console.log(" \\x1b[1mMode:\\x1b[22m \\x1b[36m${u.dev?"Development":"Production"}\\x1b[0m");\n console.log(" \\x1b[1mLokal:\\x1b[22m \\x1b[36mhttp://${u.host}:${u.port}\\x1b[0m");\n console.log(" \\x1b[1mHost:\\x1b[22m ${u.host}");\n console.log(" \\x1b[1mPort:\\x1b[22m ${u.port}\\n");\n console.log("\\x1b[90mPress Ctrl+C to stop server\\x1b[0m\\n");\n }).catch(console.error)\n ).catch(console.error)\n `
665
665
  ;console.clear(),console.log(`${_e().bold(_e().cyan("▲ Mahameru"))} ${_e().dim(`CLI v${i}`)}\n`),await He(a,["-e",m],Pe)
666
- }),t.command("build").description("Build Mahameru production application.").action(async()=>{console.clear(),
666
+ }),t.command("build").description("Build Mahameru production application.").action(async()=>{
667
667
  console.log(`${_e().bold(_e().cyan("▲ Mahameru"))} ${_e().dim(`CLI v${i}`)}\n`)
668
668
  ;const t=fe(_e().cyan("Checking environment...")).start()
669
669
  ;ke()||(t.fail(_e().red(" Current directory is not a Node.js project.")),process.exit(1))
@@ -687,7 +687,7 @@ console.error(_e().red("❌ Error: mahameru.config.js is not found.")),process.e
687
687
  appPath:r(Pe,"dist"),port:void 0!==s?s:void 0!==a.port?a.port:3e3,host:void 0!==t?t:void 0!==a.host?a.host:"localhost",
688
688
  modulesPath:r(Pe,"dist","modules"),routesPath:r(Pe,"dist","routes")}
689
689
  ;const l=`\n import mahameru from "mahameru";\n\n mahameru(${JSON.stringify(a)}).then(app => \n app.initialize().then(() => {\n console.log("\\x1b[32m Mahameru Server Ready! 🚀\\x1b[0m");\n console.log(" \\x1b[1mMode:\\x1b[22m \\x1b[36m${a.dev?"Development":"Production"}\\x1b[0m");\n console.log(" \\x1b[1mLokal:\\x1b[22m \\x1b[36mhttp://${a.host}:${a.port}\\x1b[0m");\n console.log(" \\x1b[1mHost:\\x1b[22m ${a.host}");\n console.log(" \\x1b[1mPort:\\x1b[22m ${a.port}\\n");\n console.log("\\x1b[90mPress Ctrl+C to stop server\\x1b[0m\\n");\n }).catch(console.error)\n ).catch(console.error)\n `
690
- ;console.clear(),console.log(`${_e().bold(_e().cyan("▲ Mahameru"))} ${_e().dim(`CLI v${i}`)}\n`),
691
- e(process.execPath,["-e",l],{stdio:"inherit",cwd:Pe,env:{...process.env,NODE_ENV:"production"}}).on("exit",t=>{
692
- 0!==t&&process.exit(t)}).on("error",t=>{console.error(t)}).on("message",t=>{console.log(t)})}),
693
- await t.parseAsync(process.argv)}catch(t){console.error(t),process.exit(1)}})();
690
+ ;console.log(`${_e().bold(_e().cyan("▲ Mahameru"))} ${_e().dim(`CLI v${i}`)}\n`),e(process.execPath,["-e",l],{
691
+ stdio:"inherit",cwd:Pe,env:{...process.env,NODE_ENV:"production"}}).on("exit",t=>{0!==t&&process.exit(t)
692
+ }).on("error",t=>{console.error(t)}).on("message",t=>{console.log(t)})}),await t.parseAsync(process.argv)}catch(t){
693
+ console.error(t),process.exit(1)}})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mahameru/cli",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "MahameruJS CLI Utility - The command-line interface for running and building Mahameru-based applications",
5
5
  "bin": {
6
6
  "mahameru": "./dist/index.js"