anki/qt/ts/Makefile
Damien Elmes ab32623dde move _vars to outer ts folder
First step in sharing styling with graphs + future .html files
2020-09-01 10:24:38 +10:00

36 lines
540 B
Makefile

SHELL := /bin/bash
ifndef SHELLFLAGS
SHELLFLAGS :=
endif
.SHELLFLAGS := -eu -o pipefail ${SHELLFLAGS} -c
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
ifndef OS
OS := unknown
endif
.DELETE_ON_ERROR:
.SUFFIXES:
BIN := ../../ts/node_modules/.bin
PHONY: all
all: check
PHONY: build
build:
$(BIN)/tsc --build
$(BIN)/sass --no-source-map -I ../../ts/src/scss scss:css
rsync -a css/ ../aqt_data/web/
.PHONY: check
check:
$(BIN)/prettier --check src/*.ts
.PHONY: fix
fix:
$(BIN)/prettier --write src/*.ts