Skip to content
This repository was archived by the owner on Sep 30, 2021. It is now read-only.

Commit eba8624

Browse files
committed
add travis + update dev dependencies
1 parent ac4d070 commit eba8624

File tree

4 files changed

+42
-11
lines changed

4 files changed

+42
-11
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: node_js
2+
node_js:
3+
- 0.10.45
4+
5+
before_install:
6+
- npm install -g grunt-cli
7+
- npm install -g bower
8+
9+
install:
10+
- npm prune && npm install
11+
- bower prune && bower install
12+
- ./node_modules/grunt-protractor-runner/scripts/webdriver-manager-update
13+
- grunt
14+
15+
script:
16+
- grunt test
17+
18+
cache:
19+
directories:
20+
- node_modules
21+
- bower_components

bower.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
},
99
"description": "Angular directive/filter/service for formatting date so that it displays how long ago the given time was compared to now.",
1010
"devDependencies": {
11-
"angular-mocks": "^1.2.10",
12-
"chai": "1.9.0",
13-
"jquery": "2.1.0"
11+
"angular-mocks": "^1.2.10"
1412
},
1513
"homepage": "https://github.com/yaru22/angular-timeago",
1614
"ignore": [

karma-unit.conf.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ module.exports = function(config) {
1919

2020
// list of files / patterns to load in the browser
2121
files: [
22-
'bower_components/chai/chai.js',
22+
'node_modules/chai/chai.js',
2323
// needed for elem.find() lookup by other than tag name
24-
'bower_components/jquery/dist/jquery.js',
24+
'node_modules/jquery/dist/jquery.js',
2525

2626
'bower_components/angular/angular.js',
2727
'bower_components/angular-mocks/angular-mocks.js',
@@ -84,7 +84,7 @@ module.exports = function(config) {
8484
// - Safari (only Mac)
8585
// - PhantomJS
8686
// - IE (only Windows)
87-
browsers: ['Chrome'],
87+
browsers: ['PhantomJS'],
8888

8989

9090
// If browser does not capture in given timeout [ms], kill it
@@ -93,6 +93,13 @@ module.exports = function(config) {
9393

9494
// Continuous Integration mode
9595
// if true, it capture browsers, run tests and exit
96-
singleRun: false
96+
singleRun: false,
97+
98+
plugins:[
99+
'karma-chrome-launcher',
100+
'karma-mocha',
101+
'karma-phantomjs-launcher',
102+
'karma-ng-html2js-preprocessor'
103+
]
97104
});
98105
};

package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
],
2323
"dependencies": {},
2424
"devDependencies": {
25+
"chai": "3.5.0",
2526
"grunt": "0.4.5",
2627
"grunt-contrib-clean": "1.0.0",
2728
"grunt-contrib-concat": "1.0.1",
@@ -31,18 +32,22 @@
3132
"grunt-contrib-uglify": "1.0.1",
3233
"grunt-contrib-watch": "1.0.0",
3334
"grunt-jsbeautifier": "0.2.12",
34-
"grunt-karma": "1.0.0",
35+
"grunt-karma": "2.0.0",
3536
"grunt-ng-annotate": "2.0.2",
3637
"grunt-open": "0.2.3",
37-
"grunt-protractor-runner": "3.1.0",
38+
"grunt-protractor-runner": "3.2.0",
3839
"grunt-release": "0.13.1",
40+
"jquery": "3.0.0",
3941
"karma": "0.13.22",
4042
"karma-chrome-launcher": "1.0.1",
4143
"karma-mocha": "1.0",
44+
"karma-ng-html2js-preprocessor": "1.0.0",
45+
"karma-phantomjs-launcher": "1.0.0",
4246
"matchdep": "1.0.1",
43-
"mocha": "2.4.5",
47+
"mocha": "2.5.3",
48+
"phantomjs-prebuilt": "2.1.7",
4449
"protractor": "3.3.0",
45-
"serve-static": "1.10.2"
50+
"serve-static": "1.11.1"
4651
},
4752
"main": "dist/angular-timeago.js",
4853
"scripts": {

0 commit comments

Comments
 (0)