-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (35 loc) · 1.13 KB
/
Makefile
File metadata and controls
47 lines (35 loc) · 1.13 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
.PHONY: install build test publish release clean lint
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:
npm run lint
npm run lint --workspace packages/cdkConstructs
npm run lint --workspace packages/deploymentUtils
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 '{}' +
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
%:
@$(MAKE) -f /usr/local/share/eps/Mk/common.mk $@