From e560b3f76eb1c1cea5a1ea850384b06399c7a3fd Mon Sep 17 00:00:00 2001 From: Isaev Denis Date: Sat, 16 May 2020 14:41:39 +0300 Subject: [PATCH] dev: expand website templates during build (#1095) --- Makefile | 4 ++++ docs/package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4a567b51..20264b4b 100644 --- a/Makefile +++ b/Makefile @@ -97,3 +97,7 @@ go.mod: FORCE go mod tidy go mod verify go.sum: go.mod + +expand_website_templates: + go run ./scripts/expand_website_templates/main.go +.PHONY: expand_website_templates \ No newline at end of file diff --git a/docs/package.json b/docs/package.json index ff19572d..e04da004 100644 --- a/docs/package.json +++ b/docs/package.json @@ -32,7 +32,7 @@ "gatsby-starter" ], "scripts": { - "build": "gatsby build", + "build": "make -C .. expand_website_templates && gatsby build", "start": "gatsby develop", "serve": "gatsby serve", "clean": "gatsby clean"