lj-ditrapani / ts-node-skeleton

TypeScript node.js project skeleton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeScript Node Skeleton

TypeScript node.js project skeleton. Clone this and modify.

Docker

sh docker-build.sh
sh docker-run.sh

Developing

Setup

Install node with nvm.

nvm install     # one-time install
nvm use         # each time you enter the project directory

Install npm packages.

npm install

Build

npx tsc

Run

npm start

Run during dev

While developing, you can skip building by using tsnode.

npm run start-dev

Format, lint, build, test

npm run all

Test coverage

# Run the tests with `npm run all` or
npm test
# This will generate the test coverage report
# Then open the test coverage report
firefox coverage/lcov-report/index.html

Generate documentation

npm run doc
firefox docs/index.html &

Update dependencies

npm run ncu

Publish

npm login
npm version patch/minor/major
npm publish

Author: Lyall Jonathan Di Trapani

About

TypeScript node.js project skeleton


Languages

Language:TypeScript 55.8%Language:Dockerfile 35.4%Language:Shell 8.7%