added chart.js path to build-profile of production env

This commit is contained in:
logsol 2015-03-02 19:48:05 +01:00
parent b52c16836c
commit 5eeb120799
2 changed files with 5 additions and 4 deletions

View file

@ -2,7 +2,8 @@
baseUrl: "../app", baseUrl: "../app",
paths: { paths: {
"screenfull": "../node_modules/screenfull/dist/screenfull", "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", name: "../client",
out: "../build/client.min.js", out: "../build/client.min.js",
@ -10,4 +11,4 @@
var contents = contents.replace(/\" \+ GLOBALS.context \+ \"/g, "Client"); var contents = contents.replace(/\" \+ GLOBALS.context \+ \"/g, "Client");
return contents; return contents;
} }
}) })

View file

@ -5,9 +5,9 @@ then
mkdir -p build mkdir -p build
echo "- compiling client scripts.." echo "- compiling client scripts.."
rm -f "build/client.min.js.gz" 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 \ && gzip -c build/client.min.js > build/client.min.js.gz \
&& echo "- done." && echo "- done."
else else
echo "[ DEVELOPMENT ]" echo "[ DEVELOPMENT ]"
fi fi