"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

function _defineProperty2() {
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));

  _defineProperty2 = function () {
    return data;
  };

  return data;
}

function _command() {
  const data = _interopRequireDefault(require("../../command"));

  _command = function () {
    return data;
  };

  return data;
}

function _consumer() {
  const data = require("../../../api/consumer");

  _consumer = function () {
    return data;
  };

  return data;
}

class Watch extends _command().default {
  constructor(...args) {
    super(...args);
    (0, _defineProperty2().default)(this, "name", 'watch');
    (0, _defineProperty2().default)(this, "description", 'watch components and perform `build` on changes');
    (0, _defineProperty2().default)(this, "alias", 'w');
    (0, _defineProperty2().default)(this, "opts", [['v', 'verbose', 'showing npm verbose output for inspection']]);
    (0, _defineProperty2().default)(this, "loader", true);
    (0, _defineProperty2().default)(this, "migration", true);
  }

  action(args, {
    verbose
  }) {
    return (0, _consumer().watchAll)(verbose);
  }

  report() {
    return 'watcher terminated';
  }

}

exports.default = Watch;