forked from open-feature/openfeature.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
36 lines (24 loc) · 705 Bytes
/
makefile
File metadata and controls
36 lines (24 loc) · 705 Bytes
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
VOLUMES := -v $(CURDIR):$(CURDIR) -w $(CURDIR)
IMAGE := node:18-bullseye
PORT := -p 3000:3000
DOCKER := docker run --rm $(VOLUMES) $(IMAGE)
DOCKER_I := docker run -ti --rm $(VOLUMES) $(PORT) $(IMAGE)
.PHONY: all build serve clean test lint
all: yarn.lock
yarn.lock: package.json node_modules
$(MAKE clean)
$(DOCKER) yarn install --immutable
node_modules:
mkdir -p $@
build: yarn.lock
$(DOCKER) yarn build
version: yarn.lock
$(DOCKER) npx docusaurus --version
start: yarn.lock
$(DOCKER_I) yarn run start -- --poll --host 0.0.0.0
lint: yarn.lock
$(DOCKER) yarn run lint
clean:
rm -rf ./node_modules
test: build
docker run -v $(CURDIR):/test --rm wjdp/htmltest -s -c .htmltest.yml build