Commit ef58c21
committed
(MAINT) Define build data per-project
Prior to this change, any updates to project build configuration needed
to land in the root `build.data.psd1` file. This made it relatively easy
to forget to update the configuration when working on a specific project.
This change:
1. Defines the configuration on a per-project basis in newly defined
`.project.data.json` files. These files contain the build metadata for
each project _except_ for the `RelativePath` field.
1. Replaces the root `build.data.psd1` file with `build.data.json` containing
the same data.
1. Defines JSON Schemas to validate and provide in-editor help for modifying
and creating new project data files and modifying the root build data file.
1. Updates the build helpers to work with JSON data files instead of the PSD1.
1. Provides a model to retrieve updated project data for use in the build script,
even when the root build data file hasn't been updated yet.
1. Defines the helper function `Update-DscBuildData` to pull changes from the
per-project data files into the root build data file.
Except for using the JSON files, this change doesn't modify the build behavior.
This change doesn't remove the `copy_files.txt` files, though they are now
redundant with the project data files. Once we remove the old build script,
the `copy_files.txt` files should also be removed.1 parent e57d7e2 commit ef58c21
File tree
34 files changed
+1320
-419
lines changed- .vscode
- schemas
- adapters
- powershell
- wmi
- configurations/windows
- dsc
- extensions
- appx
- bicep
- grammars
- tree-sitter-dscexpression
- tree-sitter-ssh-server-config
- lib
- dsc-lib-osinfo
- dsc-lib-pal
- dsc-lib-registry
- dsc-lib-security_context
- dsc-lib
- resources
- PSScript
- apt
- brew
- dscecho
- osinfo
- process
- reboot_pending
- registry
- runcommandonset
- sshdconfig
- tools
- dsctest
- test_group_resource
- y2j
34 files changed
+1320
-419
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
7 | 15 | | |
8 | 16 | | |
9 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments