opinions.js
v0.0.7
Published
A small CLI tool that installs various configuration files for JS projects.
Downloads
3
Maintainers
Readme
Opinions
An project setup tool that helps you maintain consistent project configurations across your codebases.
Installation
npm install -g opinionsUsage
Install Command
The install command copies bundled configuration files into your project:
opinions install [--path <directory>]Options:
--path: Target directory to install files into (defaults to current directory)
Help
To see available commands and options:
opinions --helpWhat's Included
Currently bundled files:
.editorconfig: Editor configuration for consistent coding styles
Development
This project is built with:
- TypeScript
- Minimist (CLI argument parsing)
- @inquirer/prompts (Interactive prompts)
- Node.js
Development Setup
# Install dependencies
npm install
# Link the package globally for development
npm run link
# Start TypeScript in watch mode
npm run devRelease Process
This project uses conventional commits and automated versioning. Here's how to release:
Commit Changes Use conventional commits for your changes:
# Format: type(scope): description # Examples: git commit -m "feat: add new editorconfig settings" git commit -m "fix: handle file permission errors" git commit -m "docs: update README with new commands"Commit Types:
feat: New featurefix: Bug fixdocs: Documentation changesstyle: Code style changesrefactor: Code refactoringperf: Performance improvementstest: Adding or modifying testsbuild: Build system changesci: CI configuration changeschore: Other changesrevert: Reverting changes
Version Bumping
# For patch releases (0.0.X) npm run release:patch # For minor releases (0.X.0) npm run release:minor # For major releases (X.0.0) npm run release:major # Or let standard-version determine the version based on commits npm run releaseThis will:
- Bump the version in package.json
- Generate/update CHANGELOG.md
- Create a git tag
- Create a commit with the changes
Publishing
# First, make sure you're logged in to npm npm login # Then publish npm run publishThe publish process will:
- Run tests
- Build the project
- Check for uncommitted changes
- Check for unpushed commits
- Check for outdated dependencies
- Publish to npm
- Push to git
- Create a GitHub release
Complete Release Example
# 1. Make your changes and commit them git add . git commit -m "feat: add new configuration options" # 2. Bump version and generate changelog npm run release:minor # 3. Review the changes git diff # 4. Push changes git push --follow-tags # 5. Publish to npm npm run publish
License
MIT
