funcunit
Version:
<!-- @hide title
46 lines (30 loc) • 1.45 kB
Markdown
steal-tools.cmd.export steal-tools export
steal-tools.cmd
Export a project's modules to other forms and formats from the command line.
`steal-tools export [--OPTION_NAME OPTION_VALUE]...`
{String} OPTION_NAME Any `system`, `options`, or `outputs` name in
[steal-tools.export.object].
{String} OPTION_VALUE The value of `OPTION_NAME`. The `ignores` option
will be converted to a regular expression.
{String} Writes the output to the console.
## Use
> Note: The `steal-tools export` command-line
utility calls [steal-tools.export steal-tools.export] internally.
This page documents the specifics of the command-line utility, which is useful
to export to default module outputs like `+amd`,`+cjs`, `+global-js` and
`+global-css` (by passing --amd, --cjs, --global or --all). Read
[steal-tools.export steal-tools.export's documentation] for how to use
export in various workflows and detailed information on the options available.
Access `steal-tools` in _node_modules/.bin_, like:
> ./node_modules/.bin/steal-tools export \
--config app/config.js \
--main app \
--all
Or, `steal-tools` can be installed into the command line, like:
> npm install steal-tools -g
Then you can run `steal-tools transform`, like:
> steal-tools export \
--config app/config.js \
--main app \
--amd