Skip to content

Instantly share code, notes, and snippets.

@anfibiacreativa
Created August 13, 2020 19:53
Show Gist options
  • Save anfibiacreativa/b47cfc3caffde60eb58b5ca7418c1bc0 to your computer and use it in GitHub Desktop.
Save anfibiacreativa/b47cfc3caffde60eb58b5ca7418c1bc0 to your computer and use it in GitHub Desktop.
const source = apply(url('./files'), [
forEach((file: FileEntry) => {
let dir = dirname(file.path);
let pathName = basename(dir);
_options.folderName = pathName;
_context.logger.info(`Estamos leyendo en árbol virtual -> ${pathName}`);
return file;
}),
template({
...strings,
..._options,
addProjectInfo
}),
move(path)
]);
function addProjectInfo(): string {
return `Este es el readme file para el proyecto ${projectName}. Encontrarás más información en [este enlace](https://www.angular.io)`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment