Skip to content

Commit

Permalink
Add support for build_caching of Pages Project
Browse files Browse the repository at this point in the history
  • Loading branch information
daku10 committed Jan 30, 2024
1 parent 812ef3a commit af29d64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions pages_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ type PagesProjectSourceConfig struct {

// PagesProjectBuildConfig represents the configuration of a Pages project build process.
type PagesProjectBuildConfig struct {
BuildCaching *bool `json:"build_caching,omitempty"`
BuildCommand string `json:"build_command"`
DestinationDir string `json:"destination_dir"`
RootDir string `json:"root_dir"`
Expand Down
4 changes: 4 additions & 0 deletions pages_project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const (
}
},
"build_config": {
"build_caching": true,
"build_command": "npm run build",
"destination_dir": "build",
"root_dir": "/",
Expand Down Expand Up @@ -178,6 +179,7 @@ const (
}
],
"build_config": {
"build_caching": true,
"build_command": "npm run build",
"destination_dir": "build",
"root_dir": "/",
Expand Down Expand Up @@ -269,6 +271,7 @@ const (
}
],
"build_config": {
"build_caching": true,
"build_command": "npm run build",
"destination_dir": "build",
"root_dir": "/",
Expand Down Expand Up @@ -399,6 +402,7 @@ var (
}

expectedPagesProjectBuildConfig = &PagesProjectBuildConfig{
BuildCaching: BoolPtr(true),
BuildCommand: "npm run build",
DestinationDir: "build",
RootDir: "/",
Expand Down

0 comments on commit af29d64

Please sign in to comment.