"use strict";

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

var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");

_Object$defineProperty(exports, "__esModule", {
  value: true
});

exports.default = void 0;

var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));

var _path = require("path");

var _plugin = _interopRequireDefault(require("@start/plugin"));

var _default = (outputDir, quiet) => (0, _plugin.default)('STORYBOOK', ({
  reporter
}) =>
/*#__PURE__*/
(0, _asyncToGenerator2.default)(function* () {
  const storybook = require('@storybook/react/standalone');

  storybook({
    mode: 'static',
    quiet: quiet,
    outputDir: (0, _path.resolve)(process.cwd(), outputDir),
    configDir: (0, _path.resolve)(__dirname, '../../storybook')
  });
}));

exports.default = _default;
module.exports = exports.default;