You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
4.2 KiB

  1. {
  2. "name": "docpad-plugin-livereload",
  3. "version": "2.3.1",
  4. "description": "Automatically refreshes your website whenever a rengeration is performed",
  5. "homepage": "http://docpad.org/plugin/livereload",
  6. "keywords": [
  7. "docpad",
  8. "docpad-plugin",
  9. "auto-update",
  10. "live-reload",
  11. "autoupdate",
  12. "livereload",
  13. "reload",
  14. "refresh",
  15. "sync"
  16. ],
  17. "author": {
  18. "name": "Bevry Pty Ltd",
  19. "email": "us@bevry.me",
  20. "url": "http://bevry.me"
  21. },
  22. "maintainers": [
  23. {
  24. "name": "Benjamin Lupton",
  25. "email": "b@lupton.cc",
  26. "url": "https://github.com/balupton"
  27. }
  28. ],
  29. "contributors": [
  30. {
  31. "name": "Benjamin Lupton",
  32. "email": "b@lupton.cc",
  33. "url": "https://github.com/balupton"
  34. },
  35. {
  36. "name": "Alex",
  37. "url": "https://github.com/amesarosh"
  38. }
  39. ],
  40. "bugs": {
  41. "url": "http://docpad.org/plugin/livereload/issues"
  42. },
  43. "repository": {
  44. "type": "git",
  45. "url": "https://github.com/docpad/docpad-plugin-livereload.git"
  46. },
  47. "engines": {
  48. "node": ">=0.4",
  49. "docpad": ">=6.3 <7"
  50. },
  51. "dependencies": {
  52. "socket.io": "~0.9.13"
  53. },
  54. "devDependencies": {
  55. "coffee-script": "~1.4.0"
  56. },
  57. "main": "./out/livereload.plugin.js",
  58. "scripts": {
  59. "test": "node ./out/livereload.test.js"
  60. },
  61. "readme": "# Live Reload Plugin for DocPad\nAutomatically refreshes your [DocPad](https://docpad.org) built website whenever a regeneration is performed\n\n\n\n## Install\n\n1. Install the Plugin\n\n ```\n npm install --save --force docpad-plugin-livereload\n ```\n\n1. Ensure your layout outputs the scripts block, using eco it will look something like this:\n\n ```\n <%- @getBlock('scripts').toHTML() %>\n ```\n\n\n## Configure\n\n### `enabled`\nBy default this plugin is disabled for all environments except the development environment. To enable on more environments set the `enabled` option to `true` inside your environments configuration.\n\n### `browserLog`\nBy default we will output a log message to the browser console if the browser was just reloaded by livereload. You can turn this off by setting the `browserLog` option to `false`. This feature requires `console.log` and `localStorage` to be available to the browser, if these aren't available then this feature will fail gracefully.\n\n### `regenerateBlock`\nBy default when a regeneration occurs we will log a message to the browser console (depending on the value of `browserLog`) and reload the browser. You can overwrite this functionality via the `regenerateBlock` option. \n\n### `inject`\nBy default we will inject the socket.io dependency if we don't automatically detect it's presence. However, sometimes this auto detection doesn't always work. If this is the case, you can disable the injection and just do the listening by setting the `inject` option to `false`.\n\n### `getSocket`\nBy default you we create a new socket.io instance for live reload, however if you are doing your own socket.io stuff you will probably want to use your existing instance instead. To do this set the `getSocket` option to a function that will return your own socket.io instance.\n\n### `channel`\nBy default we use the `/docpad-livereload` channel to listen to on our socket connection. You can change this by using the `channel` option.\n\n### `defaultLogLevel`\nBy default we use the socket.io log level of `1` (unless docpad is in debug mode in which case we will use the log level of `3`). You can change the default log level used (non-debug-mode) by setting the `defaultLogLevel` option.\n\n### `socketOptions`\nSometimes you may want to customise the options used for the [socket.io configuration](https://github.com/LearnBoost/Socket.IO/wiki/Configuring-Socket.IO). To do this set the `socketOptions` option to whatever you need.\n\n\n## History\nYou can discover the history inside the `History.md` file\n\n\n## License\nLicensed under the incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT License](http://creativecommons.org/licenses/MIT/)\n<br/>Copyright &copy; 2012+ [Bevry Pty Ltd](http://bevry.me)",
  62. "readmeFilename": "README.md",
  63. "_id": "docpad-plugin-livereload@2.3.1",
  64. "_from": "docpad-plugin-livereload@"
  65. }