Gulp automatically add new js files

would be nice if I create a new directive, factory, what ever… if there where a gulp task that adds it in my index.html automatically…

Perhaps some of you already have this? How did you implement it?