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 startExecutes two other tasks,watch:srcandwatch:test. This two tasks observessrcandtestfolders and executes some scripts, like babel transpiler and mocha.npm testDefault 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.