-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (28 loc) · 880 Bytes
/
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
update-deps:
@echo "***************************"
@echo "** Updating importer lib **"
@echo "***************************"
@cd lib/importer && npm install
@echo "***********************************"
@echo "** Default development prototype **"
@echo "***********************************"
@cd prototypes/basic && npm install
.PHONY: prototype
ifndef NAME
prototype:
$(error Need a value for NAME, e.g., make prototype NAME=value)
else
prototype:
@cd lib/importer && npm install
@mkdir -p prototypes/${NAME}
@cd prototypes/${NAME} && npx govuk-prototype-kit@latest create && npm install ../../lib/importer
@echo "\
You should now change the service name in prototypes/${NAME}/app/config.json\n\
and edit the homepage at prototypes/${NAME}/app/views/index.html\n\
\n\
You can run the prototype with:\n\
\n\
cd prototypes/${NAME}\n\
npm run dev\n\
"
endif