11 lines
291 B
Makefile
11 lines
291 B
Makefile
HOST=i2c@192.168.1.200
|
|
|
|
build: dist/index.mjs
|
|
|
|
deploy: build
|
|
ssh $(HOST) "if [ -d dist ]; then rm -r dist; fi"
|
|
scp -r dist $(HOST):~/dist
|
|
|
|
dist/index.mjs: index.mjs
|
|
npx esbuild $^ --format=esm --external:i2c-bus --external:systeminformation --minify --bundle --platform=node --outfile=$@
|