Permalink
Browse files

Updated to build process paths.

  • Loading branch information...
1 parent 2d56b8d commit 1b10af49b3f4db0394823be29f4a8632dae82f0a @lannymcnie lannymcnie committed Sep 11, 2012
Showing with 10 additions and 10 deletions.
  1. +10 −10 build/build.js
View
@@ -5,9 +5,9 @@ CONFIGURATION
*/
// listing of all source files, with dependencies listed in order:
var SOURCE_FILES = [
- "../src/tweenjs/Tween.js",
- "../src/tweenjs/Timeline.js",
- "../src/tweenjs/Ease.js",
+ __dirname + "/../src/tweenjs/Tween.js",
+ __dirname + "/../src/tweenjs/Timeline.js",
+ __dirname + "/../src/tweenjs/Ease.js"
];
// default name for lib output:
@@ -27,18 +27,18 @@ var DOCS_DIR_NAME = PROJECT_NAME+"_docs-%VERSION%";
var DOCS_FILE_NAME = DOCS_DIR_NAME+".zip";
// name of directory where generated files are placed
-var OUTPUT_DIR_NAME = "output";
+var OUTPUT_DIR_NAME = __dirname + "/output";
// path to directory that includes YUI Doc templates
-var TEMPLATE_DIR_PATH = "template";
+var TEMPLATE_DIR_PATH = __dirname + "/template";
// tmp directory used when running scripts:
-var TMP_DIR_NAME = "tmp";
+var TMP_DIR_NAME = __dirname + "/tmp";
// paths to tools:
-var GOOGLE_CLOSURE_PATH = "../tools/google-closure/compiler.jar";
-var YUI_DOC_PATH = "../tools/yuidoc/bin/yuidoc.py";
+var GOOGLE_CLOSURE_PATH = __dirname + "/../tools/google-closure/compiler.jar";
+var YUI_DOC_PATH = __dirname + "/../tools/yuidoc/bin/yuidoc.py";
// yui version being used
var YUI_VERSION = 2;
@@ -48,7 +48,7 @@ END CONFIGURATION
************************************************************/
-// TODO: add support for recursively checking to see if we are ommiting any files
+// TODO: add support for recursively checking to see if we are omitting any files
var FILE = require("fs");
@@ -271,7 +271,7 @@ function buildSourceTask(completeHandler)
exitWithFailure();
}
- var license_data = FILE.readFileSync("license.txt", "UTF-8");
+ var license_data = FILE.readFileSync(__dirname + "/license.txt", "UTF-8");
var final_data = FILE.readFileSync(tmp_file, "UTF-8");
FILE.writeFileSync(final_file, license_data + final_data, "UTF-8");

0 comments on commit 1b10af4

Please sign in to comment.