Skip to content

Commit

Permalink
remove bower dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lordfriend committed Mar 21, 2017
1 parent 02679e8 commit 127f9c4
Show file tree
Hide file tree
Showing 23 changed files with 15,014 additions and 6,727 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
language: node_js
node_js:
- "0.10"
- "node"
before_script:
- "npm install -g bower grunt-cli"
- "bower install"
- "npm install -g grunt-cli"
- "yarn install"
# whitelist
branches:
only:
Expand Down
10 changes: 2 additions & 8 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ module.exports = function(grunt) {
files:[
{
expand: true,
cwd: 'bower_components/',
cwd: 'node_modules/',
flatten: true,
src: [
'angular/angular.js',
Expand All @@ -193,7 +193,7 @@ module.exports = function(grunt) {
},
{
expand: true,
cwd: 'bower_components',
cwd: 'node_modules',
flatten: true,
src: [
'bootstrap/dist/fonts/*'
Expand All @@ -211,12 +211,6 @@ module.exports = function(grunt) {
flatten: true,
src: ['dist/css/nya-bs-select.css'],
dest: 'docs/dist/css/'
},
{
expand: true,
cwd: 'bower_components/svg-loaders',
src: ['svg-loaders/*'],
dest: 'docs/dist/'
}
]
}
Expand Down
14 changes: 2 additions & 12 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nya-bootstrap-select",
"version": "2.1.10",
"version": "2.2.0",
"main": [
"dist/js/nya-bs-select.js",
"dist/css/nya-bs-select.css"
Expand All @@ -19,15 +19,5 @@
"bootstrap-select",
"dropdown",
"angular"
],
"dependencies": {
"angular": ">=1.2"
},
"devDependencies": {
"jquery": "~2.1.1",
"bootstrap": "~3.3.0",
"angular-mocks": "*",
"angular-ui-router": "~0.2.11",
"angular-translate": "^2.9.0"
}
]
}
2 changes: 1 addition & 1 deletion dist/css/nya-bs-select.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @lordfriend/nya-bootstrap-select v2.1.10
* @lordfriend/nya-bootstrap-select v2.2.0
* Copyright 2014 Nyasoft
* Licensed under MIT license
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/css/nya-bs-select.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/js/nya-bs-select.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @lordfriend/nya-bootstrap-select v2.1.10
* @lordfriend/nya-bootstrap-select v2.2.0
* Copyright 2014 Nyasoft
* Licensed under MIT license
*/
Expand Down Expand Up @@ -1162,7 +1162,7 @@ nyaBsSelect.directive('nyaBsSelect', ['$parse', '$document', '$timeout', '$compi

for (var i = 0; i < liElements.length; i++) {
var nyaBsOption = jqLite(liElements[i]);
if (nyaBsOption.hasClass('disabled'))
if (nyaBsOption.hasClass('disabled') || nyaBsOption.hasClass('not-match'))
continue;

var value, index;
Expand Down
4 changes: 2 additions & 2 deletions dist/js/nya-bs-select.min.js

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions docs/dist/css/main.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* @lordfriend/nya-bootstrap-select v2.1.10
* @lordfriend/nya-bootstrap-select v2.2.0
* Copyright 2014 Nyasoft
* Licensed under MIT license
*/
/*!
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
Expand Down Expand Up @@ -1100,7 +1100,6 @@ a:focus {
text-decoration: underline;
}
a:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
Expand Down Expand Up @@ -2529,7 +2528,6 @@ select[size] {
input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
Expand Down Expand Up @@ -3020,7 +3018,6 @@ select[multiple].input-lg {
.btn.focus,
.btn:active.focus,
.btn.active.focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
Expand Down
2 changes: 1 addition & 1 deletion docs/dist/css/nya-bs-select.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @lordfriend/nya-bootstrap-select v2.1.10
* @lordfriend/nya-bootstrap-select v2.2.0
* Copyright 2014 Nyasoft
* Licensed under MIT license
*/
Expand Down
Loading

0 comments on commit 127f9c4

Please sign in to comment.