-
Notifications
You must be signed in to change notification settings - Fork 0
Development
m1ngsama edited this page Dec 12, 2025
·
1 revision
- Node.js >= 16.0.0
git clone https://github.com/nbtca/prompt.git
cd prompt
pnpm install| Command | Description |
|---|---|
pnpm run dev |
Run TypeScript source directly |
pnpm run dev:watch |
Run with file watching |
pnpm run build |
Compile TypeScript to JavaScript |
pnpm start |
Run compiled code |
pnpm run clean |
Remove dist directory |
pnpm run devRuns TypeScript source directly without auto-restart. Exit with menu option or Ctrl+C.
pnpm run dev:watchAuto-restarts on file changes. Not recommended for interactive testing.
pnpm run build
pnpm startsrc/
├── config/ # Configuration constants
│ ├── data.ts # URLs and app info
│ └── theme.ts # Color themes
├── core/ # Core functionality
│ ├── logo.ts # Logo display logic
│ ├── menu.ts # Main menu system
│ ├── ui.ts # UI components
│ └── vim-keys.ts # Vim key bindings
├── features/ # Feature modules
│ ├── calendar.ts # Event calendar
│ ├── docs.ts # Documentation viewer
│ ├── repair.ts # Repair service
│ └── website.ts # Website links
└── main.ts # Application entry point
- axios - HTTP requests
- ical.js - ICS calendar parsing
- marked + marked-terminal - Markdown rendering
- chalk - Terminal colors
- inquirer - Interactive prompts
- open - Browser integration
- TypeScript 5.3+
- tsx - TypeScript execution
- @types/* - Type definitions
- Use TypeScript strict mode
- Add JSDoc comments for functions
- Use .js extension in imports (even for .ts files)
- Keep code simple and readable
- Fork the repository
- Create a feature branch
- Follow existing code style
- Add appropriate comments
- Ensure build passes
- Submit pull request