mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.5 KiB
42 lines
1.5 KiB
import { type ProjectType, type Tree } from 'nx/src/devkit-exports';
|
|
export type ProjectGenerationOptions = {
|
|
directory: string;
|
|
name?: string;
|
|
projectType: ProjectType;
|
|
importPath?: string;
|
|
rootProject?: boolean;
|
|
};
|
|
export type ProjectNameAndRootOptions = {
|
|
/**
|
|
* Normalized full project name, including scope if name was provided with
|
|
* scope (e.g., `@scope/name`)
|
|
*/
|
|
projectName: string;
|
|
/**
|
|
* Normalized project root, including the layout directory if configured.
|
|
*/
|
|
projectRoot: string;
|
|
names: {
|
|
/**
|
|
* Normalized project name without scope. It's meant to be used when
|
|
* generating file names that contain the project name.
|
|
*/
|
|
projectFileName: string;
|
|
/**
|
|
* Normalized project name without scope or directory. It's meant to be used
|
|
* when generating shorter file names that contain the project name.
|
|
*/
|
|
projectSimpleName: string;
|
|
};
|
|
/**
|
|
* Normalized import path for the project.
|
|
*/
|
|
importPath: string;
|
|
};
|
|
export declare function determineProjectNameAndRootOptions(tree: Tree, options: ProjectGenerationOptions): Promise<ProjectNameAndRootOptions>;
|
|
export declare function resolveImportPath(tree: Tree, projectName: string, projectRoot: string): string;
|
|
export declare function ensureRootProjectName(options: {
|
|
directory: string;
|
|
name?: string;
|
|
}, projectType: 'application' | 'library'): Promise<void>;
|
|
//# sourceMappingURL=project-name-and-root-utils.d.ts.map
|