mirror of
https://github.com/bndw/wifi-card.git
synced 2024-12-24 10:06:42 +02:00
f82c096aeb
* Move base stylesheet input public * Only run prettier on ./src
34 lines
507 B
Makefile
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)
|