-
Notifications
You must be signed in to change notification settings - Fork 179
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (33 loc) · 935 Bytes
/
Makefile
File metadata and controls
37 lines (33 loc) · 935 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
37
# SPDX-FileCopyrightText: 2020 iteratec GmbH
#
# SPDX-License-Identifier: Apache-2.0
all: help
.PHONY:
npm-ci-all: ## Runs npm ci in all node module subfolders.
# This find construct is based on https://stackoverflow.com/questions/4210042/how-to-exclude-a-directory-in-find-command/4210072#4210072
find . \( \
-name '.git' -o \
-name '.github' -o \
-name '.idea' -o \
-name '.reuse' -o \
-name '.vagrant' -o \
-name '.vscode' -o \
-name 'bin' -o \
-name 'docs' -o \
-name 'LICENSES' -o \
-name 'coverage' -o \
-name 'dist' -o \
-name 'node_modules' -o \
-name target \) \
-prune \
-false \
-o -type f \
-iname package.json \
-execdir npm ci \;
.PHONY:
npm-test-all: ## Runs all Jest based test suites.
npm test
.PHONY:
help: ## Display this help screen.
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'