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

Commit cdc61b1

Browse files
committed
Use npm to install required dependencies to run the tests:Angular, Angular Sanitize, Angular Mocks and JQuery.
Removed: post-install bower script. No longer need to call bower from npm.
1 parent 948d383 commit cdc61b1

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

karma.conf.js

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

1010
// List of files / patterns to load in the browser
1111
files: [
12-
'bower_components/jquery/dist/jquery.js',
13-
'bower_components/angular/angular.js',
14-
'bower_components/angular-sanitize/angular-sanitize.js',
15-
'bower_components/angular-mocks/angular-mocks.js',
12+
'node_modules/jquery/dist/jquery.js',
13+
'node_modules/angular/angular.js',
14+
'node_modules/angular-sanitize/angular-sanitize.js',
15+
'node_modules/angular-mocks/angular-mocks.js',
1616

1717
'dist/select.js',
1818
'test/helpers.js',

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
},
99
"version": "0.11.2",
1010
"devDependencies": {
11+
"angular": "^1.2.18",
12+
"angular-mocks": "^1.2.18",
13+
"angular-sanitize": "^1.2.18",
1114
"bower": "~1.3",
1215
"del": "~0.1.1",
1316
"event-stream": "~3.1.0",
@@ -23,6 +26,7 @@
2326
"gulp-rename": "~0.2.2",
2427
"gulp-uglify": "~0.3.1",
2528
"gulp-util": "^2.2.19",
29+
"jquery": "~1.11",
2630
"jshint-stylish": "~0.3.0",
2731
"karma": "^0.12.16",
2832
"karma-chrome-launcher": "^0.1.3",
@@ -33,7 +37,6 @@
3337
"karma-coverage": "~0.2"
3438
},
3539
"scripts": {
36-
"postinstall": "bower install",
3740
"test": "gulp test"
3841
},
3942
"license": "MIT"

0 commit comments

Comments
 (0)