-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/nkashyap/console.io into dev
- Loading branch information
Showing
20 changed files
with
4,532 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/** | ||
* Created with IntelliJ IDEA. | ||
* User: nisheeth | ||
* Date: 27/08/13 | ||
* Time: 19:39 | ||
* To change this template use File | Settings | File Templates. | ||
*/ | ||
|
||
module.exports = function (grunt) { | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
concat: { | ||
dist: { | ||
// the files to concatenate | ||
src: [ | ||
'src/util.js', | ||
'src/storage.js', | ||
'src/events.js', | ||
'src/stringify.js', | ||
'src/stacktrace.js', | ||
'src/transport.js', | ||
'src/console.js', | ||
'src/client.js', | ||
'src/console.io.js'], | ||
// the location of the resulting JS file | ||
dest: 'dist/<%= pkg.name %>.js' | ||
} | ||
}, | ||
uglify: { | ||
options: { | ||
// the banner is inserted at the top of the output | ||
banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n' | ||
}, | ||
dist: { | ||
files: { | ||
'dist/<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>'] | ||
} | ||
} | ||
}, | ||
jshint: { | ||
// define the files to lint | ||
files: ['gruntfile.js', 'src/**/*.js', 'app/**/*.js', 'server/**/*.js'], | ||
// configure JSHint (documented at http://www.jshint.com/docs/) | ||
options: { | ||
// more options here if you want to override JSHint defaults | ||
globals: { | ||
console: true, | ||
module: true | ||
} | ||
} | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
//grunt.loadNpmTasks('grunt-contrib-qunit'); | ||
//grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
|
||
// Default task(s). | ||
grunt.registerTask('default', ['concat', 'uglify']); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
grunt default | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title>Console.IO - Demo HTTP - Test Page</title> | ||
<!--<script src="http://www-thedictator.bbdev1.com:8082/socket.io/socket.io.js" type="text/javascript"></script>--> | ||
<!--<script src="http://www-thedictator.bbdev1.com:8082/addons/console.js" type="text/javascript"></script>--> | ||
<!--<script src="http://www-thedictator.bbdev1.com:8082/addons/socket.js" type="text/javascript"></script>--> | ||
<!--<script src="http://www-thedictator.bbdev1.com:8082/addons/inject.js" type="text/javascript"></script>--> | ||
<!--<script src="http://www-thedictator.bbdev1.com:8082/addons/inject.js?url=http://www-thedictator.bbdev1.com:8082&web=true" type="text/javascript"></script>--> | ||
|
||
<script src="http://www-thedictator.bbdev1.com:8082/src/bin.js" type="text/javascript"></script> | ||
|
||
<link rel="stylesheet" href="main.css" type="text/css"> | ||
<script type="text/javascript" src="main.js"></script> | ||
</head> | ||
<body> | ||
<div id="wrapper"> | ||
<h1 id="ConnectionMode">Info: </h1> | ||
<ul id="log"></ul> | ||
<div id="debug"></div> | ||
<div id="dummy"> | ||
<div>This</div> | ||
<div>is</div> | ||
<div>Console.IO Demo</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.