Create a makefile for ease of use
This commit is contained in:
parent
be25b95789
commit
448b089bf9
1 changed files with 19 additions and 0 deletions
19
server/makefile
Normal file
19
server/makefile
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
.PHONY: build dev prod test
|
||||||
|
|
||||||
|
build:
|
||||||
|
tsc
|
||||||
|
|
||||||
|
dev: build
|
||||||
|
NODE_ENV=development node dist/main.js
|
||||||
|
|
||||||
|
prod: build
|
||||||
|
NODE_ENV=production node dist/main.js
|
||||||
|
|
||||||
|
rund:
|
||||||
|
NODE_ENV=development node dist/main.js
|
||||||
|
|
||||||
|
runp:
|
||||||
|
NODE_ENV=production node dist/main.js
|
||||||
|
|
||||||
|
test:
|
||||||
|
node_modules/mocha/bin/_mocha -r ts-node/register tests/**/*.spec.ts
|
||||||
Loading…
Add table
Add a link
Reference in a new issue