Skip to content

Commit af29d64

Browse files
committed
Add support for build_caching of Pages Project
1 parent 812ef3a commit af29d64

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

pages_project.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ type PagesProjectSourceConfig struct {
5353

5454
// PagesProjectBuildConfig represents the configuration of a Pages project build process.
5555
type PagesProjectBuildConfig struct {
56+
BuildCaching *bool `json:"build_caching,omitempty"`
5657
BuildCommand string `json:"build_command"`
5758
DestinationDir string `json:"destination_dir"`
5859
RootDir string `json:"root_dir"`

pages_project_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const (
4444
}
4545
},
4646
"build_config": {
47+
"build_caching": true,
4748
"build_command": "npm run build",
4849
"destination_dir": "build",
4950
"root_dir": "/",
@@ -178,6 +179,7 @@ const (
178179
}
179180
],
180181
"build_config": {
182+
"build_caching": true,
181183
"build_command": "npm run build",
182184
"destination_dir": "build",
183185
"root_dir": "/",
@@ -269,6 +271,7 @@ const (
269271
}
270272
],
271273
"build_config": {
274+
"build_caching": true,
272275
"build_command": "npm run build",
273276
"destination_dir": "build",
274277
"root_dir": "/",
@@ -399,6 +402,7 @@ var (
399402
}
400403

401404
expectedPagesProjectBuildConfig = &PagesProjectBuildConfig{
405+
BuildCaching: BoolPtr(true),
402406
BuildCommand: "npm run build",
403407
DestinationDir: "build",
404408
RootDir: "/",

0 commit comments

Comments
 (0)