Skip to content

Commit

Permalink
Add build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
angellandros committed Oct 19, 2019
1 parent 799b3f0 commit c6c5b32
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
/node_modules/
/package-lock.json
/src/routes/routes.ts
/api/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ npm install
## Build and Run
To build the application:
```bash
$ npm run build
$ npm run build:all
```

And to run the server:
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"tslint": "^5.20.0"
},
"scripts": {
"build": "tsc -p src",
"build:routes": "mkdir -p src/routes && tsoa routes",
"build:swagger": "mkdir -p api && mkdir -p api/dist && tsoa swagger",
"build:ts": "tsc -p src",
"build:all": "npm run build:routes && npm run build:swagger && npm run build:ts",
"server": "node dist/main.js",
"lint": "tslint -c tslint.json 'src/**/*.ts'"
},
Expand Down

0 comments on commit c6c5b32

Please sign in to comment.