ojhel
v0.1.8
Published
Interactive CLI to generate project-specific .gitignore files
Maintainers
Readme
ojhel
Interactive CLI to generate project-specific .gitignore files with zero configuration.
Features
- 5 Project Types: Vite React, Next.js, Express, Fastify, Vanilla JS
- Language Support: TypeScript and JavaScript
- Interactive Prompts: Simple, guided setup
- Smart File Handling: Append to or override existing
.gitignore - Next.js Support: Automatically creates
next-env.d.ts - Zero Config: Works out of the box
Installation & Usage
Quick Start (Recommended)
# We Can use a npx/bunx
pnx ojhelInstall Globally
pnpm add -g ojhel
ojhelHow It Works
- Select your project type
- Choose your language (TypeScript or JavaScript)
- Decide what to do if
.gitignorealready exists - Generated files appear in your project root
Supported Project Types
| Project Type | Description | |-------------|-------------| | Vite React | Modern React with Vite bundler | | Next.js | React framework with server-side rendering | | Express | Minimal Node.js web framework | | Fastify | High-performance Node.js framework | | Vanilla JS | Minimal JavaScript project |
What Gets Generated
All Project Types
.gitignorewith project-specific patterns
Next.js Only
next-env.d.ts(TypeScript environment types)
.gitignore Patterns
Vite React
- Node modules, dependencies, lock files
- Vite build output (
dist/,dist-ssr/,*.local) - IDE configs, OS files
- Logs and environment variables
- TypeScript build info (if selected)
Next.js
- Next.js specific (
.next/,out/,*.pem) - Prisma client
- Test coverage
- Environment, IDE, OS, and log files
- TypeScript patterns (if selected)
Express / Fastify
- All Node.js patterns (logs, dependencies, build)
- Runtime data (pids, seeds)
- Coverage reports
- Cache files
- TypeScript patterns (if selected)
Vanilla JS
- Minimal setup:
node_modules/,.env,dist/ - IDE, OS, and log files
Handling Existing .gitignore
If .gitignore already exists, ojhel offers two options:
- Append - Adds new patterns to the end of existing file
- Override - Replaces the entire file with generated patterns
Environment Variables
No configuration needed. ojhel works with sensible defaults:
.envfiles are always ignored- Package manager lock files (
pnpm-lock.yaml,package-lock.json) are ignored - IDE directories (
.vscode/,.idea/) are ignored
TypeScript Support
When you select TypeScript, additional patterns are added:
*.tsbuildinfo- TypeScript build cache- Build output directories
Publishing to npm
This package is published to npm as ojhel. Users can run it immediately without installation:
pnpm dlx ojhelDevelopment
Setup
pnpm installBuild
pnpm buildDevelopment Mode
pnpm devType Check
pnpm typeMake Changes to the Remote NPM:
npm version patch
npm publish
git push && git push --tags
Lint
pnpm lintLicense
MIT
Author
Dipesh
