README
ts-logger
An experimental logger library for NodeJS written in TypeScript (working progress).
Use
$ npm install ts-logger
Development
- Clone this repo
git clone https://github.com/cubodehelio/ts-logger.git. - Install deps:
npm install - typings install
Transpile
Using tsconfig.json in the project root
$ node_modules/typescript/bin/tsc -p .
Development in Visual Studio Code
- Install
typingsglobally in your system:npm install typings -g - Install the TypeScript definitions for the project running
typings installcommand in the root. - Once in VSC you can build (and watch for changes) the code with
ctrl+shift+b(ctrl+shift+hto see the output).
By now the vsc build task just fires tcs -p . command in the project root, which reads settings from tsconfig.json file.
TODO
- Extend
ExpressRequesttype from node IncommingMessage (?). - Extend
ExpressResponsetype from node ServerResponse (?). - Make Grunt based build system for transpilation, release, etc..
- Should the traspilation be made with babel?