Skip to content

Commit

Permalink
Prepare v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
beevelop committed Feb 29, 2016
1 parent a5bc908 commit 4396c2e
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 31 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
bower_components/
node_modules/
.idea/
node_modules/
5 changes: 1 addition & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
node_modules/
bower_components/

build/
dist/
bower_components/
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: node_js
node_js:
- "0.10"
before_install: npm install -g grunt-cli
- "4.1"
before_install: npm install -g grunt-cli

7 changes: 3 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ module.exports = function (grunt) {
preserveComments: 'some'
},
files: {
'ng-stomp.min.js': ['ng-stomp.js'],
'ng-stomp.standalone.min.js': [
'dist/ng-stomp.min.js': ['src/ng-stomp.js'],
'dist/ng-stomp.standalone.min.js': [
'bower_components/sockjs/sockjs.min.js',
'bower_components/stomp-websocket/lib/stomp.min.js',
'ng-stomp.js'
'src/ng-stomp.js'
]
}
}
Expand All @@ -26,7 +26,6 @@ module.exports = function (grunt) {
})

grunt.loadNpmTasks('grunt-contrib-uglify')
grunt.loadNpmTasks('grunt-contrib-jshint')
grunt.loadNpmTasks('grunt-standard')
grunt.registerTask('default', ['standard', 'uglify'])
}
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
bower install --save ng-stomp
```

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

#### Add SockJS + STOMP + (minified) ngStomp:
#### 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/ng-stomp.min.js"></script>
<script src="bower_components/ng-stomp/dist/ng-stomp.min.js"></script>
```
----

Expand All @@ -35,16 +35,16 @@ bower install --save ng-stomp
npm install --save ng-stomp
```

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

#### Add SockJS + STOMP + (minified) Stompie:
#### 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/ng-stomp/ng-stomp.min.js"></script>
<script src="node_modules/ng-stomp/dist/ng-stomp.min.js"></script>
```
----

Expand Down Expand Up @@ -91,4 +91,12 @@ angular
})
```

## API-Docs (TBD)
## API-Docs (TBD)
- setDebug(callback)
- connect(endpoint, headers)
- disconnect
- subscribe(destination, callback, headers)
- on(destination, callback, headers)
- unsubscribe(subscription)
- off(subscription)
- send(destination, body, headers)
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "ng-stomp",
"version": "0.1.2",
"version": "0.2.0",
"homepage": "https://github.com/beevelop/ng-stomp",
"authors": [
"Maik Hummel <m@ikhummel.com>"
],
"description": "STOMP for AngularJS",
"main": "ng-stomp.js",
"main": "src/ng-stomp.js",
"keywords": [
"STOMP",
"websockets"
Expand Down
4 changes: 2 additions & 2 deletions ng-stomp.min.js → dist/ng-stomp.min.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* ngStomp
*
* @version 0.1.0
* @version 0.2.0
* @author Maik Hummel <m@ikhummel.com>
* @license WTFPL
* @license MIT
*/
/*global
angular, SockJS, Stomp */
Expand Down

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "ng-stomp",
"version": "0.1.2",
"version": "0.2.0",
"description": "STOMP for AngularJS",
"main": "ng-stomp.js",
"main": "src/ng-stomp.js",
"dependencies": {
"sockjs": "^0.3.15",
"stompjs": "^2.3.3"
Expand Down
4 changes: 2 additions & 2 deletions ng-stomp.js → src/ng-stomp.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* ngStomp
*
* @version 0.1.0
* @version 0.2.0
* @author Maik Hummel <m@ikhummel.com>
* @license WTFPL
* @license MIT
*/

/*global
Expand Down

0 comments on commit 4396c2e

Please sign in to comment.