Giter Club home page Giter Club logo

xmanscript-npm-package-boilerplate's Introduction

Commitizen friendly

NPM Package Template

Use this template to quickly set up and release npm packages with ease. This template is configured to automate the release process using semantic-release and provides commitizen support for standardized commit messages.

Getting Started

To get started with this template, follow these steps:

  1. Click the "Use this template" button at the top of the repository to create a new repository based on this template.

  2. Clone the newly created repository to your local machine:

    git clone https://github.com/your-username/your-package.git
  3. Change into the project directory:

    cd your-package
  4. Install the project dependencies:

    yarn install

Initializing Husky

Husky is a tool that helps you set up Git hooks easily. These hooks can run checks or tasks before you commit or push changes. This template uses Husky to enforce commit message conventions.

To initialize Husky, run the following command:

npx husky-init && yarn

Initializing Commitizen

Commitizen is a tool that helps you write consistent and conventional commit messages. It prompts you to fill in the required commit message fields, ensuring your commits are well-structured.

To initialize Commitizen with this template, run the following command:

npx commitizen init cz-conventional-changelog --yarn --dev --exact --force
  • Github Actions branch change: You have to modify the banch name to the branch name in which you want the release job to start.
name: Release
on:
  push:
    branches:
      - <<release branch name>>
  • Custom TypeScript Configuration: You can modify the TypeScript configuration in tsconfig.json to suit your project's needs.

Contributing

We welcome contributions to this project. If you have any bug fixes, feature additions, or improvements, please open an issue or submit a pull request. Make sure to follow the commit message conventions for your pull requests.

License

This project is licensed under the MIT License.

Acknowledgments

Support

If you have any questions or need assistance, please feel free to reach out through the GitHub Issues section of this repository.

Happy coding! ๐Ÿš€

xmanscript-npm-package-boilerplate's People

Contributors

laxmanpokhrel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.