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.

19 lines
398 B

9 years ago
  1. 'use strict'
  2. const Cli = require('../../')
  3. const liveReload = require('koa-livereload')
  4. const ws = new Cli()
  5. ws.addLogging('dev')
  6. .add({
  7. optionDefinitions: {
  8. name: 'live-reload', type: Boolean,
  9. description: 'Add live reload.'
  10. },
  11. middleware: function (options) {
  12. if (options['live-reload']) {
  13. return liveReload()
  14. }
  15. }
  16. })
  17. .addStatic()
  18. .start()