PathResolver
file path resolver.
Example:
let pathResolver = new PathResolver('./src', 'foo/bar.js', 'foo-bar', 'foo/bar.js');
pathResolver.importPath; // 'foo-bar'
pathResolver.filePath; // 'src/foo/bar.js'
pathResolver.resolve('./baz.js'); // 'src/foo/baz.js'Constructor Summary
| Public Constructor | ||
| public | constructor(inDirPath: string, filePath: string, packageName: string, mainFilePath: string) create instance. | |
Member Summary
| Public Members | ||
| public get | file full path. | |
| public get | file path that is relative path on root dir. | |
| public get | import path that is considered package name, main file and path prefix. | |
| Private Members | ||
| private |  | |
| private |  | |
| private |  | |
| private |  | |
Method Summary
| Public Methods | ||
| public | resolve file path on this file. | |
| Private Methods | ||
| private | convert 'back slash' to 'slash'. | |
Public Constructors
Public Members
public get importPath: string source
import path that is considered package name, main file and path prefix.
 Reference
  Source
  Test
  
  Reference
  Source
  Test
   
    
  