generated from NHSDigital/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (31 loc) · 764 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
default: deep-clean install lint check-licenses build test
install: install-python install-hooks install-node
install-node:
npm ci
install-python:
poetry install
install-hooks:
poetry run pre-commit install --install-hooks --overwrite
build: build-node
build-node:
npm run build
lint: lint-node lint-githubactions
lint-node:
npm run lint
lint-githubactions:
actionlint
test: test-node
test-node: build-node
npm run test
clean:
rm -rf coverage
rm -rf lib
rm -f tsconfig.tsbuildinfo
deep-clean: clean
rm -rf .venv
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
check-licenses: check-licenses-node check-licenses-python
check-licenses-node:
npm run check-licenses
check-licenses-python:
scripts/check_python_licenses.sh