Skip to content

jramcast/create-js-package

Repository files navigation

Create a JS package with es6, testing, linting, and publication tools included. Generated projects include the following features:

  • Unit testing with mocha, chai and sinon.
  • Test watcher for continous testing.
  • Test coverage with istanbul.
  • ES6 linting based on airbnb coding standard.
  • Release scripts and automatic changelog generation based on commit messages, following conventions defined in generate-changelog.

Build Status

Requirements

  • Node version >= 6

Usage

Install the tool globally

npm install -g create-js-package 

Navigate to the directory where you want to scaffold the app and run the command:

cd my-empty-repo/ create-js-package my-new-package 

Available commands

You generated package will have the following commands available:

Start the app

npm start 

Start the app in watch (dev) mode

npm run start:watch 

Run tests and calculate coverage:

npm test 

Run tests in watch (dev) mode. This allows continuous testing while developing:

npm run test:watch 

Run linter (coding standard):

npm run lint 

About

Create a JS package with testing, linting, and publication tools included

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published