Skip to content

Commit

Permalink
Remove gulp-ng-annotate
Browse files Browse the repository at this point in the history
  • Loading branch information
ruipenso committed Feb 11, 2016
1 parent ef0894c commit e522cce
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
2 changes: 0 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ var gulp = require('gulp');
var header = require('gulp-header');
var jshint = require('gulp-jshint');
var karma = require('karma').Server;
var ngAnnotate = require('gulp-ng-annotate');
var pkg = require('./package.json');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
Expand Down Expand Up @@ -62,7 +61,6 @@ var config = {
gulp.task('scripts', ['scripts-lint'], function() {
return gulp.src(config.src)
.pipe(babel({ modules: 'ignore', blacklist: ['useStrict'] }))
.pipe(ngAnnotate({ single_quotes: true, add: true }))
.pipe(concat(config.name))
.pipe(wrapUmd(config.umd))
.pipe(uglify({
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"gulp-concat": "^2.4.3",
"gulp-header": "^1.2.2",
"gulp-jshint": "^1.9.0",
"gulp-ng-annotate": "^0.4.4",
"gulp-rename": "^1.2.0",
"gulp-uglify": "^1.0.2",
"gulp-wrap-umd": "^0.2.1",
Expand Down
4 changes: 2 additions & 2 deletions src/config/oauth-config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

/**
* OAuth config.
*
* @ngInject
*/

function oauthConfig($httpProvider) {
$httpProvider.interceptors.push('oauthInterceptor');
}

oauthConfig.$inject = ['$httpProvider'];

/**
* Export `oauthConfig`.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/interceptors/oauth-interceptor.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

/**
* OAuth interceptor.
*
* @ngInject
*/

function oauthInterceptor($q, $rootScope, OAuthToken) {
Expand Down Expand Up @@ -41,6 +39,8 @@ function oauthInterceptor($q, $rootScope, OAuthToken) {
};
}

oauthInterceptor.$inject = ['$q', '$rootScope', 'OAuthToken'];

/**
* Export `oauthInterceptor`.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/providers/oauth-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ function OAuthProvider() {

/**
* OAuth service.
*
* @ngInject
*/

this.$get = function($http, OAuthToken) {
Expand Down Expand Up @@ -214,6 +212,8 @@ function OAuthProvider() {

return new OAuth();
};

this.$get.$inject = ['$http', 'OAuthToken'];
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/providers/oauth-token-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ function OAuthTokenProvider() {

/**
* OAuthToken service.
*
* @ngInject
*/

this.$get = function($cookies) {
Expand Down Expand Up @@ -107,6 +105,8 @@ function OAuthTokenProvider() {

return new OAuthToken();
};

this.$get.$inject = ['$cookies'];
}

/**
Expand Down

0 comments on commit e522cce

Please sign in to comment.