Constructors
constructor
- new Parser(projectPath: string, modulesPath: string): Parser
-
Parameters
-
projectPath: string
-
modulesPath: string
Properties
modulesPath
modulesPath: string
projectPath
projectPath: string
Methods
amdConfig
- amdConfig(path2url: function): string
-
Parameters
-
path2url: function
-
-
Parameters
Returns string
Returns string
amdID
- amdID(fullpath: string): string
-
Parameters
Returns string
findPackageJson
- findPackageJson(dir: any): any
inModules
- inModules(fullname: string): boolean
-
Parameters
Returns boolean
inlineDependencies
- inlineDependencies(pkgName: string): Promise<string>
-
Parameters
Returns Promise<string>
inlinePackage
- inlinePackage(id: string): string
-
Parameters
Returns string
isEntryFile
- isEntryFile(fullname: string): any
parse
- parse(content: string, path: string, settings: Settings): Promise<string>
-
Parameters
-
content: string
-
path: string
-
Returns Promise<string>
relativePath
- relativePath(fullpath: string): string
-
Parameters
Returns string
resolveModulesPath
- resolveModulesPath(projectPath: string): string
-
Parameters
Returns string
Static create
- create(projectPath: string, modulesPath: string): Parser
-
Parameters
-
projectPath: string
-
modulesPath: string