UNPKG

@nrwl/workspace

Version:

The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.

22 lines (21 loc) 693 B
import { PackageManager, Tree } from '@nrwl/devkit'; export interface Schema { cli: 'nx' | 'angular'; directory: string; name: string; appName: string; npmScope?: string; skipInstall?: boolean; style?: string; nxCloud?: boolean; preset: string; defaultBase: string; linter: 'tslint' | 'eslint'; packageManager?: PackageManager; } export interface NormalizedSchema extends Schema { presetVersion?: string; } export declare function newGenerator(host: Tree, options: Schema): Promise<() => Promise<void>>; export default newGenerator; export declare const newSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;