> git clone https://github.com/jwill9999/Subpub.git
> cd subPub
> npm install
> npm run build
> npm run watch - for watch mode
This is a simple demonstration of the sub / Pub design pattern. It uses modules using the common js pattern of export and require statements. Browserify is built in for cross browser compatability and compilation into a bundle file containing all the js code.
NPM Build System
Browserify
Modules
Sub/Pub Design Pattern
Practical example
Commented code for reference