module.exports = function(grunt){
    'use strict';

    grunt.initConfig({

        /* watch config */
        watch: {
            coffee: {
                files: ['dev/*.coffee'],
                tasks: 'coffee:dev'
            },
            devView : {
				files : 'dev/cordovaCache.js',
				options: {
					/* <script src="http://localhost:35729/livereload.js"></script> */
					/* <script src="http://localhost:9005/dev/cordovaCache.js"></script> */
					livereload: true
				},
			}
        }
        /* coffee config */
        , coffee: {
            dev: {
                options: {
                    bare: true,
                    flatten: true
                },
                files: {'dev/cordovaCache.js':['dev/*.coffee']}
            }
            ,dist : {
                options: {
                    bare: true,
                    flatten: true
                },
                files: {'dist/cordovaCache.js':['dev/*.coffee']}
            }
        }

        , uglify : {
            dist : {
                options:{
                    sourceMap: true,
                }
                ,files : {
                    'dist/cordovaCache.min.js' : 'dist/cordovaCache.js'
                }
            }
        }
    });


    /*
     */

    // load dependancies
    grunt.loadNpmTasks("grunt-contrib-watch");
    grunt.loadNpmTasks("grunt-contrib-uglify");
    grunt.loadNpmTasks("grunt-contrib-coffee");


    // setup hooks
    grunt.registerTask('default', ['watch']);
    grunt.registerTask('dist', ['coffee:dist', 'uglify']);
};
var fs = require('fs');
require('http').createServer(function(req, res){
	if( fs.existsSync(__dirname+req.url) ){
		res.writeHead(200, {"Content-Type":'application/javascript'});
		res.end( fs.readFileSync(__dirname+req.url, {encoding:'utf8'}) );	
	} else {
		res.writeHead(404, {"Content-Type":'text/plain'});
		res.end(req.url + ' :: not found');
	}
	
}).listen(9005);

@@ -178,11 +178,32 @@
 fee'
+,'dev/specs/*.coffee'
 %5D,%0A
-
     
@@ -351,25 +351,27 @@
 %22http://
-localhost
+192.168.1.2
 :35729/l
@@ -429,17 +429,19 @@
 p://
-localhost
+192.168.1.2
 :900
@@ -723,16 +723,23 @@
 files: %7B
+%0A%09%09%09%09%09%09
 'dev/cor
@@ -750,32 +750,99 @@
 Cache.js':%5B'dev/
+cordovaCache.coffee'%5D,%0A%09%09%09%09%09%09'dev/cordovaCacheSpec.js':%5B'dev/specs/
 *.coffee'%5D%7D%0A    
@@ -827,32 +827,39 @@
 specs/*.coffee'%5D
+%0A%09%09%09%09%09%09
 %7D%0A            %7D%0A
@@ -1041,25 +1041,36 @@
 e.js':%5B'dev/
-*
+cordovaCache
 .coffee'%5D%7D%0A 

edit grunt taks fir test suites