-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (49 loc) · 1.63 KB
/
Copy pathMakefile
File metadata and controls
65 lines (49 loc) · 1.63 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
SHELL=/bin/bash
.PHONY: help setup dev build start stop assemble provision login xdebug info reset drush
help:
@echo "COMMANDS"
@echo "========"
@echo "setup - Install frontend deps, provision Drupal (SQLite), start the backend."
@echo "dev - Ensure the backend is up, then run the Nuxt dev server (port 3000)."
@echo "build - Build the Nuxt frontend for production."
@echo "start - Ensure the backend is up, then serve the built frontend (port 3000)."
@echo "stop - Stop the local (.devtools) backend. No-op for DDEV/external backends."
@echo "assemble - Install Composer dependencies (backend)."
@echo "provision - Install the site: SQLite, druxt, simple_oauth, OAuth consumer."
@echo "login - Print a Drupal one-time login link."
@echo "xdebug - Enable XDebug step-debugging on the local backend."
@echo "info - Print a summary of the current environment."
@echo "reset - Stop the backend and wipe the throwaway SQLite database."
@echo "drush - Run a Drush command, e.g. make drush cr all."
@echo ""
@echo "Backend-only targets: make -C drupal help"
setup:
npm run setup
dev:
npm run dev
build:
npm run build
start:
npm run start
stop:
npm run stop
assemble:
npm run assemble
provision:
npm run provision
login:
npm run login
xdebug:
npm run xdebug
info:
npm run info
reset:
npm run reset
# Pass arguments through to npm run drush: make drush cr all
ifeq (drush,$(firstword $(MAKECMDGOALS)))
DRUSH_RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
$(eval $(DRUSH_RUN_ARGS):;@:)
endif
drush:
npm run drush -- $(DRUSH_RUN_ARGS)
.DEFAULT_GOAL := help