Skip to content
This repository was archived by the owner on Jun 14, 2019. It is now read-only.

Commit 6f4977f

Browse files
committed
Merge branch 'canary'
2 parents fd78813 + bec7247 commit 6f4977f

File tree

11 files changed

+175
-103
lines changed

11 files changed

+175
-103
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ components
44
bower_components
55
temp
66
*.iml
7+
/build
78

89
# Integration stuff
910
/test/e2e/vertx/app/mods/io.vertx~mod-auth-mgr~2.0.0-final

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ temp
77
# Test Stuff
88
/test/
99
/test_scopes/
10+
/build

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@ language: node_js
22
node_js:
33
- "0.10"
44

5+
addons:
6+
code_climate:
7+
repo_token: 94ea5ac76984c311dcbadb53a52dd219400775e20402587a0063d8b9d3a66bca
8+
59
before_install:
6-
- npm install -g grunt-cli
10+
- npm install -g grunt-cli codeclimate-test-reporter
711

812
before_script:
913
- export DISPLAY=:99.0
1014
- sh -e /etc/init.d/xvfb start
1115

16+
after_script:
17+
- if [ "$TEST_SCOPE" == "" ]; then cat build/coverage/report/lcov.info | codeclimate; fi
18+
1219
env:
1320
- TEST_SCOPE=
1421
- TEST_SCOPE=angular_1.2.x

Gruntfile.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ module.exports = function (grunt) {
146146
dest: 'CHANGELOG.md'
147147
}
148148
},
149-
ngmin: {
149+
ngAnnotate: {
150+
options: {
151+
singleQuotes: true
152+
},
150153
src: {
151154
src: '<%= concat.src.dest %>',
152155
dest: '<%= concat.src.dest %>'
@@ -165,6 +168,6 @@ module.exports = function (grunt) {
165168
grunt.registerTask('test', ['coffee', 'jshint', 'karma:unit']);
166169
grunt.registerTask('install-test', ['bower-install-simple']);
167170
grunt.registerTask('test-server', ['karma:server']);
168-
grunt.registerTask('build', ['clean', 'coffee', 'jshint', 'karma:unit', 'concat', 'ngmin', 'uglify']);
171+
grunt.registerTask('build', ['clean', 'coffee', 'jshint', 'karma:unit', 'concat', 'ngAnnotate', 'uglify']);
169172
grunt.registerTask('release', ['changelog', 'build']);
170173
};

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,7 @@ vertxEventBusService.addListener('address', funcHolder.handler);
170170

171171
Note: Check that dependencies are be installed (`npm install`).
172172

173-
The *unit tests* are available with `npm test`. It performs tests under the current primary target version of AngularJS and other scoped versions as well. Under the hood, this calls `grunt test` for the primary target and for each scope.
174-
175-
Testing only the primary target AngularJS version, simply invoke `grunt test`.
173+
The *unit tests* are available with `npm test` which is actually a shortcut for `grunt test`. It performs tests under the current primary target version of AngularJS. Use `npm run-script test-scopes` for testing other scoped versions as well.
176174

177175
### E2E tests (manually)
178176

bower.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Jan Philipp",
33
"name": "angular-vertxbus",
44
"description": "AngularJS facade and service acting as a Vert.x SockJS client",
5-
"version": "0.9.0",
5+
"version": "0.10.0",
66
"homepage": "http://github.com/knalli/angular-vertxbus",
77
"main": "./dist/angular-vertxbus.js",
88
"ignore": [
@@ -12,18 +12,20 @@
1212
"karma.conf.js",
1313
"/temp/",
1414
"/test/",
15-
"/test_scopes/"
15+
"/test_scopes/",
16+
"/build/"
1617
],
1718
"repository": {
1819
"type": "git",
1920
"url": "git://github.com/knalli/angular-vertxbus"
2021
},
2122
"dependencies": {
22-
"angular": "~1.2.0",
23+
"angular": ">=1.2 <=1.4",
2324
"sockjs-client": "~0.3.4",
2425
"vertxbus.js": "http://cdnjs.cloudflare.com/ajax/libs/vertx/2.0.0/vertxbus.js"
2526
},
2627
"devDependencies": {
27-
"angular-mocks": "~1.2.3"
28+
"angular": "~1.2.27",
29+
"angular-mocks": "~1.2.27"
2830
}
2931
}

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dist/angular-vertxbus.js"
99
],
1010
"dependencies": {
11-
"components/angular.js": "~1.2.0"
11+
"components/angular.js": ">=1.2 <=1.4"
1212
},
1313
"license": "MIT"
1414
}

karma.conf.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var fs = require('fs');
44

5-
var AVAILABLE_SCOPES = [], isValidScope, injectByScope, getAffectiveScope;
5+
var AVAILABLE_SCOPES = [], isValidScope, injectByScope, getAffectiveScope, isDefaultScope;
66

77
(function(undefined){
88
AVAILABLE_SCOPES = fs.readdirSync('./test_scopes').filter(function (filename) {
@@ -25,6 +25,9 @@ var AVAILABLE_SCOPES = [], isValidScope, injectByScope, getAffectiveScope;
2525
prefix = 'test_scopes/' + scope + '/';
2626
}
2727
return prefix + 'bower_components/' + path;
28+
},
29+
isDefaultScope = function (scope) {
30+
return !isValidScope(scope);
2831
};
2932
})();
3033

@@ -60,7 +63,15 @@ module.exports = function(config) {
6063

6164
// test results reporter to use
6265
// possible values: 'dots', 'progress', 'junit'
63-
reporters: ['progress'],
66+
reporters: isDefaultScope(scope) ? ['progress', 'coverage'] : ['progress'],
67+
68+
preprocessors: isDefaultScope(scope) ? { 'temp/src/*.js': ['coverage'] } : undefined,
69+
70+
coverageReporter: isDefaultScope(scope) ? {
71+
dir: 'build/coverage',
72+
subdir: 'report',
73+
type: 'lcov'
74+
} : undefined,
6475

6576
// web server port
6677
port: 9876,
@@ -93,7 +104,6 @@ module.exports = function(config) {
93104
// - IE (only Windows)
94105
browsers: [process.env.TRAVIS ? 'Firefox' : 'Chrome'],
95106

96-
97107
// If browser does not capture in given timeout [ms], kill it
98108
captureTimeout: 60000,
99109

package.json

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-vertxbus",
3-
"version": "0.9.0",
3+
"version": "0.10.0",
44
"description": "AngularJS facade and service acting as a Vert.x SockJS client",
55
"main": "dist/angular-vertxbus.js",
66
"scripts": {
@@ -22,28 +22,30 @@
2222
},
2323
"license": "MIT",
2424
"devDependencies": {
25-
"bower": "~1.3.2",
26-
"coffee-script": "~1.6.3",
27-
"express": "~4.4.5",
28-
"grunt": "~0.4.2",
25+
"bower": "~1.3.12",
26+
"coffee-script": "~1.8.0",
27+
"express": "~4.10.4",
28+
"grunt": "~0.4.5",
2929
"grunt-bower-install-simple": "^1.0.3",
30-
"grunt-contrib-clean": "~0.5.0",
31-
"grunt-contrib-coffee": "~0.7.0",
32-
"grunt-contrib-concat": "~0.3.x",
33-
"grunt-contrib-jshint": "~0.4.x",
34-
"grunt-contrib-uglify": "~0.2.x",
35-
"grunt-contrib-watch": "~0.5.3",
36-
"grunt-conventional-changelog": "~1.0.x",
37-
"grunt-karma": "~0.8.0",
38-
"grunt-ngmin": "~0.0.3",
39-
"karma": "~0.12.0",
40-
"karma-chrome-launcher": "~0.1.2",
30+
"grunt-contrib-clean": "~0.6.0",
31+
"grunt-contrib-coffee": "~0.12.0",
32+
"grunt-contrib-concat": "~0.5.x",
33+
"grunt-contrib-jshint": "~0.10.x",
34+
"grunt-contrib-uglify": "~0.6.x",
35+
"grunt-contrib-watch": "~0.6.1",
36+
"grunt-conventional-changelog": "~1.1.x",
37+
"grunt-karma": "~0.9.0",
38+
"grunt-ng-annotate": "^0.8.0",
39+
"istanbul": "^0.3.5",
40+
"karma": "~0.12.28",
41+
"karma-chrome-launcher": "~0.1.5",
42+
"karma-coverage": "^0.2.7",
4143
"karma-expect": "~1.1.0",
4244
"karma-firefox-launcher": "~0.1.3",
43-
"karma-mocha": "~0.1.3",
44-
"karma-phantomjs-launcher": "~0.1.2",
45-
"load-grunt-tasks": "~0.2.0",
45+
"karma-mocha": "~0.1.9",
46+
"karma-phantomjs-launcher": "~0.1.4",
47+
"load-grunt-tasks": "~1.0.0",
4648
"lodash": "~2.4.x",
47-
"mocha": "~1.18.0"
49+
"mocha": "~2.0.1"
4850
}
4951
}

0 commit comments

Comments
 (0)