Skip to content

A boilerplate with opinionated setup to help you kickstart your own Node.js package.

License

Notifications You must be signed in to change notification settings

boilertown/node-package-boilerplate

Repository files navigation

♨️ Node Package Boilerplate

A boilerplate with opinionated setup to help you kickstart your own Node.js package.

MIT license

The Setup

Get Started

  • Use Boilertown CLI.

    # npm
    npm create boilertown@latest -- -b node-package-boilerplate
    
    # yarn
    yarn create boilertown -b node-package-boilerplate
    
    # pnpm
    pnpm create boilertown -b node-package-boilerplate
    
    # bun
    bun create boilertown/node-package-boilerplate [package-name]
  • Click the green "Use this template" button to generate a new repository with the same structure and files.

    Use this template button

    Ref: Github Docs

Development

  • Build the package to release:

    pnpm build
  • Create changeset:

    pnpm changeset

Release & Publish

This boilerplate uses changesets to automatically generate CHANGELOG, create releases and publish to NPM registry via GitHub Actions. You can see action details at release.yml.

To automating publish your Node.js package, follow these steps:

P/S: Remember to check the Allow GitHub Actions to create and approve pull requests in your repo Settings > Actions > General & scroll to Workflow permissions.

Contributing

node-package-boilerplate ❤️ your contributions. If you have any ideas, suggestions, fixes, feel free to contribute.

About

A boilerplate with opinionated setup to help you kickstart your own Node.js package.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks