Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #396 from adobe/jasonsanjose/fix-build-www-spawn
Browse files Browse the repository at this point in the history
Do not spawn `grunt build` in brackets repository when building installers
  • Loading branch information
ingorichter committed Dec 6, 2013
2 parents 3ecdb08 + 856f5d8 commit 2e21dbc
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions tasks/build.js
Expand Up @@ -54,16 +54,14 @@ module.exports = function (grunt) {
});

// task: build-www
grunt.registerTask("build-www", "Build brackets www repository", function () {
var done = this.async(),
repo = resolve(grunt.config("git.www.repo"));

spawn(["grunt build"], { cwd: repo }).then(function (result) {
done();
}, function (err) {
grunt.log.error(err);
done(false);
});
grunt.registerTask("build-www", "Check brackets repository for build artifacts", function () {
var distPath = resolve(grunt.config("copy.www.files")[0].cwd);
grunt.log.writeln(distPath);

if (!grunt.file.exists(distPath)) {
grunt.log.error(distPath + " file does not exist. Run `grunt build` in the brackets repo first.")
return false;
}
});

// task: build-mac
Expand Down

0 comments on commit 2e21dbc

Please sign in to comment.