-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (36 loc) · 915 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
44
45
46
#!make
SHELL=/bin/bash
include make/commands.mk
.DEFAULT_GOAL := build
EXECUTABLES := ls node npm git
$(call check_executables,${EXECUTABLES})
# $(shell cp -n .env.default .env)
# include .env
# export
ENV_FILE_PARAM = --env-file .env
## Initialize the project
build:
@echo "${LIGHTPURPLE}install package${RESET}";
npm install
@echo "${BLUE}DONE${RESET}";
@echo "${LIGHTPURPLE}build apps${RESET}";
npm run build:all
@echo "${BLUE}DONE${RESET}";
.PHONY: build
init-dev:
@echo "${LIGHTPURPLE}install precommit hook${RESET}";
pre-commit install --hook-type commit-msg
@echo "${LIGHTPURPLE}install package${RESET}";
npm install
@echo "${BLUE}DONE${RESET}";
@echo "${LIGHTPURPLE}build apps${RESET}";
npm run build:all
@echo "${BLUE}DONE${RESET}";
.PHONY: build
## Initialize the project
show-config:
$(call print_configuration)
.PHONY: show-config
clean:
@echo "Cleaning up..."
.PHONY: clean