async function create(options = {}) {
  const {initSkeleton} = require('./init-skeleton');
  const BrunchError = require('./utils/error');
  const loggy = require('loggy');

  // Check for legacy syntax
  if (options.parent) {
    const rawArgs = options.parent.rawArgs;
    const newArgs = rawArgs.slice(rawArgs.indexOf('new') + 1);
    const oldSyntax = !options.skeleton && newArgs.length === 2;
    if (oldSyntax) {
      throw new BrunchError('LEGACY_NEW_SYNTAX', {
        skeleton: newArgs[0],
        path: newArgs[1],
      });
    }
  }

  try {
    return await initSkeleton(options.skeleton, options.path);
  } catch (error) {
    loggy.error(error);
  }
}
Initialize new brunch project.
@param {Object} options - skeleton like 'simple', path like '.'