/*jshint node:true */
"use strict";

var fs    = require("fs"),
    async = require("async");

module.exports = function(grunt) {
    
    var nwDir = grunt.option("nwdir") || "./bin/node-webkit-v0.5.0-win-ia32/";
    
    grunt.loadNpmTasks("grunt-contrib-compress");
    grunt.loadNpmTasks("grunt-mkdir");
    grunt.loadNpmTasks("grunt-shell");
    
    grunt.loadTasks("./build/");
    
    grunt.initConfig({
        mkdir : {
            bin : {
                options : {
                    create : [ "bin" ]
                }
            }
        },
        
        compress : {
            tristis : {
                src  : [ "src/*", "package.json" ],
                options : {
                    mode    : "zip",
                    archive : "./bin/tristis.nw"
                }
            }
        },
        
        shell : {
            launch : {
                command : "nw.exe ../../",
                options : {
                    execOptions : {
                        cwd : nwDir
                    }
                }
            },
            
            debug : {
                command : "nw.exe ../../ --debug",
                options : {
                    execOptions : {
                        cwd : nwDir
                    }
                }
            }
        }
    });
    
    grunt.registerTask("default", [ "shell:launch" ]);
    grunt.registerTask("debug",   [ "shell:debug" ]);
    grunt.registerTask("release", [ "mkdir", "compress", "package" ]);
};

@@ -34,66 +34,8 @@
 %22;%0A%0A
-var fs    = require(%22fs%22),%0A    async = require(%22async%22);%0A%0A
 modu
@@ -135,17 +135,17 @@
 it-v0.5.
-0
+1
 -win-ia3

Clean up & node-webkit version bump