Skip to content

Commit 1074723

Browse files
Merge pull request #167 from GordonSmith/GH-166
GH-166 Allow build folder to be optionally overridden Reviewed-By: Richard Chapman <[email protected]>
2 parents 9f47354 + d21bea8 commit 1074723

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bash
2+
echoerr() { echo "$@" 1>&2; }
23
if which node >/dev/null; then
3-
node ./util/r.js -o ./util/build.js
4+
node ./util/r.js -o ./util/build.js dir=${1:-"./build"}
45
else
5-
echo "node.js is required to build - see https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager"
6+
echoerr "ERROR: node.js is required to build - see https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager"
67
exit 1
78
fi

util/build.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
({
22
appDir: "../widgets",
33
baseUrl: ".",
4-
dir: "../build",
54
modules: [
65
{
76
name: "config",

0 commit comments

Comments
 (0)