Skip to content

Commit 984ca15

Browse files
committed
chore(deps): update dependencies so that angular-ui-sortable is optional
1 parent 531b996 commit 984ca15

File tree

5 files changed

+21
-9
lines changed

5 files changed

+21
-9
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ node_js:
44
before_script:
55
- 'npm install -g bower grunt-cli'
66
- 'bower install'
7-

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ With bower:
3434
bower install angularjs-table
3535
```
3636

37+
Dependencies
38+
------------
39+
40+
The only real dependencies for this library are angular and angular-sanitize. You can optionally include `angular-ui-sortable`, which relies on jquery. This will enable the column sorting via drag-and-drop. Without the presence of `angular-ui-sortable`, the library should work just fine, but without the ability for the user to change the order of the columns via drag-and-drop.
41+
42+
3743
Getting Started
3844
---------------
3945

app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
<!-- build:js scripts/vendor.js -->
6464
<!-- bower:js -->
65-
<script src="bower_components/jquery/jquery.js"></script>
65+
<script src="bower_components/jquery/dist/jquery.js"></script>
6666
<script src="bower_components/angular/angular.js"></script>
6767
<script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
6868
<script src="bower_components/angular-animate/angular-animate.js"></script>

bower.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@
77
],
88
"dependencies": {
99
"angular": "^1.6",
10-
"jquery": "~2.0.3",
11-
"angular-sanitize": "^1.6",
12-
"angular-ui-sortable": "~0.13",
13-
"jquery-ui": ">=1.11.0"
10+
"angular-sanitize": "^1.6"
11+
},
12+
"optionalDependencies": {
13+
"jquery-ui": ">=1.11.0",
14+
"angular-ui-sortable": "~0.13"
1415
},
1516
"devDependencies": {
17+
"jquery": "~2",
18+
"angular-ui-sortable": "~0.13",
19+
"jquery-ui": ">=1.11.0",
1620
"angular-route": "^1.6",
1721
"bootstrap": "~3.0.3",
1822
"angular-mocks": "^1.6",

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
"version": "2.21.5",
44
"license": "Apache License, v2.0",
55
"dependencies": {
6-
"angular": "^1.6",
7-
"jquery": "~2",
8-
"angular-sanitize": "~1.3"
6+
"angular": "^1.4",
7+
"angular-sanitize": "^1.4"
8+
},
9+
"optionalDependencies": {
10+
"jquery-ui": ">=1.11.0",
11+
"angular-ui-sortable": "~0.13"
912
},
1013
"repository": "https://github.com/andyperlitch/angularjs-table",
1114
"types": "./angular-mesa.d.ts",

0 commit comments

Comments
 (0)