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

parseFile(file, srcFolder, destFolder, configPath, partials) → object

Parse a typescript or javascript file

Kind: global function
Returns: object - file data

ParamType
fileDirectoryFile
srcFolderstring
destFolderstring
configPathstring
partialsstring | Array.<string>

parseVueFile(file, srcFolder, destFolder) → object

Parse a vue file

Kind: global function
Returns: object - file data

ParamType
fileDirectoryFile
srcFolderstring
destFolderstring

writeContentToFile(parseData, dest) → Promise | null

Write content on disk

Kind: global function
Returns: Promise | null - null or type with some data of the saved file

ParamType
parseDataParseReturn | null
deststring