huafu / trucknet-boilerplate-typescript-node

Boilerplate for node project on typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trucknet Boilerplate for nodejs project on Typescript

A sample node project on typescript with tslint (and trucknet tslint config), prettier, lint-staged, commitizen, jest, ts-jest, jest-coverage-badges preinstalled and preconfigured.

Coverage badge

Getting started

  1. git clone this repository
  2. rm -rf .git
  3. git init
  4. git remote add origin
  5. Edit package.json to change name, description and git repository

Start

npm run build to build js, npm start to start

Tests

npm test to launch all tests.

Unit tests should be near the file with .spec.ts extention. Integration tests should be in tests

About

Boilerplate for node project on typescript


Languages

Language:TypeScript 53.1%Language:JavaScript 46.9%