forked from shapirov103/eks-blueprints-extension
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
43 lines (32 loc) · 698 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
#!/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: bootstrap
npm install
lint:
$(ESLINT) . --ext .js,.jsx,.ts,.tsx
build:
rm -rf dist && $(TSC)
$(COPY) lib/**/*.yaml dist/ -u 1
list:
$(CDK) list
mkdocs:
mkdocs serve
synth:
$(CDK) synth
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