Bower
Description
Task to process bower, a package manager for the web (see: bower.io).
Installation
Please install:
$ npm install -g bower
Bower task parameters
Attribute | Description | Value | Required |
---|---|---|---|
install | The package to install | yes | |
todir | The directory where to install package | no, bower_components/<package> by default
if defined, create .bowerrc file: {"cwd": "<parent/dir>","directory": "<dir name>"} |
|
clean | Execute 'bower cache clean' before install | true|false* | no |
Examples
<project name="bower task"> <taskdef name="bower" classname="net.sourceforge.ant4x.taskdefs.javascript.BowerTask" classpath="PATH/TO/ant4x.jar"/> <target name="bower"> <bower install="jquery" todir="js" /> </target> </project>