Skip to content

Commit 67a2cae

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

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ node_js:
44
before_script:
55
- 'npm install -g bower grunt-cli'
66
- 'bower install'
7+
- 'bower install jquery angular-ui-sortable'
78

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

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)