dojo - Bower does not download git submodule (DojoX candidate plugin) -


i using dojo, dijit, dojox in project, installed with:

$ bower install dojo dijit dojox bower dijit#*                   cached git://github.com/dojo/dijit.git#1.9.3 bower dijit#*                 validate 1.9.3 against git://github.com/dojo/dijit.git#* bower dojo#*                    cached git://github.com/dojo/dojo.git#1.9.3 bower dojo#*                  validate 1.9.3 against git://github.com/dojo/dojo.git#* bower dojox#*                   cached git://github.com/dojo/dojox.git#1.9.3 bower dojox#*                 validate 1.9.3 against git://github.com/dojo/dojox.git#* 

everything fine until discover dojox.calendar missing. candidate plugin dojox , using dojox git repository (git cloned github) requires "git submodule update --init --recursive".

my options are:

  • can bower download git submodule?
  • or should download module separate dojox package via normal git clone , symlink dojox/calendar it? mean have maintain link every time bower updates dojox packages, right?

update: i've discovered bower install accepts git urls parameters, outputs single index html file not module need.

dojo not support installed through bower. when use following command:

bower install dojo dijit dojox 

all source files, tests, docs, ... downloaded , not production-ready minified files. not "huge" problem, leave bigger footprint behind.


back problem, don't think it's possible @ moment make bower install dojo indeed need include submodules, install through:

git clone --recursive git@github.com:dojo/dojox 

you can report bower team make them support --recursive part or report dojo team, make them support bower (and having minified/production files).


right now, best thing not use git bower repository. bower load external archive file well, containing files need.

so in case be:

bower install dojo=http://download.dojotoolkit.org/release-1.9.3/dojo-release-1.9.3.tar.gz 

this provide following directory structure:

  • bower_components
    • dojo
      • dijit
      • dojo
      • dojox

another alternative make own dojo build , hosting on private git repository. might solution enterprises because allows come unified dojo build applications @ enterprise.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -