steal-tools export

  • function
steal-tools.cmd.export  

Export a project's modules to other forms and formats from the command line.

steal-tools export [--OPTION_NAME OPTION_VALUE]...

Parameters

  1. OPTION_NAME {String}

    Any steal, options, or outputs name in ExportObject.

  2. OPTION_VALUE {String}

    The value of OPTION_NAME. The ignores option will be converted to a regular expression.

Returns

{String}

Writes the output to the console.

Use

Note: The steal-tools export command-line utility calls 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'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
Help us improve StealJS by taking our community survey