Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 631 Bytes

README.md

File metadata and controls

51 lines (39 loc) · 631 Bytes

TypeScript Express

/app
  |-/.env
  |    |- .env.dev  # for development
  |    |- .env.prod # for production
  |- /src
  |    |- index.ts # entry point
  |- /webpack
  |    |- base.config.js
  |    |- dev.config.js
  |    |- prod.config.js
  |- nodemon.json
  |- package.json
  |- tsconfig.json

Setup

$ cp .env/.env.sample .env/.env.dev
$ cp .env/.env.sample .env/.env.prod
$ npm install

Development

$ npm run dev

ESLint & Prettier

$ npm run format

Build

Build development mode

$ npm run build:dev

Build production mode

$ npm run build