import * as path from 'path' ; type FrameworkType = 'rax' | 'react' ; export function getTemplate ( templateName , framework ? ) { if ( ! framework ) return path . join ( __dirname , 'templates/common' , `${ templateName }.ejs` ) ; return path . join ( __dirname , 'templates' , framework , `${ templateName }.ejs` ) ; } export function getCommonTemplateDir ( ) { return path . join ( __dirname , 'templates/common' ) ; } export function getFrameworkTemplateDir ( framework ) { return path . join ( __dirname , `templates/${ framework }` ) ; }