forked from FerencKun/angular-datatable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
41 lines (41 loc) · 2.64 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"name": "connect-livereload",
"description": "connect middleware for adding the livereload script to the response",
"version": "0.2.0",
"author": {
"name": "Andi Neck",
"email": "andi.neck@intesso.com"
},
"contributors": [
{
"name": "Andi Neck",
"email": "andi.neck@intesso.com"
}
],
"dependencies": {},
"devDependencies": {
"express": "~3.2.2",
"supertest": "~0.6.0",
"mocha": "~1.9.0"
},
"keywords": [
"connect",
"livereload",
"live-reload"
],
"repository": {
"type": "git",
"url": "git://github.com/intesso/connect-livereload"
},
"main": "index",
"engines": {
"node": "*"
},
"readme": "connect-livereload\n==================\nconnect middleware for adding the livereload script to the response.\nno browser plugin is needed.\nif you are happy with a browser plugin, then you don't need this middleware.\n\n[![Build Status](https://travis-ci.org/intesso/connect-livereload.png)](https://travis-ci.org/intesso/connect-livereload)\n\ninstall\n=======\n```bash\nnpm install connect-livereload --save-dev\n```\n\nuse\n===\nthis middleware can be used with a LiveReload server e.g. [grunt-reload](https://github.com/webxl/grunt-reload).\n\nIn your connect or express application add this after the static and before the dynamic routes:\n```javascript\n var liveReloadPort = 35729;\n var excludeList = ['.woff', '.flv'];\n \n app.use(require('connect-livereload')({\n port: liveReloadPort,\n excludeList: excludeList\n }));\n```\n\nplease see the [examples](https://github.com/intesso/connect-livereload/tree/master/examples) for the app and Grunt configuration.\n\n\t\n###note \nif you add this middleware before the static middleware, it will lead to problems. \nIf you can't avoid that for some reason, you have to add all of the static file extensions to the `excludeList: ['.css', '.js', '.ico', '.png', 'ect...']`\n\nalternative\n===========\nAn alternative would be to install the [LiveReload browser plugin](https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei).\n\n\ncredits\n=======\n* The middleware code is mainly extracted from: [grunt-contrib-livereload/util.js](https://github.com/gruntjs/grunt-contrib-livereload/blob/master/lib/utils.js)\n* [LiveReload Creator](http://livereload.com/)\n\ntests\n=====\nrun the tests with \n```\nmocha\n```\n\nlicense\n=======\n[MIT License](https://github.com/intesso/connect-livereload/blob/master/LICENSE)\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/intesso/connect-livereload/issues"
},
"_id": "connect-livereload@0.2.0",
"_from": "connect-livereload@~0.2.0"
}