Skip to content

Commit bc66189

Browse files
committed
added bower installation step
1 parent 28309f5 commit bc66189

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,36 @@ Ext.ux.data.proxy.WebSocket is an easy-to-use implementation of the ExtJS/Sencha
55
## Requirements
66
* [`Ext.ux.WebSocket`](https://github.com/wilk/ExtJS-WebSocket)
77

8+
## Install via Bower
9+
First of all, install [**Bower**](http://bower.io/).
10+
11+
Then install `Ext.ux.data.proxy.WebSocket`:
12+
13+
```bash
14+
$ bower install ext.ux.data.proxy.websocket
15+
```
16+
17+
Now, you got the extension at the following path: *YOUR_PROJECT_PATH/bower_components/ext.ux.data.proxy.websocket/*
18+
19+
It contains **WebSocket.js** and a minified version **WebSocket.min.js**.
20+
21+
Let's setup the **Ext.Loader** to require the right file:
22+
23+
```javascript
24+
Ext.Loader.setConfig ({
25+
enabled: true ,
26+
paths: {
27+
'Ext.ux.data.proxy.WebSocket': 'bower_components/ext.ux.data.proxy.websocket/WebSocket.js' ,
28+
// or the minified one: 'Ext.ux.data.proxy.WebSocket': 'bower_components/ext.ux.data.proxy.websocket/WebSocket.min.js' ,
29+
// Require the Ext.ux.WebSocket dependency
30+
'Ext.ux.WebSocket': 'bower_components/ext.ux.websocket/WebSocket.js'
31+
// or the minified one: 'Ext.ux.WebSocket': 'bower_components/ext.ux.websocket/WebSocket.min.js'
32+
}
33+
});
34+
35+
Ext.require (['Ext.ux.data.proxy.WebSocket']);
36+
```
37+
838
## Usage
939
Load `Ext.ux.data.proxy.WebSocket` via `Ext.require`:
1040

0 commit comments

Comments
 (0)