Currently, I am working on developing a project named myapp
using angularJS along with Yeoman Generator. This project involves utilizing Bower to manage dependencies and Grunt to wiredep those dependencies into the index.html file (which essentially generates index.html with all scripts and links based on the bower configuration and dependencies).
One of the dependencies in my project is angular-gantt
, which is available through Bower as a single .js
file.
In order to contribute to the development of angular-gantt
, I have used the command bower link
to read sources from a locally cloned git repository.
However, I find myself in need of overriding the bower main
property specifically for myapp
to make use of the javascript source files within this folder instead of the single distributed one.
Is there a way to automate this process without manually listing each source file one by one? Are there any generators available to assist in creating this list based on the 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"
],
.......
}