Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-nm

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-nm

`npm init nm` to create a npm module.

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

create-nm

NPM version Build status Coverage status Dependency status CircleCI

npm init nm to create a npm module.

Never manually do the linting, versioning, tagging, editing changelog and pushing commit, unleash the power of hooks.

Create a npm module

  • use npm
# choose one of the following methods
$ npm init nm [name]
$ npx create-nm [name]
$ npm i -g create-nm && create-nm [name]
  • use yarn
$ yarn create nm [name]

Workflow of publishing a npm module

Commit and publish, everything will be done automatically.

$ git commit
$ npm publish
                       +-------------------+
version :  1.1.0       |                   |
    tag : v1.1.0       |   $ git commit    |
                       |                   |
                       +--+----------------+
                          |
                          +-> lint-staged

                       +-------------------+
                       |                   |
                       |   $ git commit    |
                       |                   |
                       +--+----------------+
                          |
                          +-> lint-staged

                                 +
                                 |
                                 |
                                 |
                                 v

                       +-------------------+
                       |                   |
version :  1.1.1       |  $ npm publish    |
    tag : v1.1.1       |                   |
                       +--+----------------+
                          |
                          |   update npm version
                          |   update CHANGELOG.md
                          |   commit version with changelog
                          +-> add git tag
                              git push commit
                              npm publish

Optional workflow

Use git cz instead of git commit, this will generate better changelog. You need to install commitizen and create ~/.czrc.

$ npm install commitizen -g
$ echo '{ "path": "cz-conventional-changelog" }' > ~/.czrc

Workflow:

$ git cz
$ npm publish
  • np A better npm publish.
  • commitizen Simple commit conventions for internet citizens.
  • conventional-changelog Generate a changelog from git metadata.
  • lint-staged Lint files staged by git.
  • husky Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)].

License

MIT

FAQs

Package last updated on 01 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc