@deessejs/cli 0.0.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.
- package/dist/index.js +8 -0
- package/dist/index.mjs +8 -0
- package/package.json +29 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var c=Object.create;var r=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var u=(e,n,l,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of p(n))!g.call(e,t)&&t!==l&&r(e,t,{get:()=>n[t],enumerable:!(i=d(n,t))||i.enumerable});return e};var f=(e,n,l)=>(l=e!=null?c(m(e)):{},u(n||!e||!e.__esModule?r(l,"default",{value:e,enumerable:!0}):l,e));var a=require("commander"),o=f(require("picocolors")),s=new a.Command;s.name("deesse").description("Official CLI for the Deesse plugin framework").version("0.1.0");s.command("init").description("Initialize a new Deesse project").argument("[name]","name of the project","my-deesse-app").action(e=>{console.log(o.default.cyan(`
|
|
3
|
+
\u2728 Creating a new Deesse project: ${o.default.bold(e)}...`)),console.log(o.default.green(`\u2705 Project initialized successfully!
|
|
4
|
+
`)),console.log("Next steps:"),console.log(o.default.dim(` cd ${e}`)),console.log(o.default.dim(" pnpm install")),console.log(o.default.dim(` deesse dev
|
|
5
|
+
`))});s.command("add").description("Add a new plugin to the project").argument("<plugin>","name of the plugin to add").action(e=>{console.log(o.default.yellow(`\u{1F4E6} Installing plugin: ${o.default.bold(e)}...`)),console.log(o.default.green(`\u{1F680} Plugin ${e} added and configured.`))});s.command("dev").description("Start the development server").option("-p, --port <number>","port to run the server on","3000").action(e=>{console.log(o.default.blue(`
|
|
6
|
+
\u{1F4E1} Deesse engine starting...`)),console.log(o.default.dim(`> Local: http://localhost:${e.port}`))});s.on("command:*",()=>{console.error(o.default.red(`
|
|
7
|
+
\u274C Invalid command.`)),console.log(`Run ${o.default.cyan("deesse --help")} for a list of available commands.
|
|
8
|
+
`),process.exit(1)});s.parse(process.argv);process.argv.slice(2).length||s.outputHelp();
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{Command as s}from"commander";import e from"picocolors";var n=new s;n.name("deesse").description("Official CLI for the Deesse plugin framework").version("0.1.0");n.command("init").description("Initialize a new Deesse project").argument("[name]","name of the project","my-deesse-app").action(o=>{console.log(e.cyan(`
|
|
3
|
+
\u2728 Creating a new Deesse project: ${e.bold(o)}...`)),console.log(e.green(`\u2705 Project initialized successfully!
|
|
4
|
+
`)),console.log("Next steps:"),console.log(e.dim(` cd ${o}`)),console.log(e.dim(" pnpm install")),console.log(e.dim(` deesse dev
|
|
5
|
+
`))});n.command("add").description("Add a new plugin to the project").argument("<plugin>","name of the plugin to add").action(o=>{console.log(e.yellow(`\u{1F4E6} Installing plugin: ${e.bold(o)}...`)),console.log(e.green(`\u{1F680} Plugin ${o} added and configured.`))});n.command("dev").description("Start the development server").option("-p, --port <number>","port to run the server on","3000").action(o=>{console.log(e.blue(`
|
|
6
|
+
\u{1F4E1} Deesse engine starting...`)),console.log(e.dim(`> Local: http://localhost:${o.port}`))});n.on("command:*",()=>{console.error(e.red(`
|
|
7
|
+
\u274C Invalid command.`)),console.log(`Run ${e.cyan("deesse --help")} for a list of available commands.
|
|
8
|
+
`),process.exit(1)});n.parse(process.argv);process.argv.slice(2).length||n.outputHelp();
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@deessejs/cli",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "DeesseJS CLI",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"deesse": "./dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsup src/index.ts --format cjs,esm --clean --minify",
|
|
17
|
+
"dev": "tsup src/index.ts --format esm --watch",
|
|
18
|
+
"prepublishOnly": "pnpm build"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"commander": "^14.0.2",
|
|
22
|
+
"picocolors": "^1.1.1"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/node": "^25.0.3",
|
|
26
|
+
"tsup": "^8.5.1",
|
|
27
|
+
"typescript": "^5.9.3"
|
|
28
|
+
}
|
|
29
|
+
}
|