Skip to content
Browse files

Allow usage of "." in kss-node script's parameters. Fixes #75

Replace path.relative(process.cwd()) with path.resolve().
  • Loading branch information...
1 parent 36793d3 commit b63d1d8a942ba9cb703280af575352a367c6062a @JohnAlbin JohnAlbin committed Jul 17, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 bin/kss-node
View
8 bin/kss-node
@@ -87,12 +87,12 @@ if (argv.init) {
return;
}
-config.sourceDirectory = path.relative(process.cwd(), argv['_'][0]);
+config.sourceDirectory = path.resolve(argv['_'][0]);
if (argv['_'].length > 1) {
- config.destinationDirectory = path.relative(process.cwd(), argv['_'][1]);
+ config.destinationDirectory = path.resolve(argv['_'][1]);
}
if (argv.template) {
- config.templateDirectory = path.relative(process.cwd(), argv.template);
+ config.templateDirectory = path.resolve(argv.template);
}
console.log('');
@@ -122,7 +122,7 @@ wrench.copyDirSyncRecursive(
// been defined and handlebars helpers set up.
process.nextTick(function() {
console.log('...compiling KSS styles');
- less.render('@import "' + path.relative(process.cwd(), config.destinationDirectory) + '/public/kss.less";', function(err, css) {
+ less.render('@import "' + path.resolve(config.destinationDirectory) + '/public/kss.less";', function(err, css) {
if (err) {
console.error(err);
throw err;

0 comments on commit b63d1d8

Please sign in to comment.
Something went wrong with that request. Please try again.