I am developing an application myappusing angularJS with Yeoman Generator. This includes Bower for dependency management and Grunt for connecting these dependencies to index.html (= It generates an index.html file with all scripts and links based on bower configuration and dependencies).
I have angular-gantta dependency that spreads through Bower as a single file .js.
As I want to contribute to angular-gantt, I used bower linkto read sources from the local cloned git repository.
But I still need to override the bower mainout property in myapporder to use the javascript source files from this folder , instead of one distributed .
Is there an automated way to do this without listing one each source file? Is there any generator to create this list from sources?
Myapp / bower.json
{
"name": "myapp",
"version": "0.0.0",
"dependencies": {
...
"angular-gantt": "~0.6.1",
...
},
"devDependencies": {
...
},
"overrides": {
...
"angular-gantt": {
"main": [
"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"
],
.......
}