forked from aws-quickstart/cdk-eks-blueprints
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (34 loc) · 718 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
#!/bin/bash
# Libraries
TSC := node node_modules/.bin/tsc
ESLINT := node node_modules/.bin/eslint
CDK := node node_modules/.bin/cdk
COPY := node node_modules/.bin/copyfiles
# Dependecies
HOMEBREW_LIBS := nvm typescript argocd
deps:
npm install
lint:
$(ESLINT) . --ext .js,.jsx,.ts,.tsx
build:
rm -rf dist && $(TSC)
$(COPY) lib/**/*.yaml dist/ -u 1
list:
$(CDK) list
synth:
$(CDK) synth
mkdocs:
mkdocs serve
push-mkdocs:
mkdocs gh-deploy
bootstrap:
@for LIB in $(HOMEBREW_LIBS) ; do \
LIB=$$LIB make check-lib ; \
done
check-lib:
ifeq ($(shell brew ls --versions $(LIB)),)
@echo Installing $(LIB) via Hombrew
@brew install $(LIB)
else
@echo $(LIB) is already installed, skipping.
endif