-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (46 loc) · 1.83 KB
/
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
48
49
50
51
52
53
54
55
56
57
.PHONY: help
.DEFAULT_GOAL := help
dist/connect: ## Generates dist files for the connect action
@echo '🔨Building connect'
cd connect; ncc build connect.js -o dist/connect
cd connect; ncc build disconnect.js -o dist/disconnect
@echo '✅ Built connect'
dist/configure: ## Generates dist files for the configure action
@echo '🔨Building configure'
cd configure; ncc build configure.js -o dist/configure
@echo '✅ Built configure'
dist/login: ## Generates the dist files for the login action
@echo '🔨Building login'
cd login; ncc build login.js -o dist/login
cd login; ncc build logout.js -o dist/logout
@echo '✅ Built login'
dist/intercept: ## Generates the dist files for the intercept action
@echo '🔨Building intercept'
cd intercept; ncc build intercept.js -o dist/intercept
cd intercept; ncc build leave.js -o dist/leave
@echo '✅ Built intercept'
dist/install: ## Generates the dist files for the install action
@echo '🔨Building install'
cd install; ncc build install.js -o dist/install
cd install; ncc build pre-install.js -o dist/preinstall
@echo '✅ Built install'
dist/helm: ## Generates the dist files for the helm action
@echo '🔨Building helm'
cd helm; ncc build install.js -o dist/install
cd helm; ncc build uninstall.js -o dist/uninstall
@echo '✅ Built helm'
dist/clean: ## Removes all actions dist files
rm -r connect/dist
rm -r configure/dist
rm -r login/dist
rm -r intercept/dist
rm -r install/dist
rm -r helm/dist
dist: mod dist/connect dist/configure dist/login dist/intercept dist/install dist/helm ## Generates all actions dist files
@echo '🎉 done building dist files'
mod: ## Builds node modules
npm i
help: ## Displays this help message
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_\/-]+:.*?## / {printf "\033[34m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \
sort | \
grep -v '#'