Initial commit
This commit is contained in:
commit
233c1c4da6
14 changed files with 1085 additions and 0 deletions
32
makefile
Normal file
32
makefile
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# 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 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
|
||||
|
||||
run:
|
||||
NODE_ENV=production $(NODE) $(OUT_DIR)/main.js
|
||||
Loading…
Add table
Add a link
Reference in a new issue