base_watch_plugin.js 655 B

12345678910111213141516171819202122232425262728293031323334353637
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. class BaseWatchPlugin {
  6. constructor(_ref) {
  7. let stdin = _ref.stdin,
  8. stdout = _ref.stdout;
  9. this._stdin = stdin;
  10. this._stdout = stdout;
  11. }
  12. apply(hooks) {}
  13. getUsageInfo(globalConfig) {
  14. return null;
  15. }
  16. onKey(value) {}
  17. run(globalConfig, updateConfigAndRun) {
  18. return Promise.resolve();
  19. }
  20. }
  21. /**
  22. * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
  23. *
  24. * This source code is licensed under the MIT license found in the
  25. * LICENSE file in the root directory of this source tree.
  26. *
  27. *
  28. */
  29. exports.default = BaseWatchPlugin;