This NPM Package Template provides a comprehensive starting point for developing and publishing your own NPM packages. It includes a basic setup with essential configurations to help streamline the development process, ensuring your package is ready for the NPM registry with ease and efficiency.
- Easy Setup: Quick start with minimal configuration.
- ESLint & Prettier: Pre-configured for code quality and formatting.
- Continuous Integration: Template includes GitHub Actions for CI/CD.
- Documentation: Basic README setup to kickstart your documentation.
Before you begin, ensure you have the following installed:
- Node.js (v12.x or later)
- npm (v6.x or later)
To use this template for your project, follow these steps:
-
** kickstart your project **
npx @princevish/npm-package-template your-package-name cd your-package-name
-
** Building the Package **
- After you have completed developing your package, you can build it to NPM.
npm run lint npm run build npm run version:add npm run version:commit
-
** Publishing to NPM **
- After you have completed building package, you can publish it to NPM. Make sure you have an NPM account and are logged in to your NPM CLI.
npm login npm publish
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
-
Create your Feature Branch (
git checkout -b feature/AmazingFeature
) -
Commit your Changes (
git commit -m 'Add some AmazingFeature'
) -
Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Happy Coding! 🚀