I'm developing an application myapp using angularJS with Yeoman Generator. This includes Bower to manage dependencies, and Grunt to wiredep those dependencies into index.html (=It generates index.html file with all scripts and links based on bower configuration and dependencies).
I have angular-gantt as a dependency, which is distributed through Bower as a single .js file.
As I want to contribute to angular-gantt, i've used bower link to read sources from a local cloned git repository.
But i still need to override the bower main property from myapp to use the javascript source files from this folder, instead of the single distributed one.
Is there an automated way to to this, without listing one by one each source files ? Is there some generator to build this list from sources ?
myapp/bower.json
{
"name": "myapp",
"version": "0.0.0",
"dependencies": {
...
"angular-gantt": "~0.6.1",
...
},
"devDependencies": {
...
},
"overrides": {
...
"angular-gantt": {
"main": [ // <= How to avoid listing those files manually ?
"file1.js",
"file2.js",
"file3.js",
"file4.js",
....
]
},
...
}
}
angular-gantt/bower.json
{
"name": "angular-gantt",
"version": "0.6.1",
"homepage": "https://github.com/Schweigi/angular-gantt",
"authors": [
"Schweigi"
],
"description": "A Gantt chart directive for Angular.js without any other dependencies.",
"main": [
"./assets/angular-gantt.js",
"./assets/gantt.css"
],
.......
}
mainproperty and not use the single distributed one? - user3995789