build-a-npm
Version:
A tool to create and publish Node packages with automatic version bumping and GitHub integration.
52 lines (31 loc) β’ 2.14 kB
Markdown
# π οΈ Build a Node.js Package
**`build-a-npm`** is a robust and user-friendly CLI tool designed to simplify the creation, management, and publishing of Node.js packages. With an interactive setup, automatic version bumping, and seamless integration with npmjs.com and GitHub Packages, itβs the perfect companion for developers looking to streamline their package development workflow. π
## β¨ Features
- **π§ Interactive Setup**: Guided prompts for package details, including name, version, author, license, and more.
- **π’ Automatic Version Bumping**: Supports `patch`, `minor`, and `major` version increments with automated `package.json` updates.
- **π Dual Publishing**: Publish to npmjs.com, GitHub Packages, or both with a single command.
- **π€ GitHub Actions Integration**: Generates workflows for automated publishing and documentation deployment.
- **π Git Integration**: Initializes a git repository and includes scripts for committing and pushing changes.
- **π TypeScript Support**: Optional TypeScript setup for modern JavaScript development.
- **π Comprehensive File Generation**: Creates essential files like `package.json`, `index.js`, `README.md`, `.gitignore`, `.npmignore`, and more.
- **π Package Upgrades**: Updates existing packages to leverage the latest `build-a-npm` features without affecting custom code.
- **π Cross-Platform**: Works seamlessly on Windows, macOS, and Linux.
- **π GitHub Pages Support**: Generates documentation and publishes it to GitHub Pages.
- **π§ CI/CD Support**: Templates for GitHub Actions, CircleCI, and GitLab CI.
## π¦ Installation
Please visit the full tutorial for better understanding:
π [Documentation](https://git.hsinghhira.me/build-a-npm/)
## π€ Contributing
Feel free to open issues or submit PRs:
π [GitHub Repository](https://github.com/HSinghHira/build-a-npm)
## π© Contact me
Feel free to contact me related to anything:
π [Contact me](https://me.hsinghhira.me/contact/)
## π License
This project is licensed under the [MIT License]()
Copyright (c) 2025, Harman Singh Hira