14a86273c4
its repository updating the instruction on README.development
27 lines
426 B
Makefile
27 lines
426 B
Makefile
SHELL := /bin/bash
|
|
|
|
.SHELLFLAGS := -eu -o pipefail -c
|
|
.DELETE_ON_ERROR:
|
|
MAKEFLAGS += --warn-undefined-variables
|
|
MAKEFLAGS += --no-builtin-rules
|
|
.SUFFIXES:
|
|
|
|
$(shell mkdir -p .build dist)
|
|
|
|
all: build
|
|
|
|
.build/deps: package.json
|
|
npm i
|
|
@touch $@
|
|
|
|
build: .build/deps dist/backend_pb.js
|
|
npm run build
|
|
|
|
dist/backend_pb.js: .build/deps ../proto/backend.proto
|
|
npm run proto
|
|
|
|
.PHONY: check
|
|
check:
|
|
npm run lint
|
|
npm run check-pretty
|