Minimalistic Node.js Boilerplate code with Tap and Babel
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.babelrc
.editorconfig
.eslintrc.js
.gitignore
LICENSE
README.md
package-lock.json
package.json

README.md

Minimalistic ES6+ starter with Babel and Tap for testing

just a simple nodejs boilerplate project starter includes:

  • Babel.js for ES6+ modules
  • Tap for testing
  • ESLint for linting (airbnb rules and precommit hooks)

start/test

Check package.json for full list of run scripts.

Start

npm start

Watch and Restart

npm run watch

Testing

npm test

if you prefer continuous testing while you are coding, just use nodemon.

# npm install -g nodemon
nodemon -x npm test

Test Coverage

Uses codecov to generate a nice code coverage report. http://www.node-tap.org/coverage/

npm run test:coverage

Directory structure

.
├── LICENSE # MIT
├── README.md # You are here
├── lib # put all your code here
│   ├── index.js
│   └── index.test.js # Use <filename>.test.js for tests
└── package.json