Skip to content

Commit

Permalink
Remove Bower support and update deps (close #27)
Browse files Browse the repository at this point in the history
  • Loading branch information
beevelop committed Feb 9, 2018
1 parent c19ed65 commit da92a59
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 70 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: node_js
node_js:
- "6"
- "8"
before_install:
- npm install -g grunt-cli bower
- bower i
- npm install -g grunt-cli

4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = function (grunt) {
var standaloneFiles = [
'bower_components/sockjs-client/dist/sockjs.min.js',
'bower_components/stomp-websocket/lib/stomp.min.js',
'node_modules/sockjs-client/dist/sockjs.min.js',
'node_modules/@stomp/stompjs/lib/stomp.min.js',
'src/ng-stomp.js'
]

Expand Down
20 changes: 1 addition & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,6 @@
## Installation

### Install via Bower:
```bash
bower install --save ng-stomp
```

#### Add standalone version (dependencies included) to your HTML file
```html
<script src="bower_components/ng-stomp/dist/ng-stomp.standalone.min.js"></script>
```

#### Or add SockJS + STOMP + (minified) ngStomp individually:
```html
<script src="bower_components/sockjs/sockjs.min.js"></script>
<script src="bower_components/stomp-websocket/lib/stomp.min.js"></script>
<script src="bower_components/ng-stomp/dist/ng-stomp.min.js"></script>
```
----

### Install via npm:
```bash
npm install --save ng-stomp
Expand All @@ -43,7 +25,7 @@ npm install --save ng-stomp
#### Or add SockJS + STOMP + (minified) Stompie individually:
```html
<script src="node_modules/sockjs/sockjs.min.js"></script>
<script src="node_modules/stompjs/lib/stomp.min.js"></script>
<script src="node_modules/@stomp/stompjs/lib/stomp.min.js"></script>
<script src="node_modules/ng-stomp/dist/ng-stomp.min.js"></script>
```
----
Expand Down
26 changes: 0 additions & 26 deletions bower.json

This file was deleted.

9 changes: 1 addition & 8 deletions dist/ng-stomp.min.js

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

11 changes: 1 addition & 10 deletions dist/ng-stomp.standalone.min.js

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "src/ng-stomp.js",
"devDependencies": {
"grunt": "^1.0.1",
"grunt-contrib-uglify": "^2.0.0",
"grunt-contrib-uglify": "^3.3.0",
"grunt-file-exists": "^0.1.4"
},
"scripts": {
Expand All @@ -25,5 +25,9 @@
"bugs": {
"url": "https://github.com/beevelop/ng-stomp/issues"
},
"homepage": "https://github.com/beevelop/ng-stomp"
"homepage": "https://github.com/beevelop/ng-stomp",
"dependencies": {
"@stomp/stompjs": "^4.0.1",
"sockjs-client": "^1.1.4"
}
}

0 comments on commit da92a59

Please sign in to comment.