1.0.13 • Published 3 years ago

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

Weekly downloads
9
License
MIT
Repository
github
Last release
3 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

3 years ago

1.0.12

3 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago