This lib makes even easier to use the npm Debug adding some severity levels.
const { createConsoleDebugger } = require('leveled-debug')
const debuggers = createConsoleDebugger('test')
debuggers.log('test')
/*
console outs: test:log test +0ms
*/
First, you should be using yarn, if you don't, start installing by
npm install -g yarn
Now, run yarn
to restore the dependencies and then yarn build
.
For ease debug and inspection, use yarn build:dev
, this way, source mapping will be generated inline on your transpiled files.
There is already one ./.vscode/launch.json
configured to use sourceMaps on debug, put some breakpoints on your source files, hit F5 and be happy.
Jest is already configured to respect some rules and generate coverage, run yarn test