Gluejs

Description

Task to process gluejs, a Node/CommonJS modules packager for the browser (see: mixu.net/gluejs).

Installation

Please install:
$ npm install -g gluejs

Gluejs task parameters

Attribute Description Value Required
file --main option:
Name of the main file/module to export. Default: index.js
yes
tofile --out option:
File to write. Default: stdout
no
fileset --include option:
Path to import.
yes
name --global option:
Name of the global to export. Default: "App"
no

Examples

/!\ gluejs must be installed on the system and set up in the PATH.

<project name="gluejs task"> 

  <taskdef name="gluejs" 
     classname="net.sourceforge.ant4x.taskdefs.javascript.GluejsTask" 
     classpath="PATH/TO/ant4x.jar"/> 

  <target name="gluejs"> 
  <gluejs file="js/main.js" tofile="dist/app.js" name="App">
    <dirset dir="node_modules">
      <include name="marked"/>
    </dirset>
  </gluejs>
  </target> 

                    </project>