plugins/rekit-react/utils.js
function getTplPath(tpl) {
  const tplFile = path.join(__dirname, './templates', tpl);
  const customTplDir =
    _.get(config.getRekitConfig(), 'rekitReact.templateDir') ||
    path.join(paths.map('.rekit-react/templates'));
  const customTplFile = path.join(customTplDir, tpl);
  return fs.existsSync(customTplFile) ? customTplFile : tplFile;
}
function getTplPath(tpl) {
  const tplFile = path.join(__dirname, './templates', tpl);
  const customTplDir =
    _.get(config.getRekitConfig(), 'rekitReact.templateDir') ||
    path.join(paths.map('.rekit-react/templates'));
  const customTplFile = path.join(customTplDir, tpl);
  return fs.existsSync(customTplFile) ? customTplFile : tplFile;
}
function getTplPath ( tpl ) { const tplFile = path . join ( __dirname , './templates' , tpl ) ; const customTplDir = _ . get ( config . getRekitConfig ( ) , 'rekitReact.templateDir' ) || path . join ( paths . map ( '.rekit-react/templates' ) ) ; const customTplFile = path . join ( customTplDir , tpl ) ; return fs . existsSync ( customTplFile ) ? customTplFile : tplFile ; }
Get the template file path
Get the template file path