Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

+ have bin/buster-dev-tools put things in the right place, no matter where you invoke it from #6

Merged
merged 1 commit into from

2 participants

Matthias Kling August Lilleaas
Matthias Kling
Collaborator

just to remove one more gotcha I kept running into myself more than once

Matthias Kling meisl + make bin/buster-dev-tools work independent of current working dir (…
…before it had to be the folder where buster-dev-tools/ is in)
cc06bd7
Matthias Kling
Collaborator

just realized: this presupposes that you got buster-dev-tools via git clone, NOT via npm install. npm installing dev tools, however, seems not so good an idea anyways. See busterjs/buster#140 and here

August Lilleaas augustl merged commit 7c2a931 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 22, 2012
  1. Matthias Kling

    + make bin/buster-dev-tools work independent of current working dir (…

    meisl authored
    …before it had to be the folder where buster-dev-tools/ is in)
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/buster-dev-tools.js
5 lib/buster-dev-tools.js
View
@@ -1,9 +1,10 @@
-var CWD = process.cwd();
var path = require("path");
var cp = require("child_process");
var util = require("util");
var fs = require("fs");
+var devDir = path.resolve(__dirname, "../../"); // dev env is two folders up from this script, independent of current working dir
+
function doOperations(projects, operations) {
if (operations.length == 0) return;
@@ -88,7 +89,7 @@ function getProject (project) {
};
}
- project.localPath = path.join(CWD, project.name);
+ project.localPath = path.join(devDir, project.name);
return project;
}
Something went wrong with that request. Please try again.