dev: expand website templates during build (#1095)

This commit is contained in:
Isaev Denis 2020-05-16 14:41:39 +03:00 committed by GitHub
parent fedbedff4c
commit e560b3f76e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -97,3 +97,7 @@ go.mod: FORCE
go mod tidy go mod tidy
go mod verify go mod verify
go.sum: go.mod go.sum: go.mod
expand_website_templates:
go run ./scripts/expand_website_templates/main.go
.PHONY: expand_website_templates

View File

@ -32,7 +32,7 @@
"gatsby-starter" "gatsby-starter"
], ],
"scripts": { "scripts": {
"build": "gatsby build", "build": "make -C .. expand_website_templates && gatsby build",
"start": "gatsby develop", "start": "gatsby develop",
"serve": "gatsby serve", "serve": "gatsby serve",
"clean": "gatsby clean" "clean": "gatsby clean"