tkmn0 / typescript_express_base_example

Typescript project base with fundamental settings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typesciprt Express Example Setup

Containts

  • TypeScript
  • Express
  • Lint
  • Hot ReLoad
  • Test

Commands

run as develop
npm run dev
This will start typescript file using ts-node. When some file was edited, procces will auto reload (using nodemon). Server will run at http://localhsot:3000

build
npm run build
Compile typescript files with tsconfig.json and tsconfig.build.json. Test files and folders will be excluded. After build, dist folder will be created.

test
npm run test
Test **/*.test.ts and ./__test__/** files using jest. Example test is here

clean
npm run clean
Remove dist folder using rimraf (for Windows).

Settings

TypeScript

Express

  • express
  • @types/express
  • main

Lint

Hot ReLoad

Test

About

Typescript project base with fundamental settings


Languages

Language:TypeScript 67.4%Language:JavaScript 32.6%