@wuchuheng/setup
v1.1.7
Published
CLI tool to initialize project with common configuration files
Readme
@wuchuheng/setup
A CLI tool to quickly initialize your project with common configuration files like .gitattributes and .editorconfig.
Features
- 🚀 Quick project initialization
- 📝 Adds essential configuration files:
.gitattributes- Ensures consistent line endings across different operating systems.editorconfig- Maintains consistent coding styles across different editors and IDEs
Installation
You can use this tool in two ways:
1. Using npx (Recommended)
npx @wuchuheng/setup2. Global Installation
npm install -g @wuchuheng/setupThen run:
setupUsage
- Navigate to your project directory:
cd your-project- Run the setup command:
npx @wuchuheng/setupThe tool will automatically:
- Copy
.gitattributesto your project - Copy
.editorconfigto your project - Create any necessary directories
- Show progress with emoji indicators
What Gets Added
.gitattributes
- Ensures consistent line endings (LF) for:
- TypeScript/JavaScript files (*.ts, *.tsx, *.js, *.jsx)
- Markdown files (*.md)
- HTML files (*.html)
- CSS files (*.css)
- PHP files (*.php)
.editorconfig
- Maintains consistent coding styles across different editors and IDEs
- Configures:
- Indentation
- Line endings
- Character encoding
- And more...
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Reporting Issues
If you find a bug or have a feature request, please:
- Check if the issue already exists in the issues page
- If not, create a new issue with:
- A clear title
- Detailed description of the problem
- Steps to reproduce (if it's a bug)
- Expected behavior
- Screenshots (if applicable)
Repository
- GitHub: https://github.com/wuchuheng/com.wuchuheng.npm.project-setup
- Issues: https://github.com/wuchuheng/com.wuchuheng.npm.project-setup/issues
License
MIT License - see the LICENSE file for details
Author
wuchuheng
