import { Tree, formatFiles, installPackagesTask } from '@nrwl/devkit';
import { libraryGenerator } from '@nrwl/workspace';

export default async function(host: Tree, schema: any) {
  await libraryGenerator({name: schema.name})(host);
  await formatFiles(host);
  return () => {
    installPackagesTask(host)
  }
}