npm-module-init

Create npm module skeleton.


Keywords
npm, module, scaffold, commitizen, jest, scaffolding, semantic-release, standard
License
MIT
Install
npm install npm-module-init@1.3.3

Documentation

npm-module-init

npm version Build Status

Opinionated npm module scaffolding using jest, standard, commitizen and semantic-release.

Getting started


// use as a global dependency
$ npm install npm-module-init -g
$ npm-module-init my-npm-module

// or use without installing
$ npx npm-module-init my-npm-module

Project Structure

This will generate the following project structure.

|-- my-npm-module
  |-- .editorconfig
  |-- .gitignore
  |-- .travis.yml
  |-- index.js
  |-- index.test.js
  |-- LICENCE.md
  |-- package.json
  |-- README.md

Usage

Commit your changes.

npm run commit

Run tests.

npm t

Publish a release

Creating a release version and publishing it to the npm registry is handled by semantic-release. This is then triggered when travis build was successful. So ensure that travis is able to publish to npm.