Skip to content

Output Configuration

highsource edited this page Dec 22, 2014 · 2 revisions

Synopsis

<jsonix:output
  naming="compact|standard"
  fileName="${module.name}.compact.js"/>

Configures output (naming strategy and file name pattern) for modules. Each output will be applied to each of the compiled Jsonix modules. This allow writing one module in different output files using different naming strategies.

Configuration attributes

  • naming, optional - specifies whether compact or standard naming should be used. If omitted, the standard naming will be used.
  • fileName, optional - file name pattern for the generated files. Supports the special ${module.name} expression which will be substituted with the module name. If omitted, will be generated automatically based on the effective naming:
    • ${module.name}.js if naming is standard.
    • ${module.name}.compact.js if naming is compact.

Usage

Output configuration may be declared in the following places:

  • Top-Level Configuration Element - configures default outputs for modules, optional. If some module does not declare any output configuration, default output configuration will be applied. If no default output is configured on the top level, at least one default output configuration will be created implicitly, based on the default naming strategy.
  • Module Configuration - configures outputs for the given module. If omitted, default output configuration will be applied.
Clone this wiki locally