-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 892 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (28 loc) · 892 Bytes
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
.DEFAULT_GOAL := all
JSONSCHEMA ?= ./node_modules/@sourcemeta/jsonschema/npm/cli.js
SHELLCHECK ?= shellcheck
NODE ?= node
NPM ?= npm
TIME ?= time
include generated.mk
all: common test node_modules
$(NODE) $(JSONSCHEMA) fmt schemas examples rules test
.PHONY: common
common: $(GENERATED) node_modules
$(TIME) $(NODE) $(JSONSCHEMA) metaschema schemas examples rules
$(TIME) $(NODE) $(JSONSCHEMA) lint schemas examples
$(SHELLCHECK) scripts/*.sh
./scripts/quality-schemas-tests-mirror.sh
JQ="$(JQ)" ./scripts/quality-templates-xbrl-utr-mirror.sh
JQ="$(JQ)" ./scripts/quality-data-xbrl-utr-iris.sh
.PHONY: lint
lint: common node_modules
$(TIME) $(NODE) $(JSONSCHEMA) fmt schemas examples rules test --check
.PHONY: test
test: common node_modules
$(TIME) $(NODE) $(JSONSCHEMA) test ./test
.PHONY: clean
clean:
rm -rf build
node_modules: package.json package-lock.json
$(NPM) ci