-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
51 lines (35 loc) · 1.29 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
.PHONY: start
.EXPORT_ALL_VARIABLES:
SHELL := /bin/bash
PORT := 0
ENV := development
all: clear echo start ## Starts the dev server
clear:
@clear
install: ## Runs 'pnpm' to install dependencies
@echo 'Installing dependencies'
pnpm install
@echo ""; echo "-------------------------------"; echo ""
echo:
@echo Starting ember-brand-manager
start:
ember s --port $(PORT) --environment ${ENV}
build:
ember build --environment ${ENV}
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
help: clear ## 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
sonar-report: ## Runs a bunch of commands that will finally lead to a new report in sonarqube
./scripts/generate_sonar_report