31 lines
589 B
Makefile
31 lines
589 B
Makefile
all: build
|
|
|
|
build:
|
|
spago build
|
|
|
|
bundle-module:
|
|
PATH=./node_modules/.bin:$$PATH spago bundle-module
|
|
|
|
run:
|
|
spago run
|
|
|
|
t:
|
|
spago test
|
|
|
|
docs-with-search:
|
|
spago docs
|
|
|
|
docs:
|
|
spago docs --no-search
|
|
|
|
DOCS_HTTPD_ACCESS_LOGS ?= /tmp/parser-docs-access.log
|
|
DOCS_HTTPD_ADDR ?= 127.0.0.1
|
|
DOCS_HTTPD_PORT ?= 30000
|
|
DOCS_DIR ?= generated-docs/html
|
|
serve-docs: docs
|
|
darkhttpd $(DOCS_DIR) --addr $(DOCS_HTTPD_ADDR) --port $(DOCS_HTTPD_PORT) --log $(DOCS_HTTPD_ACCESS_LOGS)
|
|
|
|
install-esbuild:
|
|
@echo "install esbuild"
|
|
[ -f node_modules/.bin/esbuild ] || npm install esbuild
|