Skip to content

Instantly share code, notes, and snippets.

@angellandros
Created October 19, 2019 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angellandros/05b1078092d1481adde8159b02505cb4 to your computer and use it in GitHub Desktop.
Save angellandros/05b1078092d1481adde8159b02505cb4 to your computer and use it in GitHub Desktop.
Sample package.json scripts for TSOA
{
...
"scripts": {
"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'"
},
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment