This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
93 lines (73 loc) · 1.54 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
VERSION :=
PLUGIN :=
check: lint-all test validate
.PHONY: test
test:
npx tsc
npm test
crystal spec
.PHONY: setup
setup:
npm install
shards install
$(MAKE) build-tools
.PHONY: build-tools
build-tools:
shards build --production
.PHONY: validate
validate:
./bin/cli validate
.PHONY: merge
merge:
./bin/cli merge
.PHONY: release
release:
./bin/cli release --version=${VERSION}
.PHONY: scaffold
scaffold:
./bin/cli scaffold --plugin=${PLUGIN}
$(MAKE) dprint-fix
@echo '--------------------------------------------------'
@echo '1. Update generated files'
@echo '2. Add tests into test/examples.ts if extractVersionTemplate exists'
@echo '3. Merge configs with `make merge`'
.PHONY: lint-definitions
lint-definitions:
./bin/cli lint
lint-all: crystal-lint-check dprint-check lint-definitions deno_lint typos-check
crystal-lint-check: crystal-format-check
ameba --except Metrics
.PHONY: crystal-format-check
crystal-format-check:
crystal tool format --check
.PHONY: dprint-check
dprint-check:
dprint check
lint-fix-all: crystal-lint-fix dprint-fix
.PHONY: crystal-lint-fix
crystal-lint-fix:
crystal tool format
ameba --except Metrics --fix
.PHONY: deno_lint
deno_lint:
deno lint
.PHONY: typos-check
typos-check:
typos . .github .vscode
.PHONY: dprint-fix
dprint-fix:
dprint fmt
.PHONY: touch
touch:
./bin/cli touch
.PHONY: versions
deps:
nix --version
node --version
crystal --version
# It returns error even if correctly show the version
# nixpkgs-fmt --version
dprint --version
deno --version
typos --version
shards --version