Skip to content

Commit

Permalink
grunt creates the dir of the output if it doesnt exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevercoelen committed May 9, 2013
1 parent f7d8c2f commit b13942f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/lmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,16 @@ module.exports = function (grunt) {
buildResult = new LmdBuilder(lmdFile, options);
buildConfig = buildResult.buildConfig;

if (!buildConfig.output) {
var output = buildConfig.output;

if (!output) {
grunt.fail.warn('LMD failed: output path is not specified');
done();
return;
}

grunt.file.mkdir(path.dirname(output));

var cli = new Cli(process.stdout);
cli.ok = function (message) {
grunt.log.ok(message);
Expand Down

0 comments on commit b13942f

Please sign in to comment.