Added debug mode

This commit is contained in:
Mattias Erming 2014-08-25 15:39:10 -07:00
parent 2e36414b26
commit 6d06e7020e
6 changed files with 26 additions and 6 deletions

View file

@ -1,5 +1,5 @@
module.exports = function(grunt) {
var libs = "client/js/libs/**/*.js";
var libs = "client/js/**/*.js";
grunt.initConfig({
watch: {
files: libs,
@ -11,7 +11,7 @@ module.exports = function(grunt) {
},
js: {
files: {
"client/js/libs.min.js": libs
"client/dist/build.js": libs
}
}
}

File diff suppressed because one or more lines are too long

View file

@ -234,8 +234,27 @@
</script>
</div>
<script src="js/libs.min.js"></script>
<script src="js/chat.js"></script>
<% if (debug) { %>
<script src="js/libs/favico.js"></script>
<script src="js/libs/handlebars.js"></script>
<script src="js/libs/handlebars/equal.js"></script>
<script src="js/libs/handlebars/tz.js"></script>
<script src="js/libs/handlebars/uri.js"></script>
<script src="js/libs/jquery.js"></script>
<script src="js/libs/jquery/bootstrap.js"></script>
<script src="js/libs/jquery/cookie.js"></script>
<script src="js/libs/jquery/inputhistory.js"></script>
<script src="js/libs/jquery/mousetrap.js"></script>
<script src="js/libs/jquery/stickyscroll.js"></script>
<script src="js/libs/jquery/tabcomplete.js"></script>
<script src="js/libs/moment.js"></script>
<script src="js/libs/socket.io.js"></script>
<script src="js/libs/string.contains.js"></script>
<script src="js/libs/uri.js"></script>
<script src="js/shout.js"></script>
<% } else { %>
<script src="dist/build.js"></script>
<% } %>
</body>
</html>

View file

@ -1,4 +1,5 @@
{
"debug": false,
"port": 9000,
"theme": "themes/example.css",
"public": true

View file

@ -1,7 +1,7 @@
{
"name": "shout",
"description": "A web IRC client",
"version": "0.10.9",
"version": "0.11.0",
"author": "Mattias Erming",
"preferGlobal": true,
"bin": {