virtualFs

382 阅读1分钟
  • virtualFs
import { virtualFs } from "@angular-devkit/core";

const simpleMemoryHost = new virtualFs.SimpleMemoryHost();
const patternMatchingHost = new virtualFs.PatternMatchingHost(simpleMemoryHost);
const scopedHost = new virtualFs.ScopedHost(simpleMemoryHost);
const aliasHost = new virtualFs.AliasHost(simpleMemoryHost);
const syncDelegateHost = new virtualFs.SyncDelegateHost(simpleMemoryHost);
{
  AliasHost: [(Function: AliasHost)],
  stringToFileBuffer: [(Function: stringToFileBuffer)],
  fileBufferToString: [(Function: fileBufferToString)],
  SimpleMemoryHost: [(Function: SimpleMemoryHost)],
  PatternMatchingHost: [(Function: PatternMatchingHost)],
  ScopedHost: [(Function: ScopedHost)],
  SynchronousDelegateExpectedException: [
    (Function: SynchronousDelegateExpectedException)
  ],
  SyncDelegateHost: [(Function: SyncDelegateHost)],
  test: { TestHost: [(Function: TestHost)] }
}
  • terminal
import { terminal } from "@angular-devkit/core";
{
  reset: [Function],
  bold: [Function],
  dim: [Function],
  italic: [Function],
  underline: [Function],
  inverse: [Function],
  hidden: [Function],
  strikethrough: [Function],
  black: [Function],
  red: [Function],
  green: [Function],
  yellow: [Function],
  blue: [Function],
  magenta: [Function],
  cyan: [Function],
  white: [Function],
  grey: [Function],
  gray: [Function],
  bgBlack: [Function],
  bgRed: [Function],
  bgGreen: [Function],
  bgYellow: [Function],
  bgBlue: [Function],
  bgMagenta: [Function],
  bgCyan: [Function],
  bgWhite: [Function],
  colors: {
    reset: [Function],
    bold: [Function],
    dim: [Function],
    italic: [Function],
    underline: [Function],
    inverse: [Function],
    hidden: [Function],
    strikethrough: [Function],
    black: [Function],
    red: [Function],
    green: [Function],
    yellow: [Function],
    blue: [Function],
    magenta: [Function],
    cyan: [Function],
    white: [Function],
    grey: [Function],
    gray: [Function],
    bgBlack: [Function],
    bgRed: [Function],
    bgGreen: [Function],
    bgYellow: [Function],
    bgBlue: [Function],
    bgMagenta: [Function],
    bgCyan: [Function],
    bgWhite: [Function]
  }
}
  • logging
{
  IndentLogger: [Function: IndentLogger],
  LevelTransformLogger: [Function: LevelTransformLogger],
  LevelCapLogger:
   {
     [Function: LevelCapLogger]
     levelMap:
      {
        debug: [Object],
        info: [Object],
        warn: [Object],
        error: [Object],
        fatal: [Object]
      }
    },
  Logger: [Function: Logger],
  NullLogger: [Function: NullLogger],
  TransformLogger: [Function: TransformLogger]
}
  • experimental
{ workspace:
   { 
     ProjectNotFoundException: [Function: ProjectNotFoundException],
     WorkspaceToolNotFoundException: [Function: WorkspaceToolNotFoundException],
     ProjectToolNotFoundException: [Function: ProjectToolNotFoundException],
     WorkspaceNotYetLoadedException: [Function: WorkspaceNotYetLoadedException],
     Workspace: [Function: Workspace] 
   } 
}
export interface AngularCompilerPluginOptions {
    sourceMap?: boolean;
    tsConfigPath: string;
    basePath?: string;
    entryModule?: string;
    mainPath?: string;
    skipCodeGeneration?: boolean;
    hostReplacementPaths?: {
        [path: string]: string;
    };
    forkTypeChecker?: boolean;
    singleFileIncludes?: string[];
    i18nInFile?: string;
    i18nInFormat?: string;
    i18nOutFile?: string;
    i18nOutFormat?: string;
    locale?: string;
    missingTranslation?: string;
    platform?: PLATFORM;
    nameLazyFiles?: boolean;
    additionalLazyModules?: {
        [module: string]: string;
    };
    compilerOptions?: ts.CompilerOptions;
    host?: virtualFs.Host<fs.Stats>;
}