node-lib-boilerplate
Minimal boilerplate aimed to speed up the process of creating a new NodeJS library.
Last updated 3 years ago by jkomyno .
MIT · Original npm · Tarball · package.json
$ cnpm install node-lib-boilerplate 
SYNC missed versions from official npm registry.

node-lib-boilerplate

Minimal boilerplate aimed to speed up the process of creating a new NodeJS library.


Travis npm npm

Features

  • Type safety with Flow
  • Transpilation to ES* with Babel Env
  • Continuos CI with Travis
  • Test suites with Jest
  • Test coverage with Codecov
  • Static code analysis with Eslint
  • Standard format style with Editorconfig

Available Scripts

  • clean: Deletes the compiled lib folder;
  • build: Runs the clean script, transpiles the code with babel to the lib folder and copies the flow references;
  • build:watch: Runs the build script in watch mode;
  • lint: Runs eslint;
  • flow: Verifies if there are flow errors;
  • prepublish: Runs all the linting/test suites and creates a brand new build;
  • test: Runs the test suites with jest;
  • test:watch: Runs the tests in watch mode;
  • test:cov: Runs the tests and displays coverage (which should't get below 100%!);
  • test:ci: Tests lint, flow, and jest errors;

You can build your own light version of setting the env.targets property in .babelrc to "node": "current". The version deployed to npm requires at least NodeJS 8.0.0.

License

This project is MIT licensed.

Current Tags

  • 1.0.1                                ...           latest (3 years ago)

2 Versions

  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |