Skip to content

MM56/mm-signal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 build

Documentation

To generate the JSDoc :

npm run docs

To generate the documentation and deploy on gh-pages branch :

npm run docs:deploy

Testing

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 install

Then, run the tests :

npm test

To watch (test-driven development) :

npm run test:watch

For coverage :

npm run test:coverage

Releases

No releases published

Packages

No packages published