Skip to content

Commit e522cce

Browse files
committed
Remove gulp-ng-annotate
1 parent ef0894c commit e522cce

File tree

6 files changed

+8
-11
lines changed

6 files changed

+8
-11
lines changed

gulpfile.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ var gulp = require('gulp');
99
var header = require('gulp-header');
1010
var jshint = require('gulp-jshint');
1111
var karma = require('karma').Server;
12-
var ngAnnotate = require('gulp-ng-annotate');
1312
var pkg = require('./package.json');
1413
var rename = require('gulp-rename');
1514
var uglify = require('gulp-uglify');
@@ -62,7 +61,6 @@ var config = {
6261
gulp.task('scripts', ['scripts-lint'], function() {
6362
return gulp.src(config.src)
6463
.pipe(babel({ modules: 'ignore', blacklist: ['useStrict'] }))
65-
.pipe(ngAnnotate({ single_quotes: true, add: true }))
6664
.pipe(concat(config.name))
6765
.pipe(wrapUmd(config.umd))
6866
.pipe(uglify({

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"gulp-concat": "^2.4.3",
3636
"gulp-header": "^1.2.2",
3737
"gulp-jshint": "^1.9.0",
38-
"gulp-ng-annotate": "^0.4.4",
3938
"gulp-rename": "^1.2.0",
4039
"gulp-uglify": "^1.0.2",
4140
"gulp-wrap-umd": "^0.2.1",

src/config/oauth-config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11

22
/**
33
* OAuth config.
4-
*
5-
* @ngInject
64
*/
75

86
function oauthConfig($httpProvider) {
97
$httpProvider.interceptors.push('oauthInterceptor');
108
}
119

10+
oauthConfig.$inject = ['$httpProvider'];
11+
1212
/**
1313
* Export `oauthConfig`.
1414
*/

src/interceptors/oauth-interceptor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11

22
/**
33
* OAuth interceptor.
4-
*
5-
* @ngInject
64
*/
75

86
function oauthInterceptor($q, $rootScope, OAuthToken) {
@@ -41,6 +39,8 @@ function oauthInterceptor($q, $rootScope, OAuthToken) {
4139
};
4240
}
4341

42+
oauthInterceptor.$inject = ['$q', '$rootScope', 'OAuthToken'];
43+
4444
/**
4545
* Export `oauthInterceptor`.
4646
*/

src/providers/oauth-provider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ function OAuthProvider() {
7575

7676
/**
7777
* OAuth service.
78-
*
79-
* @ngInject
8078
*/
8179

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

215213
return new OAuth();
216214
};
215+
216+
this.$get.$inject = ['$http', 'OAuthToken'];
217217
}
218218

219219
/**

src/providers/oauth-token-provider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ function OAuthTokenProvider() {
3737

3838
/**
3939
* OAuthToken service.
40-
*
41-
* @ngInject
4240
*/
4341

4442
this.$get = function($cookies) {
@@ -107,6 +105,8 @@ function OAuthTokenProvider() {
107105

108106
return new OAuthToken();
109107
};
108+
109+
this.$get.$inject = ['$cookies'];
110110
}
111111

112112
/**

0 commit comments

Comments
 (0)