1.0.13 • Published 2 years ago

@chris.troutner/npm-lib-boilerplate v1.0.13

Weekly downloads
9
License
MIT
Repository
github
Last release
2 years ago

npm-lib-boilerplate

This repository is a code 'boilerplate' for starting a new npm library. It contains the following features:

  • Semantic Release configured to work with Travis CI.
  • Automatic linting using Standard JavaScript.
  • Unit and integration tests using Mocha and Chai, following the best practices and design patterns in this YouTube video:
    • Uses ECMAScript 2015 Class for business logic and utility libraries.
    • Follows TDD best practices.
    • Uses _this to maintain context to the instance of the class.
    • Uses Sinon stubs to mock external dependencies for unit tests.
    • Each function is wrapped in try/catch statements, allowing thrown errors to 'bubble up' to the top-level function, and give every function along the way an opportunity to handle exceptions.
    • Testing assertions focus on properties and structure, not values.

Licence

MIT

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago