From 4a2a47f551b2bbdd98731ef9bec9d6db9c5c09f0 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Fri, 8 Jan 2016 07:08:12 -0500 Subject: [PATCH] Tweak casing. --- src/verbs/build.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/verbs/build.js b/src/verbs/build.js index 4ab40e8..2dcc6e6 100644 --- a/src/verbs/build.js +++ b/src/verbs/build.js @@ -44,11 +44,11 @@ Implementation of the 'generate' verb for HackMyResume. // Load the theme...we do this first because the theme choice (FRESH or // JSON Resume) determines what format we'll convert the resume to. - var tFolder = verify_theme( _opts.theme ); - var theme = load_theme( tFolder ); + var tFolder = verifyTheme( _opts.theme ); + var theme = loadTheme( tFolder ); // Check for invalid outputs - var inv = verify_outputs( dst, theme ); + var inv = verifyOutputs( dst, theme ); if( inv && inv.length ) { throw { fluenterror: HACKMYSTATUS.invalidTarget, data: inv, theme: theme }; } @@ -223,6 +223,7 @@ Implementation of the 'generate' verb for HackMyResume. Render a JSON Resume theme. JSON Resume themes have an index.js that needs to be called to perform the render. Additionally, we need to flow Markdown styles to the JSON Resume (to the extent possible). + TODO: Refactor */ function renderJRSTheme( f, outFolder, theme ) { @@ -264,7 +265,7 @@ Implementation of the 'generate' verb for HackMyResume. /** Ensure that user-specified outputs/targets are valid. */ - function verify_outputs( targets, theme ) { + function verifyOutputs( targets, theme ) { return _.reject( targets.map( function( t ) { @@ -346,7 +347,7 @@ Implementation of the 'generate' verb for HackMyResume. /** Verify the specified theme name/path. */ - function verify_theme( themeNameOrPath ) { + function verifyTheme( themeNameOrPath ) { var tFolder = PATH.join( parsePath ( require.resolve('fresh-themes') ).dirname, '/themes/', @@ -368,7 +369,7 @@ Implementation of the 'generate' verb for HackMyResume. Load the specified theme, which could be either a FRESH theme or a JSON Resume theme. */ - function load_theme( tFolder ) { + function loadTheme( tFolder ) { // Create a FRESH or JRS theme object var theTheme = _opts.theme.indexOf('jsonresume-theme-') > -1 ?