forked from rancherfederal/carbide-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (28 loc) · 757 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
# makefile for carbide-docs
# set the port
PORT:= 3000
# docker build for carbide docs
build:
docker rm --force carbide-docs; docker build -t carbide-docs -f Dockerfile.local .
# docker run for carbide-docs
run:
docker run -p ${PORT}:3000 --name=carbide-docs -ti carbide-docs; docker logs -f carbide-docs
# run all build commands
local-all: local-install local-build local-serve
# install dependencies
local-install:
npm install
# test and run carbide-docs
# opens localhost:3000/carbide-docs
local-test:
npm run start
# build and compile carbide-docs
local-build:
npm run build
# server carbide-docs from build
# opens localhost:5000/carbide-docs
local-serve:
npm run serve
# clear build outputs
clear:
npm run clear && rm -rf node_modules