forked from nathanlesage/cheatsheet-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 616 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 616 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
.PHONY: lint fix install clean test all
MEGA_LINTER_VERSION=7.9.0
MEGA_LINTER_FLAVOR=cupcake
MEGA_LINTER_ARGS=--flavor $(MEGA_LINTER_FLAVOR)
NPX_ARGS=--yes
## Install mega-linter globally
install:
npm install mega-linter-runner@$(MEGA_LINTER_VERSION) -g
## Run mega-linter
lint:
npx $(NPX_ARGS) mega-linter-runner@$(MEGA_LINTER_VERSION) $(MEGA_LINTER_ARGS)
## Run mega-linter with fix argument
fix:
npx $(NPX_ARGS) mega-linter-runner@$(MEGA_LINTER_VERSION) $(MEGA_LINTER_ARGS) --fix
## Clean up
clean:
echo "Nothing to clean up"
## Test
test:
echo "No tests available"
all: install lint
echo "All done"