Closed bworline closed 3 years ago
@stephenmichaelf are you able to look at this PR? If not, can you point me to someone who can?
@stephenmichaelf - Can you review this PR?
@dwilsonactual can you merge this PR? I don't have write access.
I don't see how this closes #92. It doesn't seem to process the task.json
in each build task extension...
I don't see how this closes #92. It doesn't seem to process the
task.json
in each build task extension...
Ah, you are correct. I'd confused manifest.json with task.json. I've removed the link to #92.
Would love that functionality though :). There are ways the manifests interact.
This PR adds support for webpack-like configuration of the manifest file by giving the option to provide a manifest js file instead of a manifest json file.
From the updated documentation: "Use the
--manifest-js
option to supply a Node.JS CommonJS module and export a function. The function will be invoked with an environment property bag as a parameter, and must return the manifest JSON object. Environment variables for the property bag are specified with the--env
command line parameter. These are space separated key-value pairs, e.g.--env mode=production rootpath="c:\program files" size=large
."This can address scenarios described by the following issues. Fixes #161, Fixes #258.
An example manifest JS file might look like the following. It's inspired by David Hathaway's article on Streamlining Azure DevOps extension development but allows combining the development and release configs.