Пример #1
0
  public TranspileJSTask() {
    dependsOn(JSTranspilerPlugin.DOWNLOAD_LFR_AMD_LOADER_TASK_NAME);
    dependsOn(JSTranspilerPlugin.DOWNLOAD_METAL_CLI_TASK_NAME);

    setScriptFile(
        new Callable<File>() {

          @Override
          public File call() throws Exception {
            return new File(getNodeDir(), "node_modules/metal-cli/index.js");
          }
        });

    soySrcInclude("**/*.soy");
    srcInclude("**/*.es.js", "**/*.soy.js");
  }
Пример #2
0
  public void setSrcIncludes(Iterable<?> srcIncludes) {
    _srcIncludes.clear();

    srcInclude(srcIncludes);
  }