Skip to content

Commit 3fb5ea3

Browse files
committed
issue-12
* Removed bower (we'll use npm only) * Fixed karma configuration to use AngularJS from node_modules
1 parent 85e3da6 commit 3fb5ea3

8 files changed

+22
-76
lines changed

.bowerrc

-3
This file was deleted.

.yo-rc.json

-30
This file was deleted.

bower.json

-37
This file was deleted.

karma-dist-concatenated.conf.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ module.exports = function(config) {
2424

2525
// list of files / patterns to load in the browser
2626
files: [
27-
'bower/angular/angular.js',
28-
'bower/angular-mocks/angular-mocks.js',
27+
'node_modules/angular/angular.js',
28+
'node_modules/angular-mocks/angular-mocks.js',
2929
'dist/angular-bootstrap-toggle.js',
3030
'test/unit/**/*.js'
3131
],

karma-dist-minified.conf.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ module.exports = function(config) {
2424

2525
// list of files / patterns to load in the browser
2626
files: [
27-
'bower/angular/angular.js',
28-
'bower/angular-mocks/angular-mocks.js',
27+
'node_modules/angular/angular.js',
28+
'node_modules/angular-mocks/angular-mocks.js',
2929
'dist/angular-bootstrap-toggle.min.js',
3030
'test/unit/**/*.js'
3131
],

karma-src.conf.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ module.exports = function(config) {
2222

2323
// list of files / patterns to load in the browser
2424
files: [
25-
'bower/angular/angular.js',
26-
'bower/angular-mocks/angular-mocks.js',
25+
'node_modules/angular/angular.js',
26+
'node_modules/angular-mocks/angular-mocks.js',
2727
'src/**/*.js',
2828
'test/unit/**/*.js'
2929
],

package-lock.json

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"name": "Tony Wang",
66
"email": "ziscloud@gmail.com"
77
},
8+
"license": "MIT",
9+
"repository": "ziscloud/angular-bootstrap-toggle",
810
"main": "dist/angular-bootstrap-toggle.min.js",
911
"dependencies": {},
1012
"devDependencies": {
@@ -17,6 +19,8 @@
1719
"gulp-rename": "^1.4.0",
1820
"gulp-uglify": "^1.5.4",
1921
"jasmine-core": "^2.99.1",
22+
"angular": "^1.7.7",
23+
"angular-mocks": "^1.7.7",
2024
"jshint-stylish": "^2.2.1",
2125
"karma": "^0.13.22",
2226
"karma-chrome-launcher": "^0.2.3",

0 commit comments

Comments
 (0)