ddnsman
Version:
DDNS Management
27 lines (24 loc) • 586 B
Plain Text
default: build
SHELL:=/bin/bash
UNAME_S := $(shell uname -s)
TSC=./node_modules/typescript/bin/tsc
JEST=./node_modules/jest/bin/jest.js
TS_NODE=./node_modules/ts-node/dist/bin.js
install:
yarn install
run: install
$(TS_NODE) ./src/server.ts
copy-files:
@if [ $(UNAME_S) = "Darwin" ]; then\
rsync -mr src/ dist --exclude=*.ts;\
else\
find src -type f -not -name '*.ts' | xargs -I {} cp --parents {} dist/;\
fi
compile: install clean
$(TSC)
build: compile copy-files
test: install
$(JEST)
clean:
rm -rf ./dist