Skip to content

Commit

Permalink
Merge pull request #79 from seegno/enhancement/dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
pgom committed Feb 11, 2016
2 parents 46ebcf5 + e9a71dc commit 219e035
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ git:
depth: 10

node_js:
- iojs
- 4.3

cache:
directories:
Expand Down
12 changes: 6 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
* Module dependencies.
*/

var babel = require('gulp-babel');
var concat = require('gulp-concat');
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 karma = require('karma').Server;
var pkg = require('./package.json');
var rename = require('gulp-rename');
var to5 = require('gulp-6to5');
var uglify = require('gulp-uglify');
var wrapUmd = require('gulp-wrap-umd');

Expand Down Expand Up @@ -61,8 +60,7 @@ var config = {

gulp.task('scripts', ['scripts-lint'], function() {
return gulp.src(config.src)
.pipe(to5({ modules: 'ignore', blacklist: ['useStrict'] }))
.pipe(ngAnnotate({ single_quotes: true, add: true }))
.pipe(babel({ modules: 'ignore', blacklist: ['useStrict'] }))
.pipe(concat(config.name))
.pipe(wrapUmd(config.umd))
.pipe(uglify({
Expand Down Expand Up @@ -95,12 +93,14 @@ gulp.task('scripts-lint', function() {
*/

gulp.task('test', ['scripts'], function() {
return karma.start({
var server = new karma({
configFile: __dirname + '/karma.conf.js',
singleRun: true
}, function(code) {
console.log('Karma has exited with code', code);
});

return server.start();
});

/**
Expand Down
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function(config) {
'node_modules/angular/angular.js',
'node_modules/angular-cookies/angular-cookies.js',
'node_modules/query-string/query-string.js',
'node_modules/lodash/dist/lodash.js',
'node_modules/lodash/lodash.js',
'node_modules/angular-mocks/angular-mocks.js',
'dist/angular-oauth2.js',
'test/mocks/**/*.mock.js',
Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,26 @@
"query-string": "^1.0.0"
},
"devDependencies": {
"6to5ify": "^3.1.2",
"angular-mocks": "^1.3.9",
"bower": "^1.3.12",
"github-changes": "^1.0.0",
"gulp": "^3.8.10",
"gulp-6to5": "^2.0.2",
"gulp-babel": "^5.3.0",
"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",
"jshint-stylish": "^1.0.0",
"karma": "^0.12.31",
"karma": "^0.13.0",
"karma-browserify": "^2.0.0",
"karma-chrome-launcher": "^0.1.7",
"karma-firefox-launcher": "^0.1.4",
"karma-mocha": "^0.1.10",
"karma-mocha-reporter": "^0.3.1",
"karma-should": "0.0.1",
"karma-sinon": "^1.0.4",
"lodash": "^2.4.1",
"lodash": "^4.0.0",
"mocha": "^2.4.5",
"should": "^4.6.0",
"sinon": "^1.17.3",
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 219e035

Please sign in to comment.