Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const e2eProjectName = `${appProjectName}-e2e`;
const appProjectRoot = normalize(`apps/${appDirectory}`);
const e2eProjectRoot = normalize(`apps/${appDirectory}-e2e`);
const parsedTags = options.tags
? options.tags.split(',').map(s => s.trim())
: [];
const fileName = options.pascalCaseFiles ? 'Index' : 'index';
const styledModule = /^(css|scss|less|styl)$/.test(options.style)
? null
: options.style;
assertValidStyle(options.style);
return {
...options,
name: toFileName(options.name),
projectName: appProjectName,
appProjectRoot,
e2eProjectRoot,
e2eProjectName,
parsedTags,
fileName,
styledModule
};
}