I've got a project in Harp with this standard directory structure:
(highlighted parts are in my git, bower_components
and www
should be created upon install/compile).
When I install a new bower component, I can easy include its css in my Less, e.g.
@import "../../bower_components/some-component/stuff";
but what would be the "right" way to use javascripts (or other static assets, for that matter)? Of course, I could simply copy them over, e.g.
cp bower_components/some-jquery-plugin/plugin.js public/js/plugin.js
and this is what people actually do, but I'm looking for something better. Ideally, I'd like to avoid makefiles/gruntfiles completely and be able to initialize my project with just bower install
:
git clone myproject // this will create public/ and bower/harp.json
cd myproject
bower install // this populates bower_components
harp server/compile // just works...
In other words, I'd like to somehow reference static assets that reside in bower_components
from inside the public
dir. Symlinking is not an option because harp compile
doesn't resolve symlinks.