UNPKG

@nativescript/nx

Version:

NativeScript Plugin for Nx

50 lines (49 loc) 1.72 kB
import { Tree } from '@nx/devkit'; import { FrameworkTypes, IPluginSettings, PlatformTypes } from './general'; import { CompilerOptions } from 'typescript'; import { LibrarySchema } from '../generators/library/schema'; export type UnitTestRunner = 'jest' | 'none'; export type TsConfigJson = { compilerOptions: CompilerOptions; exclude: string[]; compileOnSave: boolean; extends: string; files: string[]; include: string[]; }; export interface CommonSchema { /** * Target frameworks */ framework?: string; /** * The prefix to apply to generated selectors. */ prefix?: string; /** * group by name */ groupByName?: boolean; /** * testing helper */ isTesting?: boolean; } export declare function getFrameworksFromOptions(frameworkArgument: string): FrameworkTypes[]; export declare function getFrameworkChoice(frameworkArgument: string, frameworks?: FrameworkTypes[]): FrameworkTypes; export declare function updatePluginDependencies(tree: Tree, options: CommonSchema): import("@nx/devkit").GeneratorCallback; export declare function getUpdatedPluginSettings(options: CommonSchema): IPluginSettings; export declare function updatePluginSettings(tree: Tree, options: CommonSchema): void; /** * Returns a name with the platform. * * @example (app, nativescript) => nativescript-app or app-nativescript * @param name * @param platform */ export declare function getPlatformName(name: string, platform: PlatformTypes): string; export declare function getAppNamingConvention(options: LibrarySchema, platform: PlatformTypes): { name?: string; directory: string; }; export declare function quoteString(s: string): string;