0.1.14 • Published 10 years ago
mogger v0.1.14
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 = require('Mogger');
// get the tracer
var tracer = new Mogger({
// list of targets
surrogateTargets: [
{ title: 'SIMPLE_OBJ', target: simpleObj }
]
});
// start watching some targets
tracer.traceObj({
before: { message: 'SimpleObj -> ', css: 'color: #A42' },
targetTitle: 'SIMPLE_OBJ', targetConfig: { css: 'color: #E42' }
});
Testing
// test all + watch
gulp
// test something(grep) + watch
mocha --watch -g 'REGEX_NAME_OF_TEST' -G
Testing and debugging
// test + watch
gulp
//instal tools
sudo npm install -g mocha
sudo npm install -g node-inspector
// debug + watch
node-debug _mocha --watch
// debug something(grep) + watch
node-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
0.1.14
10 years ago
0.1.13
10 years ago
0.1.12
10 years ago
0.1.11
10 years ago
0.1.10
10 years ago
0.1.9
10 years ago
0.1.8
10 years ago
0.1.7
10 years ago
0.1.6
10 years ago
0.1.5
10 years ago
0.1.4
10 years ago
0.1.3
10 years ago
0.0.75
10 years ago
0.0.74
10 years ago
0.0.73
10 years ago
0.0.20
10 years ago
0.0.10
10 years ago
0.0.9
10 years ago
0.0.8
10 years ago
0.0.71
10 years ago
0.0.7
10 years ago
0.0.6
10 years ago