Skip to content

Commit e560b3f

Browse files
authored
dev: expand website templates during build (golangci#1095)
1 parent fedbedf commit e560b3f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,7 @@ go.mod: FORCE
9797
go mod tidy
9898
go mod verify
9999
go.sum: go.mod
100+
101+
expand_website_templates:
102+
go run ./scripts/expand_website_templates/main.go
103+
.PHONY: expand_website_templates

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"gatsby-starter"
3333
],
3434
"scripts": {
35-
"build": "gatsby build",
35+
"build": "make -C .. expand_website_templates && gatsby build",
3636
"start": "gatsby develop",
3737
"serve": "gatsby serve",
3838
"clean": "gatsby clean"

0 commit comments

Comments
 (0)