1.0.0 • Published 8 years ago
mm-signal v1.0.0
MM Signal
Usage
Basic
Basic example.
import Signal from 'mm-signal'
const cb = function() {console.log("callback");};
const signal = new Signal();
signal.add(cb);
signal.dispatch();Build
To build the sources with babel in ./lib directory :
npm run buildDocumentation
To generate the JSDoc :
npm run docsTo generate the documentation and deploy on gh-pages branch :
npm run docs:deployTesting
To run the tests, first clone the repository and install its dependencies :
git clone https://github.com/MM56/mm-signal.git
cd mm-signal
npm installThen, run the tests :
npm testTo watch (test-driven development) :
npm run test:watchFor coverage :
npm run test:coverage1.0.0
8 years ago