-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (40 loc) · 1.11 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
PKG:=yarn
DEPLOY:=build:prod
GOURCE:=gource
help:
@echo
@echo "✍🏽 Please use 'make <target>' where <target> is one of the commands below:"
@echo
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e "s/\\$$//" | sed -e "s/##//"
@echo
# ------------------------------------------------------------------------------------ #
build: ## build locally the files
$(PKG) build
build-prod: ## build on a prod-version
$(PKG) $(DEPLOY)
change-version: ## change the project version
$(PKG) version
clean: ## make it clean, pls sir
$(PKG) clean-files
deploy: build-prod
install: ## install missing dependencies
$(PKG)
i: install
pack: ## pack project in case of develirable
$(PKG) pack
server: ## runs locally on a 3000 port pre-defined on package.json
$(PKG) server
run: server
serve: run
start: clean build run
test: ## tests e2e tests
$(PKG) test
test-unit: ## runs unit tests
$(PKG) test:unit
test-unit-watch: ## watches for unit tests modification
$(PKG) test:unit-watch
tests: test test-unit
watch: ## watch what's important to
$(PKG) watch
gource:
@echo "No '$(GOURCE)' task was settled up 😞"