This is the structure for a Node.js project. It is using mocha
and chai
for testing and nyc
for coverage, nodemon
in npm watch to detect changes in files, eslint
as a code linter with airbnb-base preset and prettier
as code formatter. typescript
is used just for Javascript type checking using JSDoc comments.
This example is not using a task runner like grunt
or gulp
, instead of that, the necessary scripts were written in the file package.json which is faster and smaller than install a task runner, plugins, read the documentation of the plugins before to be able to using them, etc.