mirror of
https://github.com/beilunyang/moemail.git
synced 2026-05-06 20:02:52 +08:00
feat(cli): scaffold CLI package with commander
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2
packages/cli/.gitignore
vendored
Normal file
2
packages/cli/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
node_modules/
|
||||
dist/
|
||||
19
packages/cli/package.json
Normal file
19
packages/cli/package.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "moemail-cli",
|
||||
"version": "0.1.0",
|
||||
"description": "Agent-first CLI for MoeMail temporary email service",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"moemail": "dist/index.js"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "bun build ./src/index.ts --outdir ./dist --target=node",
|
||||
"dev": "bun run ./src/index.ts"
|
||||
},
|
||||
"files": ["dist"],
|
||||
"keywords": ["email", "temporary", "cli", "agent", "ai"],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"commander": "^12.0.0"
|
||||
}
|
||||
}
|
||||
23
packages/cli/pnpm-lock.yaml
generated
Normal file
23
packages/cli/pnpm-lock.yaml
generated
Normal file
@@ -0,0 +1,23 @@
|
||||
lockfileVersion: '9.0'
|
||||
|
||||
settings:
|
||||
autoInstallPeers: true
|
||||
excludeLinksFromLockfile: false
|
||||
|
||||
importers:
|
||||
|
||||
.:
|
||||
dependencies:
|
||||
commander:
|
||||
specifier: ^12.0.0
|
||||
version: 12.1.0
|
||||
|
||||
packages:
|
||||
|
||||
commander@12.1.0:
|
||||
resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
snapshots:
|
||||
|
||||
commander@12.1.0: {}
|
||||
12
packages/cli/src/index.ts
Normal file
12
packages/cli/src/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env node
|
||||
import { Command } from "commander";
|
||||
|
||||
const program = new Command();
|
||||
|
||||
program
|
||||
.name("moemail")
|
||||
.description("MoeMail CLI — Agent-friendly temporary email tool")
|
||||
.version("0.1.0")
|
||||
.option("--json", "output as JSON");
|
||||
|
||||
program.parse();
|
||||
14
packages/cli/tsconfig.json
Normal file
14
packages/cli/tsconfig.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"esModuleInterop": true,
|
||||
"strict": true,
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
"declaration": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
Reference in New Issue
Block a user