Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function generateNgrxFilesFromTemplates(options: Schema) {
const name = options.name;
const moduleDir = path.dirname(options.module);
const excludeFacade = path => path.match(/^((?!facade).)*$/);
const templateSource = apply(url('./files'), [
!options.facade ? filter(excludeFacade) : noop(),
excludeUnnecessaryFiles(),
template({ ...options, tmpl: '', ...names(name) }),
move(moduleDir)
]);
return mergeWith(templateSource);
}