@nx/storybook
Version:
44 lines • 1.65 kB
TypeScript
import { TargetConfiguration, Tree } from '@nx/devkit';
import { CompilerOptions } from 'typescript';
import ts = require('typescript');
export declare const Constants: {
addonDependencies: string[];
tsConfigExclusions: string[];
pkgJsonScripts: {
storybook: string;
};
jsonIndentLevel: number;
coreAddonPrefix: string;
uiFrameworks7: string[];
};
export declare function getStorybookVersionToInstall(tree: Tree): string;
export declare function storybookMajorVersion(tree?: Tree): number | undefined;
export declare function getInstalledStorybookVersion(tree?: Tree): string | undefined;
export declare function safeFileDelete(tree: Tree, path: string): boolean;
export type TsConfig = {
extends: string;
compilerOptions: CompilerOptions;
files?: string[];
include?: string[];
exclude?: string[];
references?: Array<{
path: string;
}>;
};
export declare function storybookConfigExistsCheck(config: string, projectName: string): void;
export declare function dedupe(arr: string[]): string[];
export declare function findStorybookAndBuildTargetsAndCompiler(targets: {
[targetName: string]: TargetConfiguration;
}): {
storybookBuildTarget?: string;
storybookTarget?: string;
ngBuildTarget?: string;
nextBuildTarget?: string;
viteBuildTarget?: string;
otherBuildTarget?: string;
compiler?: string;
};
export declare function isTheFileAStory(tree: Tree, path: string): boolean;
export declare function getTsSourceFile(host: Tree, path: string): ts.SourceFile;
export declare function pleaseUpgrade(): string;
//# sourceMappingURL=utilities.d.ts.map