sheetjs/packages/otorp/Makefile

21 lines
550 B
Makefile
Raw Normal View History

2022-01-29 02:29:34 +00:00
LIBFILES=$(wildcard src/*.ts)
TSFILES=$(wildcard *.ts)
ENTRIES=$(subst .ts,.js,$(TSFILES))
.PHONY: all
all: $(ENTRIES)
index.node.js: index.node.ts $(LIBFILES)
2022-05-17 21:48:05 +00:00
npx esbuild@0.14.14 $< --bundle --outfile=$@ --platform=node --format=cjs
2022-01-29 02:29:34 +00:00
%.node.js: %.node.ts $(LIBFILES)
2022-05-17 21:48:05 +00:00
npx esbuild@0.14.14 $< --bundle --external:./ --outfile=$@ --platform=node
2022-01-29 02:29:34 +00:00
sed -i '' 's/ts-node/node/g' $@
%.js: %.ts $(LIBFILES)
2022-05-17 21:48:05 +00:00
npx esbuild@0.14.14 $< --bundle --outfile=$@ --platform=browser --format=iife --global-name=$* --target=es5
2022-01-29 02:29:34 +00:00
.PHONY: clean
clean:
rm $(ENTRIES)