forked from l20n/l20n.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
47 lines (36 loc) · 979 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export SHELL := /bin/bash
export PATH := $(CURDIR)/node_modules/.bin:$(PATH)
export OK := \033[32;01m✓\033[0m
RUNTIMES := $(wildcard src/runtime/*)
all: lint build
build: $(RUNTIMES)
$(RUNTIMES):
@$(MAKE) -s -C $@
@echo -e " $(OK) $@ built"
clean:
@rm -rf dist/*
@echo -e " $(OK) dist cleaned"
lint:
@eslint --max-warnings 0 src/
@echo -e " $(OK) src/ linted"
test-lib:
@mocha \
--recursive \
--reporter dot \
--require ./test/compat \
test/lib/parser/ftl \
test/lib/*_test.js \
test/intl/**/*_test.js
test-browser:
karma start test/karma.conf.js
docs:
documentation build --shallow -f md \
src/bindings/*.js > docs/bindings.md
documentation build --shallow -f md \
src/lib/*.js > docs/localization.md
documentation build --shallow -f md \
src/ftl/**/*.js > docs/parser.md
documentation build --shallow -f md \
src/intl/*.js > docs/messagecontext.md
.PHONY: $(RUNTIMES) docs
include tools/perf/makefile