Skip to content

Commit 8528829

Browse files
committed
update docs
1 parent 97f6ac4 commit 8528829

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/extensions.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@ To learn more about TFX, its pre-reqs and how to install, see the [readme](../RE
1515
### Arguments
1616

1717
* `--root`: Root directory.
18-
* `--manifest-js`: Manifest in the form of a standard Node.js CommonJS module with an exported function.
19-
The function takes an environment as a parameter and must return the manifest JSON object.
20-
Environment variables are specified with the env command line parameter.
21-
If this is present then the manifests, manifest-globs, json5, override, and overrides-file arguments are ignored.
22-
* `--env`: Environment variables passed to the manifestJs module. Space separated key-value pairs, e.g. `--env mode=prod size=large`
18+
* `--manifest-js`: Manifest in the form of a standard Node.js CommonJS module with an exported function. If present then the manifests, manifest-globs, json5, override, and overrides-file arguments are ignored.
19+
* `--env`: Environment variables passed to the manifestJs module.
2320
* `--manifests`: List of individual manifest files (space separated).
2421
* `--manifest-globs`: List of globs to find manifests (space separated).
2522
* `--override`: JSON string which is merged into the manifests, overriding any values.
@@ -51,6 +48,10 @@ The version included in the packaged .VSIX and in the source manifest file is no
5148

5249
#### Manifest JS file
5350

51+
Eventually you will find the need to disambiguate in your manifest contents between development and production builds. 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.
52+
53+
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`.
54+
5455
An example manifest JS file might look like the following:
5556

5657
```

0 commit comments

Comments
 (0)