Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace ngAnnotate with babel-plugin-angularjs-annotate #31

Merged
merged 2 commits into from
Feb 25, 2017

Conversation

jraoult
Copy link
Member

@jraoult jraoult commented Feb 25, 2017

What's this PR do?

Replaces the deprecated ng annotate (through gulp-ng-annotate) with a babel plugin.

ngAnnotate was messing with soource maps and ES2015 arrow functions so that setting breakpoints inside them was impossible. This is inconvenient for debugging purposes.

I also added some missing ngInject annotations that were discovered while switching to the new plugin.

cf. olov/ng-annotate#245

Jonathan Raoult added 2 commits February 24, 2017 17:14
- added gulp-babel dependency
- updated buildJS script to use babel plugin
- added missing "ngInject" annotations: ng-annotate was doing a good job at inferring the missing annotation :)
- upgraded major versions of browserify, envify, gulp-sourcemaps (not required)
- extracted gulp-babel instantiation to a function
@jraoult jraoult changed the title Task/migrate from ng annotate Replace ngAnnotate with babel-plugin-angularjs-annotate Feb 25, 2017
@jraoult jraoult merged commit fe453e8 into mixtube:develop Feb 25, 2017
@jraoult jraoult deleted the task/migrate_from_ng-annotate branch February 25, 2017 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant