-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (21 loc) · 779 Bytes
/
Makefile
File metadata and controls
26 lines (21 loc) · 779 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
.POSIX:
all: help
.PHONY: init
init: ## initialize and fetch dependencies
yarn install --pure-lockfile
.PHONY: run-dev
run-dev: ## setup development watches and server to run on dev
rm -rf www/
mkdir -p www/models/
cp ./node_modules/aframe/dist/aframe-master.* www/
cp ./node_modules/aframe-physics-system/dist/aframe-physics-system.js www/
cp -r src/* www/
cp -r models/* www/models/
./node_modules/.bin/chokidar src/ -c 'cp -r src/* www/; cp -r models/* www/models/' & \
./node_modules/.bin/live-server www/ --no-browser
.PHONY: lint
lint: ## run linter on source
./node_modules/.bin/eslint_d --fix src/
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'