docs: function serve(name, options, init) {
      var _pkg = pkg();
      if (chek_1.isPlainObject(name)) {
          init = options;
          options = name;
          name = undefined;
      }
      if (chek_1.isBoolean(options)) {
          init = options;
          options = undefined;
      }
      var defaults = {
          server: {
              baseDir: './dist'
          }
      };
      name = name || 'dev-server';
      options = chek_1.extend({}, defaults, options);
      var bsync = chek_1.tryRootRequire('browser-sync');
      if (!bsync)
          logger_1.log.error('browser-sync not found try >> npm install browser-sync -s');
      var server = bsync.create(name);
      if (init !== false)
          server.init(options, function (err) {
              if (err) {
                  logger_1.log.error(err);
              }
              else {
                  logger_1.log.notify("browser Sync server " + name + " started.");
              }
          });
      return server;
  }