useparagon / node-typescript-boilerplate

Minimalistic Node.js + TypeScript boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paragon Logo

The Paragon Minimalistic Node.js + TypeScript boilerplate. Originally forked from this repo.

What's included:

  • TypeScript 3.6
  • TSLint with Microsoft Rules
  • Jest unit testing and code coverage,
  • Type definitions for Node.js and Jest,
  • Prettier to enforce a consistent code style,
  • NPM scripts for common operations,
  • .editorconfig for consistent file format.

Quick start

This project is intended to be used with the latest Active LTS release of Node.js. To start, just clone the repository with following commands:

git clone https://github.com/useparagon/node-typescript-boilerplate
cd node-typescript-boilerplate
npm install

Copy the example.env file to a file called .env and add the configuration needed for the required services.

Available scripts

  • compile - compile a Paragon server
  • clean - remove coverage data, Jest cache and transpiled files,
  • build - transpile TypeScript to ES6,
  • build:watch - interactive watch mode to automatically transpile source files,
  • lint - lint source files and tests,
  • test - run tests,
  • test:watch - interactive watch mode to automatically re-run tests

About

Minimalistic Node.js + TypeScript boilerplate


Languages

Language:TypeScript 67.5%Language:JavaScript 32.5%