Fix format do not format all files
Signed-off-by: Bryan Frimin <bryan@frimin.fr>
This commit is contained in:
@@ -1,13 +1,18 @@
|
|||||||
NPX?= npx
|
NPX?= npx
|
||||||
PRETTIER?= $(NPX) prettier
|
PRETTIER?= $(NPX) prettier
|
||||||
|
|
||||||
|
|
||||||
|
CONTROL_SRC:= $(shell find ./controls -type f -name "*.md")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: fmt
|
all: fmt
|
||||||
|
|
||||||
.PHONY: fmt
|
.PHONY: fmt
|
||||||
fmt:
|
fmt:
|
||||||
$(PRETTIER) --write --prose-wrap always controls/**/*.md
|
$(PRETTIER) --write --prose-wrap always $(CONTROL_SRC)
|
||||||
|
|
||||||
.PHONY: fmt-check
|
.PHONY: fmt-check
|
||||||
fmt-check:
|
fmt-check:
|
||||||
$(PRETTIER) --check --prose-wrap always controls/**/*.md
|
$(PRETTIER) --check --prose-wrap always $(CONTROL_SRC)
|
||||||
|
|||||||
Reference in New Issue
Block a user