Create a makefile for ease of use

This commit is contained in:
Oliver Akins 2022-06-23 11:40:25 -06:00
parent be25b95789
commit 448b089bf9
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

19
server/makefile Normal file
View 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