Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

Commit

Permalink
Add command to rebuild and run production
Browse files Browse the repository at this point in the history
  • Loading branch information
eckon committed Dec 7, 2019
1 parent 1f176d8 commit 71dbec7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@
The Swagger API is under [/swagger](http://localhost:3000/swagger).


```bash
$ npm install
# build + start:prod in one command
$ npm run build:start

# re/build dist
$ npm run build
# production mode
$ npm run start:prod

# development + watch mode
$ npm run start:dev

```

# TODO

A list of [TODOs](TODO.md)
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build",
"build:start": "nest build && node dist/main",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
Expand Down

0 comments on commit 71dbec7

Please sign in to comment.