@nestjs-mod/schematics
Version:
The Nx Plugin for NestJS that contains executors and generators for allowing your workspace to create NestJS-mod applications
37 lines (33 loc) • 1.03 kB
TypeScript
import type { Linter, LinterType } from '@nx/eslint';
import type { UnitTestRunner } from '../utils';
export interface LibraryGeneratorOptions {
directory: string;
name?: string;
buildable?: boolean;
controller?: boolean;
global?: boolean;
importPath?: string;
category?: 'core' | 'feature' | 'infrastructure' | 'integration' | 'system';
linter?: Linter | LinterType;
publishable?: boolean;
service?: boolean;
skipFormat?: boolean;
skipTsConfig?: boolean;
strict?: boolean;
tags?: string;
target?: 'es5' | 'es6' | 'esnext' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021';
testEnvironment?: 'jsdom' | 'node';
unitTestRunner?: UnitTestRunner;
standaloneConfig?: boolean;
setParserOptionsProject?: boolean;
skipPackageJson?: boolean;
simpleName?: boolean;
addPlugin?: boolean;
}
export interface NormalizedOptions extends LibraryGeneratorOptions {
fileName: string;
parsedTags: string[];
prefix: string;
projectName: string;
projectRoot: Path;
}