lib/parser.ts
Functions
- parseFile(file, srcFolder, destFolder, configPath, partials) →
object
Parse a typescript or javascript file
- parseVueFile(file, srcFolder, destFolder) →
object
Parse a vue file
- writeContentToFile(parseData, dest) →
Promise
|null
Write content on disk
object
parseFile(file, srcFolder, destFolder, configPath, partials) → Parse a typescript or javascript file
Kind: global function
Returns: object
- file data
Param | Type |
---|---|
file | DirectoryFile |
srcFolder | string |
destFolder | string |
configPath | string |
partials | string | Array.<string> |
object
parseVueFile(file, srcFolder, destFolder) → Parse a vue file
Kind: global function
Returns: object
- file data
Param | Type |
---|---|
file | DirectoryFile |
srcFolder | string |
destFolder | string |
Promise
| null
writeContentToFile(parseData, dest) → Write content on disk
Kind: global function
Returns: Promise
| null
- null or type with some data of the saved file
Param | Type |
---|---|
parseData | ParseReturn | null |
dest | string |