0
0
Fork 0

Initial commit

This commit is contained in:
Oliver 2022-12-23 15:19:37 -06:00 committed by GitHub
commit 56f2195962
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 1121 additions and 0 deletions

35
makefile Normal file
View file

@ -0,0 +1,35 @@
# The node executables to care about
NODE = node
PACKAGE_MANAGER = pnpm
# The folder that Typescript compiles the Javascript into
OUT_DIR = dist
#=============================================================================#
# DO NOT CHANGE ANYTHING BELOW THIS LINE
#=============================================================================#
BIN := $(shell $(PACKAGE_MANAGER) bin)
.PHONY: $(OUT_DIR) dev prod run rund interfaces
$(OUT_DIR): interfaces
tsc --outDir $(OUT_DIR)
interfaces:
-$(BIN)/ts-node generateInterfaces.ts 2>/dev/null
@$(RM) src/types/index.ts
@echo Finished creating interfaces
dev: $(OUT_DIR)
NODE_ENV=development $(NODE) $(OUT_DIR)/main.js
prod: $(OUT_DIR)
NODE_ENV=production $(NODE) $(OUT_DIR)/main.js
rund:
NODE_ENV=development $(NODE) $(OUT_DIR)/main.js
run:
NODE_ENV=production $(NODE) $(OUT_DIR)/main.js