@nx/storybook
Version:
70 lines (69 loc) • 2.4 kB
TypeScript
import { Tree } from '@nx/devkit';
export declare function onlyShowGuide(storybookProjects: {
[key: string]: {
configDir: string;
uiFramework: string;
viteConfigFilePath?: string;
};
}): void;
export declare function writeFile(file?: {
path?: string;
content?: string;
}): void;
export declare function removePathResolvesFromNextConfig(tree: Tree, mainJsTsPath: string): {
path: string;
content: string;
} | undefined;
export declare function removeViteTsConfigPathsPlugin(tree: Tree, mainJsTsPath: string): void;
export declare function addViteConfigFilePathInFrameworkOptions(tree: Tree, mainJsTsPath: string, viteConfigPath: string): void;
export declare function normalizeViteConfigFilePathWithTree(tree: Tree, projectRoot: string, configFile?: string): string;
export declare function removeTypecastFromMainTs(tree: Tree, mainTsPath: string): {
path: string;
content: string;
} | undefined;
export declare function removeUiFrameworkFromProjectJson(tree: Tree): void;
export declare function changeCoreCommonImportToFramework(tree: Tree, mainTsPath: string): void;
export declare function getAllStorybookInfo(tree: Tree): {
[key: string]: {
configDir: string;
uiFramework: string;
viteConfigFilePath?: string;
};
};
export declare function prepareFiles(tree: Tree, allStorybookProjects: {
[key: string]: {
configDir: string;
uiFramework: string;
viteConfigFilePath?: string;
};
}): void;
export declare function handleMigrationResult(migrateResult: {
successfulProjects: {};
failedProjects: {};
}, allStorybookProjects: {
[key: string]: {
configDir: string;
uiFramework: string;
viteConfigFilePath?: string;
};
}): {
successfulProjects: {};
failedProjects: {};
};
export declare function checkStorybookInstalled(packageJson: any): boolean;
export declare function checkWebComponentsInstalled(packageJson: any): boolean;
export declare function afterMigration(tree: Tree, allStorybookProjects: {
[key: string]: {
configDir: string;
uiFramework: string;
viteConfigFilePath?: string;
};
}): void;
export declare function logResult(tree: Tree, migrationSummary: {
successfulProjects: {
[key: string]: string;
};
failedProjects: {
[key: string]: string;
};
}): void;