-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
48 lines (35 loc) · 859 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
48
# SPDX-FileCopyrightText: 2022 Risk.Ident GmbH <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
.PHONY: all
all: jelease.schema.json generate
jelease.schema.json: pkg/config/*.go cmd/config_schema.go
go run . config schema --output jelease.schema.json
.PHONY: generate
generate:
go run github.com/a-h/templ/cmd/templ@$(shell go list -m -f '{{ .Version }}' github.com/a-h/templ) generate
.PHONY: test
test:
go test ./...
.PHONY: deps
deps: deps-npm deps-pip
.PHONY: deps-pip
deps-pip:
pip install --user reuse
.PHONY: deps-npm
deps-npm: node_modules
node_modules: package.json
npm install
.PHONY: lint
lint: lint-md lint-license
.PHONY: lint-fix
lint-fix: lint-md-fix
.PHONY: lint-md
lint-md: node_modules
npx remark .
.PHONY: lint-md-fix
lint-md-fix: node_modules
npx remark . -o
.PHONY: lint-license
lint-license:
reuse lint