-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (52 loc) · 1.63 KB
/
Makefile
File metadata and controls
71 lines (52 loc) · 1.63 KB
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
guard-%:
@ if [ "${${*}}" = "" ]; then \
echo "Environment variable $* not set"; \
exit 1; \
fi
.PHONY: install build test publish release clean
install: install-python install-hooks install-node
install-node:
npm ci
install-python:
poetry install
install-hooks: install-python
poetry run pre-commit install --install-hooks --overwrite
lint-node:
npm run lint
npm run lint --workspace packages/cdkConstructs
npm run lint --workspace packages/deploymentUtils
lint-githubactions:
actionlint
lint: lint-node lint-githubactions
clean:
rm -rf packages/cdkConstructs/lib
rm -rf packages/cdkConstructs/coverage
rm -rf packages/deploymentUtils/lib
rm -rf packages/deploymentUtils/coverage
rm -rf lib
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
npm run check-licenses --workspace packages/cdkConstructs
npm run check-licenses --workspace packages/deploymentUtils
check-licenses-python:
scripts/check_python_licenses.sh
aws-configure:
aws configure sso --region eu-west-2
aws-login:
aws sso login --sso-session sso-session
test: clean
npm run test --workspace packages/cdkConstructs
npm run test --workspace packages/deploymentUtils
package: build
mkdir -p lib/
npm pack --workspace packages/cdkConstructs --pack-destination lib/
npm pack --workspace packages/deploymentUtils --pack-destination lib/
build:
npm run build --workspace packages/cdkConstructs
npm run build --workspace packages/deploymentUtils
docker-build:
docker build -t eps-cdk-utils . -f docker/Dockerfile