Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "angular/find-module"

Index

Variables

Const MODULE_EXT

MODULE_EXT: ".module.ts" = ORIGINAL_MODULE_EXT

Const ROUTING_MODULE_EXT

ROUTING_MODULE_EXT: "-routing.module.ts" = ORIGINAL_ROUTING_MODULE_EXT

Functions

buildRelativePath

  • buildRelativePath(from: string, to: string): string
  • Build a relative path from one file path to another file path.

    Parameters

    • from: string
    • to: string

    Returns string

findModule

  • findModule(host: Tree, generateDir: string, moduleExt?: string, routingModuleExt?: string): Path
  • Function to find the "closest" module to a generated file's path.

    Parameters

    • host: Tree
    • generateDir: string
    • Default value moduleExt: string = MODULE_EXT
    • Default value routingModuleExt: string = ROUTING_MODULE_EXT

    Returns Path

findModuleFromOptions

  • findModuleFromOptions(host: Tree, options: ModuleOptions): Path | undefined