1.0.2 ⢠Published 8 months ago
packcraft v1.0.2
packcraft
A CLI tool to quickly scaffold new projects with common development tools and configurations. Packcraft helps developers jumpstart their projects by automatically setting up a well-structured development environment with best practices and modern tooling.
Why Packcraft?
- š Zero Configuration: Get started with new projects in seconds, not hours
- šÆ Best Practices: Follows industry standards and modern development practices
- š§ Flexible Setup: Choose between JavaScript or TypeScript with customizable tooling
- š¦ Smart Defaults: Comes with sensible default configurations that you can customize later
- š ļø Development Ready: Includes essential development tools preconfigured:
- Code Formatting (Prettier)
- Code Linting (ESLint)
- Testing Framework (Jest)
- Git Hooks (Husky)
- Commit Message Linting (Commitlint)
- šØ Clean Structure: Generates a well-organized project structure
- š Multiple Package Managers: Supports npm, yarn, and pnpm
- š Documentation: Includes ready-to-use README and configuration files
What's Included?
Based on your selections, Packcraft can set up:
JavaScript Projects
- Modern ES6+ setup
- Node.js best practices
- CommonJS or ESM modules
TypeScript Projects
- Latest TypeScript configuration
- Type checking and compilation setup
- Source mapping for debugging
Development Tools
- Prettier: Consistent code formatting across your project
- ESLint: Code quality rules and best practices
- Jest: Testing framework with example tests
- Husky: Automated git hooks for better code quality
- Commitlint: Standardized commit messages
Installation
npm install -g packcraft
Features
- š Quick project setup
- š§ Support for JavaScript and TypeScript
- š ļø Configurable development tools:
- Prettier for code formatting
- ESLint for code linting
- Jest for testing
- Husky for git hooks
- Commitlint for commit message linting
- š¦ Multiple package manager support (npm, yarn, pnpm)
Usage
npx packcraft
Then follow the interactive prompts: 1. Enter your project name 2. Choose language (JavaScript/TypeScript) 3. Select development tools setup:
- Basic (Prettier + ESLint)
- Testing (Prettier + ESLint + Jest)
- Full (All tools)
- Custom (Pick your tools)
- Choose your preferred package manager
Generated Project Structure
your-project/
āāā src/
ā āāā index.js/ts
āāā package.json
āāā README.md
āāā .prettierrc (if selected)
āāā .eslintrc (if selected)
āāā jest.config.js (if selected)
āāā tsconfig.json (if TypeScript)
āāā .gitignore
Development
To contribute to this project:
- Clone the repository
git clone https://github.com/Mrezagolbaba/packcraft.git
- Install dependencies
cd packcraft
npm install
- Create symlink for testing
npm link
License
ISC
Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
Support
If you have any questions or run into issues, please open an issue on the GitHub repository.