@maltty/cli
v1.0.0-rc.2
Published
DX companion CLI for the maltty framework
Maintainers
Readme
@maltty/cli
DX companion CLI for the maltty framework. Provides scaffolding, build tooling, a dev server, and diagnostics for maltty-based CLI projects.
Installation
pnpm add -D @maltty/cliThis package installs the maltty binary.
Commands
maltty init
Scaffold a new maltty CLI project with a recommended directory structure, config file, and starter command.
maltty initmaltty build
Bundle your CLI using tsdown. Reads maltty.config.ts for entry point, output directory, and compile targets.
maltty build
maltty build --compile # produce standalone binariesmaltty dev
Start a dev server that watches for changes and rebuilds automatically.
maltty devmaltty commands
List all registered commands in the project.
maltty commandsmaltty doctor
Run diagnostics to verify your project setup, dependencies, and configuration.
maltty doctormaltty stories
Launch the stories viewer TUI for browsing and previewing component stories in the terminal. Discovers .stories.tsx files in the project and renders them with an interactive props editor.
maltty stories
maltty stories --include "src/components/**/*.stories.tsx"Configuration
The CLI reads from maltty.config.ts in your project root:
import { defineConfig } from 'maltty/config'
export default defineConfig({
entry: './src/index.ts',
commands: './src/commands',
build: {
out: './dist',
target: 'node18',
minify: false,
},
compile: {
targets: ['darwin-arm64', 'linux-x64'],
},
})License
MIT -- GitHub
