1.0.2 • Published 8 months ago

packcraft v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

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)
  1. 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:

  1. Clone the repository
git clone https://github.com/Mrezagolbaba/packcraft.git
  1. Install dependencies
cd packcraft
npm install
  1. 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.

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago