edgera 1.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.mjs +2 -0
- package/package.json +39 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{cac as s}from"cac";import c from"picocolors";import{intro as i,text as n,outro as m}from"@clack/prompts";import o from"picocolors";async function t(r){i(o.inverse(" edgera ")),!(!r&&(r=await n({message:"What is your name?",placeholder:"Edgera User",validate:a=>{if(a.length===0)return"Name is required!"}}),!r))&&m(`Hello, ${o.cyan(r)}! Welcome to Edgera CLI.`)}var e=s("edgera");e.command("hello [name]","Greeting command").action(r=>{t(r)});e.help();e.version("1.0.0");try{e.parse()}catch(r){console.error(c.red(r.message)),process.exit(1)}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "edgera",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Edgera CLI tool",
|
|
5
|
+
"main": "dist/index.mjs",
|
|
6
|
+
"bin": {
|
|
7
|
+
"edgera": "dist/index.mjs"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"README.md",
|
|
12
|
+
"package.json"
|
|
13
|
+
],
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"dev": "tsx src/index.ts",
|
|
19
|
+
"build": "tsup src/index.ts --format esm --clean --minify --onSuccess 'chmod +x dist/index.mjs'",
|
|
20
|
+
"check": "biome check --write"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [],
|
|
23
|
+
"author": "LiaoAnn",
|
|
24
|
+
"license": "ISC",
|
|
25
|
+
"packageManager": "pnpm@10.6.4",
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@biomejs/biome": "2.3.1",
|
|
28
|
+
"@workspace/biome-config": "workspace:^",
|
|
29
|
+
"@workspace/types": "workspace:^",
|
|
30
|
+
"@workspace/typescript-config": "workspace:^",
|
|
31
|
+
"tsup": "^8.5.0",
|
|
32
|
+
"tsx": "^4.7.1"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@clack/prompts": "^0.11.0",
|
|
36
|
+
"cac": "^6.7.14",
|
|
37
|
+
"picocolors": "^1.1.1"
|
|
38
|
+
}
|
|
39
|
+
}
|