i'm relatively new to the js space, so bear with me:
for this bower.json file:
{
"name": "ng-boilerplate",
"version": "0.3.1",
"devDependencies": {
"angular": "~1.2.0-rc.3",
"angular-mocks": "~1.2.0-rc.3",
"bootstrap": "~3.0.1",
"angular-bootstrap": "~0.3.0",
"angular-ui-router": "~0.0.1",
"angular-ui-utils": "~0.0.3"
},
"dependencies": {}
}
angular and angular-mocks should be at the same version,
if this was a maven pom.xml file or grails build-config.groovy file which serve similar purposes,
i would be able to set a single variable to say "~1.2.0-rc.3' in the example above and refer to
it in both the angular and angular-mocks dependencies.
is the issue here that dot-json files don't support variables like that so we are forced to repeat "~1.2.0-rc.3"
twice, or is there some trick to specify the version once and refer to it twice...?
if bower.json was more of a bower.js file, then we could use variables...?
regards,
tony.