From 5eeb120799568cb2300eec925c4c80a12f13e7b4 Mon Sep 17 00:00:00 2001 From: logsol Date: Mon, 2 Mar 2015 19:48:05 +0100 Subject: [PATCH] added chart.js path to build-profile of production env --- config/build-profile.js | 5 +++-- scripts/build.sh | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config/build-profile.js b/config/build-profile.js index d0736ec..ed028e7 100644 --- a/config/build-profile.js +++ b/config/build-profile.js @@ -2,7 +2,8 @@ baseUrl: "../app", paths: { "screenfull": "../node_modules/screenfull/dist/screenfull", - "socketio": "../node_modules/socket.io/node_modules/socket.io-client/dist/socket.io" + "socketio": "../node_modules/socket.io/node_modules/socket.io-client/dist/socket.io", + "chart": "../node_modules/chart.js/Chart" }, name: "../client", out: "../build/client.min.js", @@ -10,4 +11,4 @@ var contents = contents.replace(/\" \+ GLOBALS.context \+ \"/g, "Client"); return contents; } -}) \ No newline at end of file +}) diff --git a/scripts/build.sh b/scripts/build.sh index f9da283..4b58bcb 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -5,9 +5,9 @@ then mkdir -p build echo "- compiling client scripts.." rm -f "build/client.min.js.gz" - node_modules/requirejs/bin/r.js -o config/build-profile.js > /dev/null \ + node_modules/requirejs/bin/r.js -o config/build-profile.js \ && gzip -c build/client.min.js > build/client.min.js.gz \ && echo "- done." else echo "[ DEVELOPMENT ]" -fi \ No newline at end of file +fi