Lessons from my workshop about design patterns. The master branch has all design patterns with tests.
To install the project, just clone the repo and run npm install
.
To start, there is some scripts like:
npm start
Executes two other tasks,watch:src
andwatch:test
. This two tasks observessrc
andtest
folders and executes some scripts, like babel transpiler and mocha.npm test
Default task to run mocha tests and istanbul coverage analysis.
Initially, there are 6 JavaScript Design Patterns on this repo (constructor has a variation, the prototype). The idea is to add all known JS design patterns.
Link to all patterns:
All patterns have a specific test on ./test
folder using mocha.