-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
69 lines (49 loc) · 1.88 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
58
59
60
61
62
63
64
65
66
67
68
69
.PHONY: start tests
.EXPORT_ALL_VARIABLES:
SHELL := /bin/bash
all: clear upfluence echo start ## Starts the dev server
clear:
@clear
install: ## Install dependencies
@echo 'Installing dependencies'
pnpm install
@echo ""; echo "\n-------------------------------\n"; echo ""
echo:
@echo Starting OSS-Components
start: ## Starts the dev server
pnpm ember serve --port 0
clean: ## Cleans ./node_modules && ./dist
@echo "Cleaning up ./node_modules & ./dist folders"
-rm -r ./node_modules
-rm -r ./dist
@echo ""; echo "-------------------------------"; echo ""
re: clean install echo start ## Reinstalls dependencies & starts the dev server
tests: ## Runs tests once
@echo "Running tests once"
pnpm ember test --silent -r dot
testserver: ## Runs the test server
@echo "Starting Test Server"
pnpm ember test -s
enable_pre_hook: ## Enables git pre-hook on the project. Will run Linter & Tests before pushing.
@echo "Installing git pre-push hook"
@echo ""; echo "-------------------------------"; echo ""
pnpm install-pre-push-hook
disable_pre_hook: ## Disables the git pre-push hook.
@echo "Removing git pre-push hook"
@echo ""; echo "-------------------------------"; echo ""
pnpm remove-pre-push-hook
help: clear upfluence ## Displays the help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
h: help ## Displays the help message
version_patch: ## Creates & pushes a new patch tag
./scripts/new-version-tag patch
version_minor: ## Creates & pushes a new minor tag
./scripts/new-version-tag minor
version_major: ## Creates & pushes a new major tag
./scripts/new-version-tag major
upfluence: ## Displays the UPF logo :)
@sh ./scripts/upf_logo
@echo ""
@echo ""
sonar-report: ## Runs a bunch of commands that will finally lead to a new report in sonarqube
./scripts/generate_sonar_report