1
0
mirror of https://github.com/bndw/wifi-card.git synced 2024-12-24 10:06:42 +02:00
wifi-card/Makefile
Ben Woodward f82c096aeb
Only run Prettier on ./src (#55)
* Move base stylesheet input public

* Only run prettier on ./src
2021-07-15 14:44:00 -07:00

34 lines
507 B
Makefile

REPO ?= bndw/wifi-card
GITSHA=$(shell git rev-parse --short HEAD)
TAG_COMMIT=$(REPO):$(GITSHA)
TAG_LATEST=$(REPO):latest
all: dev
.PHONY: build
build:
docker build -t $(TAG_LATEST) .
.PHONY: dev
dev:
yarn
yarn start
.PHONY: fmt
fmt:
npx prettier --check ./src
.PHONY: fmt.write
fmt.write:
npx prettier --write ./src
.PHONY: run
run:
docker run --rm -p 8080:80 $(TAG_LATEST)
.PHONY: publish
publish:
docker push $(TAG_LATEST)
@docker tag $(TAG_LATEST) $(TAG_COMMIT)
docker push $(TAG_COMMIT)