Title: Feature Request: Allow for specifying custom build environment variables · Issue #141 · PowerShellOrg/BuildHelpers · GitHub
Open Graph Title: Feature Request: Allow for specifying custom build environment variables · Issue #141 · PowerShellOrg/BuildHelpers
X Title: Feature Request: Allow for specifying custom build environment variables · Issue #141 · PowerShellOrg/BuildHelpers
Description: I have a requirement where I need to "compose" my project together, and therefore, the "output path" is where the composed output is placed. Then, there's the real output path of my published "package". It would be nice if, when invoking...
Open Graph Description: I have a requirement where I need to "compose" my project together, and therefore, the "output path" is where the composed output is placed. Then, there's the real output path of my published "pack...
X Description: I have a requirement where I need to "compose" my project together, and therefore, the "output path" is where the composed output is placed. Then, there's the real output pa...
Opengraph URL: https://github.com/PowerShellOrg/BuildHelpers/issues/141
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request: Allow for specifying custom build environment variables","articleBody":"I have a requirement where I need to \"compose\" my project together, and therefore, the \"output path\" is where the composed output is placed. Then, there's the _real_ output path of my published \"package\". It would be nice if, when invoking `Set-BuildEnvironment`, one could add their own custom variable, something along the lines of:\r\n\r\n```powershell\r\nSet-BuildEnvironment `\r\n -VariableNamePrefix 'MYPROJECT_' `\r\n -BuildOutput '$ProjectRoot\\build' `\r\n -CustomVariables @{ 'BUILDARTIFACTS' = '$ProjectRoot\\out' }\r\n```\r\n\r\n(NOTE: It's OK to have a plural parameter name when the value of the parameter is a hashtable, where there may be 1 or more items. This is a rare exception to the rule that parameter names should be singular. See, for example, `Invoke-RestMethod` and its parameter `-Headers`.)\r\n\r\nIn the \"custom variable\" hashtable, you only need to define the variable name and it's value. The name will be pre-pended with the VariableNamePrefix, if any, resulting in this case, the environment variable `MYPROJECT_BUILDARTIFACTS` being defined. And for the value, you can use the same syntax as we are already accustomed to for ensuring variables are \"expanded\" appropriately (e.g., `$ProjectRoot`).","author":{"url":"https://github.com/fourpastmidnight","@type":"Person","name":"fourpastmidnight"},"datePublished":"2023-08-11T13:47:34Z","url":"https://github.com/PowerShellOrg/BuildHelpers/issues/141"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b071bb3b-b833-ffb7-1614-671225c3d17d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A90A:9A536:2197196:2EF7F9D:6AFD3217 |
| html-safe-nonce | 4375c2019c4ccf2ef14cfed45fc5f057c3d807e28e74b041139563b953e38f42 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTBBOjlBNTM2OjIxOTcxOTY6MkVGN0Y5RDo2QUZEMzIxNyIsInZpc2l0b3JfaWQiOiI1MDY5NDc5NDM3NDc3NDI1Njg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e17ed148ad0be9b4286ef8dcd2f4463ffc31dd963347d8641e1cc3601511b23f |
| hovercard-subject-tag | issue:1846859146 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShellOrg/BuildHelpers/141/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fa6798c88df002de5f1aab99f440cc0227298488a3a21dd442c516aa79e9f246/PowerShellOrg/BuildHelpers/issues/141 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fa6798c88df002de5f1aab99f440cc0227298488a3a21dd442c516aa79e9f246/PowerShellOrg/BuildHelpers/issues/141 |
| og:image:alt | I have a requirement where I need to "compose" my project together, and therefore, the "output path" is where the composed output is placed. Then, there's the real output path of my published "pack... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fourpastmidnight |
| hostname | github.com |
| expected-hostname | github.com |
| None | 065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShellOrg/BuildHelpers git https://github.com/PowerShellOrg/BuildHelpers.git |
| octolytics-dimension-user_id | 4895314 |
| octolytics-dimension-user_login | PowerShellOrg |
| octolytics-dimension-repository_id | 59748913 |
| octolytics-dimension-repository_nwo | PowerShellOrg/BuildHelpers |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 59748913 |
| octolytics-dimension-repository_network_root_nwo | PowerShellOrg/BuildHelpers |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 941021edf0c2ec58298f4a2c8f27ae507d129c92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width