Mogger
Mogger it is a way to log your app without change him. Uses AOP (Aspect-oriented programming) library named meld.js and other library that facilitates the print of colorful outputs in browser, the colorful-logger.
The goal of this library is to be easy to configure and to help the programmer to understand the inner of some javascript codes.
Instalation
npm install mogger --save
Usage
var Mogger = ; // get the tracervar tracer = // list of targets surrogateTargets: title: 'SIMPLE_OBJ' target: simpleObj ; // start watching some targetstracer;
Testing
// test all + watchgulp // test something(grep) + watchmocha --watch -g 'REGEX_NAME_OF_TEST' -G
Testing and debugging
// test + watchgulp //instal toolssudo npm install -g mochasudo npm install -g node-inspector // debug + watchnode-debug _mocha --watch// debug something(grep) + watchnode-debug _mocha --watch -g 'REGEX_NAME_OF_TEST'
Test coverage
# start coverage + watch gulp coverage # open "Code coverage report" google-chrome coverage/lcov-report/src/index.html
Examples
by: saitodisse