metal-tools-soy

4.3.2 • Public • Published

metal-tools-soy

Build Status

Tool that can be used to compile metal soy files.

CLI

Install

$ npm install --global metal-tools-soy

Use

$ metalsoy

Options

You can see information about the available options by typing $ metalsoy --help in the command line.

dest

$ metalsoy --dest folderName

The directory where the compiled files will be stored.

externalMsgFormat

$ metalsoy --externalMsgFormat format

Pattern that should be used to format the extracted external messages from compiled files.

help

$ metalsoy --help

Shows help information for all options, including default values.

outputDir

$ metalsoy --outputDir folderName

Temp directoy used to compile soy files.

Note: this option does not determine where the final .soy.js files are placed, see --dest option.

skipMetalGeneration

$ metalsoy --skipMetalGeneration

Passing this will cause soy files to be just compiled, without the addition of metal generated code (like the component class).

soyDeps

$ metalsoy --soyDeps node_modules/metal*/src/**/*.soy

Soy files that the main source files depend on, but that shouldn't be compiled. The soy compiler needs these files.

src

$ metalsoy --src src/**/*.soy

The path globs to the soy files to be compiled.

version

$ metalsoy --version

Displays current version of metal-tools-soy.

SoyToIncrementalDomSrcCompiler

This project uses the SoyToIncrementalDomSrcCompiler to compile the soy files to metal using Incremental DOM. Since the compiler is not independently released, the process to update it in this project is as follows:

  1. Clone the https://github.com/google/closure-templates repository
  2. Update the <version> value inside pom.xml to the date of the latest commit that is going to get released using yyyy-mm-dd as the date format
  3. Run mvn install on the root folder
  4. Copy the generated file from ~/.m2/repository/com/google/template/soy/{version}/soy-{version}-SoyToIncrementalDomSrcCompiler.jar to the jar folder in this project

Readme

Keywords

Package Sidebar

Install

npm i metal-tools-soy

Weekly Downloads

517

Version

4.3.2

License

BSD

Unpacked Size

35.3 MB

Total Files

10

Last publish

Collaborators

  • antonio-ortega
  • daniel.sanz
  • izaera-lr
  • edalgrin
  • pat270
  • liferay
  • bryceosterhaus
  • matuzalemteles
  • gagranta
  • p2kmgcl
  • marko.cikos
  • kresimircoko
  • jbalsas
  • brunobasto
  • rframpton
  • mairatma
  • eduardolundgren