forked from onedarnleyroad/craftcms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (42 loc) · 1.3 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
.PHONY: build dev composer craft pull up install
build: up
ddev exec npm run build
dev: build
ddev launch
ddev exec npm run serve
composer: up
ddev composer \
$(filter-out $@,$(MAKECMDGOALS))
craft: up
ddev exec php craft \
$(filter-out $@,$(MAKECMDGOALS))
pull: up
ddev exec bash scripts/pull_assets.sh
ddev exec bash scripts/pull_db.sh
install: up build
ddev exec php craft setup/app-id \
$(filter-out $@,$(MAKECMDGOALS))
ddev exec php craft setup/security-key \
$(filter-out $@,$(MAKECMDGOALS))
ddev exec php craft install \
$(filter-out $@,$(MAKECMDGOALS))
ddev exec php craft plugin/install agnostic-fetch
ddev exec php craft plugin/install async-queue
ddev exec php craft plugin/install cp-field-inspect
ddev exec php craft plugin/install imager-x
ddev exec php craft plugin/install knock-knock
ddev exec php craft plugin/install typedlinkfield
ddev exec php craft plugin/install postmark
ddev exec php craft plugin/install redactor
ddev exec php craft plugin/install seomatic
ddev exec php craft plugin/install vite
up:
if [ ! "$$(ddev describe | grep OK)" ]; then \
ddev auth ssh; \
ddev start; \
ddev composer install; \
ddev exec npm install; \
fi
%:
@:
# ref: https://stackoverflow.com/questions/6273608/how-to-pass-argument-to-makefile-from-command-line