From 2aeec2334f8f74bc071cc65a313b1d7ef4d8a557 Mon Sep 17 00:00:00 2001 From: James Devlin Date: Tue, 1 Sep 2015 20:13:21 -0400 Subject: [PATCH] Update with recent project changes. --- src/index.js | 2 +- src/scrappy.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 8aadbd2..813d919 100644 --- a/src/index.js +++ b/src/index.js @@ -6,7 +6,7 @@ Command-line resume generation logic for Scrappy. */ var ARGS = require( 'minimist' ) - , HMR = require( './hmr'); + , HMR = require( './scrappy'); try { diff --git a/src/scrappy.js b/src/scrappy.js index 4f63845..5720c0d 100644 --- a/src/scrappy.js +++ b/src/scrappy.js @@ -73,10 +73,10 @@ module.exports = function () { var fOut = path.join( process.cwd(), f.substring( 0, f.lastIndexOf('.') + 1 ) + fObj.ext ); console.log( 'Generating ' + fName.toUpperCase() + ' resume: ' + fOut ); - var themeFile = path.join( __dirname, '/../themes/', _opts.theme, + var themeFile = path.join( __dirname, '../../blueprint/', _opts.theme, fName + '.' + (fObj.fmt || fObj.ext)); var cssData = (fName != 'html' && fName != 'pdf') ? null : - FS.readFileSync( path.join( __dirname, '/../themes/', _opts.theme, 'html.css' ), 'utf8' ); + FS.readFileSync( path.join( __dirname, '../../blueprint/', _opts.theme, 'html.css' ), 'utf8' ); var mk = FS.readFileSync( themeFile, 'utf8' ); // Compile and invoke the template