| ... | @@ -966,6 +966,16 @@ pub fn addWriteFiles(b: *Build) *Step.WriteFile { | ... | @@ -966,6 +966,16 @@ pub fn addWriteFiles(b: *Build) *Step.WriteFile { |
| 966 | return Step.WriteFile.create(b); | 966 | return Step.WriteFile.create(b); |
| 967 | } | 967 | } |
| 968 | | 968 | |
| | 969 | /// Creates a step for writing data to paths relative to the build root, |
| | 970 | /// mutating the project's source files. |
| | 971 | /// |
| | 972 | /// This build step was designed not to be used during the normal build |
| | 973 | /// process, but rather as a utility run by a developer with intention to |
| | 974 | /// update source files, which will then be committed to version control. |
| | 975 | /// |
| | 976 | /// Example use cases: |
| | 977 | /// * precompiling assets which are tracked by version control |
| | 978 | /// * snapshot testing |
| 969 | pub fn addUpdateSourceFiles(b: *Build) *Step.UpdateSourceFiles { | 979 | pub fn addUpdateSourceFiles(b: *Build) *Step.UpdateSourceFiles { |
| 970 | return Step.UpdateSourceFiles.create(b); | 980 | return Step.UpdateSourceFiles.create(b); |
| 971 | } | 981 | } |