@mahameru/cli 0.0.10 → 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.
- package/dist/index.js +3 -3
- 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.
|
|
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("[106m","[49m"),bgWhiteBright:e("[107m","[49m")}};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.
|
|
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()=>{
|
|
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))
|
package/package.json
CHANGED