mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added chart.js path to build-profile of production env
This commit is contained in:
parent
b52c16836c
commit
5eeb120799
2 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue