-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·53 lines (45 loc) · 1.22 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
44
45
46
47
48
49
50
51
52
53
NODE_CONTAINER=node
NODE=docker run -it --rm -v "$(PWD)":/usr/src/app -w /usr/src/app $(NODE_CONTAINER) nodejs
YARN=docker run -it --rm -v "$(PWD)":/usr/src/app -w /usr/src/app $(NODE_CONTAINER) yarn
NPM=docker run -it --rm -v "$(PWD)":/usr/src/app -w /usr/src/app $(NODE_CONTAINER) npm
.PHONY: build watch prod
all: clean build
update-data:
bin/console app:get-iata-codes --process --latest
yarn-install:
$(YARN) install
yarn-outdated:
$(YARN) outdated
yarn-upgrade:
$(YARN) upgrade
yarn-audit:
$(YARN) audit
webserver:
symfony server:start --allow-http --no-tls --document-root=docs/ --daemon
webserver-stop:
symfony server:stop
webserver-logs:
symfony server:log
assets: build
dev: build
build:
clear
$(YARN) encore dev
watch:
clear
$(YARN) encore dev --watch
# see: https://gist.github.com/ErickPetru/b1b3138ab0fc6c82cd19ea3a1a944ba6
# Copy at https://gist.github.com/alister/8f087283c3b60086589c52155ca8930c
prod:
clear
#sudo rm -rf docs
#git worktree prune
#git worktree add -f ./docs gh-pages
$(YARN) encore production
deploy-gh-pages:
cd docs && git add --all
# manually commit and push??
cd docs && git commit -m "Deploy on gh-pages updated"
cd docs && git push origin #gh-pages
clean:
sudo rm -rf dist/* docs/*