generated from EPFL-ENAC/enac-it4r-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (34 loc) · 1.08 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
.PHONY: prebuild, install, build, .help
help:
@echo "Targets:"
@echo " install: Install node dependencies"
@echo " install-build: Install node dependencies with npm ci"
@echo " build: Build the project (run prebuild before)"
@echo " dev: Run the project"
@echo " convert: Convert the data to json format"
@echo " docker-build: Build docker image"
@echo " docker-run: Run docker image"
install:
@echo "Installing node dependencies (npm)"
npm install
install-build:
@echo "Installing build node dependencies (npm)"
npm ci
# npm run build will run npm run prebuild before automatically
build: install
@echo "Building project to dist (npm)"
npm run build
# npm run dev will run npm run predev before automatically
run: install
@echo "Running the project locally (npm)"
npm run dev
convert:
@echo "Converting the data to json format"
npm run convert
docker-build:
@echo "Building docker image"
docker build -t nginx-vue-app .
docker-run: docker-build
@echo "Running docker image"
@echo "Open your browser at http://localhost:8080"
docker run -p 8080:80 nginx-vue-app:latest