Swiip/generator-gulp-angular — pull request #206 by Swiip (2014-12-22 15:25:11+00:00)
Title: ngAnnotate fix for jsPreprocessors

Since the jsPreprocessor feature, ngAnnotate was failing to find injection for ES6 and TS (#197).

* For ES6, it's quite complicated. ngAnnotate don't pass on source files as the parser don't (yet) understand ES6. After compilation, ngAnnotate needs to see all files to be able to inject but the concatenation is made by Browserify and after Browserify ngAnnotate fail once again to find injections. So... For now, I put the injection explicitly (even if I despise it) waiting for the tools to evolve or to find a build process which works.

* For TS, ngAnnotate miss the injections but it's possible to add annotation as TS don't remove comments.

There was also a mistake on the order of priority on BrowserSync files for the E2E tests.

With this PR, the tests (including E2E) should pass with jsPreprocessors.