unknownmoon / utility-node-boilerplate

[in use, not-being-maintained] Simple NodeJS boilerplate, with basic unit test powered by Mocha/Chai/Sinon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

utility-node-boilerplate

Note that this project is still in unstable stage

GitHub version Dependency Status devDependency Status

Master Develop
Build Status Master Build Status Develop
codecov codecov

Simple NodeJS boilerplate, with basic unit test powered by Mocha/Chai/Sinon;

Table of Contents

Development

Initialisation

# Have Node ^6.0.0 & NPM ^3.8.6 installed

# install dependencies
npm install

Clean Up

# remove the built code, for now only the test result 
npm run clean

# remove the built code and node modules
npm run reset

Test

Coverage report can be found in ./coverage folder.

npm test

Build

The source code is written in ES2015, hence before NodeJS fully support ES2015, we need to build the code to es2015-node using Babel.

The built code can be found in ./dist folder.

npm run build

Generate JSDoc Documentation

# generate the documentation
npm run doc

# serve the generated documentation using `http-server`
# note that no watch functionality is hooked, hence
# changing code won't trigger documentation regeneration.
npm run serve-doc

Release

Shorthand script to generate release content, including ./coverage, ./jsdoc and ./dist.

npm run release

About

[in use, not-being-maintained] Simple NodeJS boilerplate, with basic unit test powered by Mocha/Chai/Sinon

License:ISC License


Languages

Language:JavaScript 100.0%