Open teehemkay opened 10 years ago
In a convoluted way, this feature depends on #50. We will have to do #50 first. Just FYI.
There are two reasons rave cannot automatically find .bowerrc:
So, it seems a reasonable way to provide this feature is via a config option. Something like:
<!doctype html>
<html data-rave-bower-root="client/this_is_not_bower_components">...</html>
and
{
"rave": {
"bower_root": "client/this_is_not_bower_components"
}
}
Anybody have any thoughts about this?
@briancavalier suggested rave.bowerrc.dir, a much more precise and obvious name.
Actually, I think rave.bowerrc.directory is the most precise. Wondering if it's too verbose and/or too nested:
<!doctype html>
<html data-rave-bowerrc-directory="client/this_is_not_bower_components">...</html>
and
{
"rave": {
"bowerrc": {
"directory": "client/this_is_not_bower_components"
}
}
}
Good call on rave.bowerrc.directory
, might as well match it exactly if we go that route.
Another possibility would be to stick with something bower-specific, but not match .bowerrc exactly, ie something that is just a bit more abstract but still fairly obvious, like rave.bower.root
. That'd still be applicable if bower decided to change bowerrc.
+1 on rave.bower.root.
This feature will be implemented? I'm trying to use rave.js on a existing project, but the bowerrc directory, is changed...
This feature seems easy to add but I just don't have the time atm. Anybody want to send a PR?
bower_components
is the default directory where bower stores components.But Bower also allows for a custom install directory that can be specified with the
directory
property in a.bowerrc
file which is a sibling ofbower.json
in the project directory.