-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (30 loc) · 750 Bytes
/
Makefile
File metadata and controls
43 lines (30 loc) · 750 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
36
37
38
39
40
41
42
#!make
SHELL := env PATH=$(shell npm bin):$(PATH) /bin/bash -O extglob
.SILENT:
.PHONY: install build
default: build
.DEFAULT_GOAL := default
export UNAME_S=$(shell uname -s)
export BRANCH_NAME=$(shell git symbolic-ref --short HEAD)
export BUILD_TIMESTAMP=$(date +%s)
export BUILD_HASH=$(shell git rev-parse --short HEAD)
ifndef LOCALE
export LOCALE=es
endif
ifndef OUT_DIR
export OUT_DIR=build
endif
ifndef CYPRESS_BROWSER
export CYPRESS_BROWSER=chrome
endif
node_modules:; yarn install
install:; yarn install
i: install
test.cypress:
cypress run --browser ${CYPRESS_BROWSER}
up: node_modules
docusaurus start --locale $(LOCALE)
build: node_modules
docusaurus build --out-dir $(OUT_DIR)
preview: node_modules
docusaurus serve