module.exports = function (grunt) {

    // Project configuration
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        ts: {
            pub: {
                src: ['lib/*.ts', 'test/*.ts'],
                options: {
                    module: 'commonjs',   // 'amd' (default) | 'commonjs'
                    sourceMap: false,      // true (default) | false
                    declaration: true,    // generate a declaration .d.ts file for every output js file. [true | false (default)]
                    removeComments: false // true (default) | false
                },
            },
            dev: {
                src: ['lib/*.ts', 'test/*.ts'],
                options: {
                    module: 'commonjs',
                    sourceMap: true,
                    declaration: false,
                    removeComments: false
                }
            }
        },
        browserify: {
            dev: {
                src: ['test/*.js'],
                dest: 'test/browser/testbundle.js'
            }
        }
    });

    grunt.loadNpmTasks('grunt-ts');
    grunt.loadNpmTasks('grunt-browserify');

    // see http://gruntjs.com/creating-tasks
    grunt.registerTask('default', ['ts:dev', 'browserify:dev']);
    grunt.registerTask('pub', ['ts:pub', 'browserify:dev']);
};

@@ -286,39 +286,39 @@
 ,   
+ 
 // 
-'amd' (default) %7C 'commonjs'
+use commonjs instead of amd
 %0A   
@@ -345,22 +345,22 @@
 rceMap: 
-fals
+tru
 e,
+ 
       //
@@ -360,38 +360,36 @@
      // 
-true (d
+us
 ef
-a
 ul
-t) %7C false
+ for debugging
 %0A       
@@ -415,24 +415,25 @@
 ation: true,
+ 
     // gener
@@ -489,34 +489,8 @@
 file
-. %5Btrue %7C false (default)%5D
 %0A   
@@ -531,34 +531,9 @@
 alse
- // true (default) %7C false
+,
 %0A   
@@ -567,293 +567,8 @@
  %7D,%0A
-            dev: %7B%0A                src: %5B'lib/*.ts', 'test/*.ts'%5D,%0A                options: %7B%0A                    module: 'commonjs',%0A                    sourceMap: true,%0A                    declaration: false,%0A                    removeComments: false%0A                %7D%0A            %7D%0A
     
@@ -701,16 +701,17 @@
 ndle.js'
+,
 %0A       
@@ -712,24 +712,25 @@
            %7D
+,
 %0A        %7D%0A 
@@ -727,16 +727,17 @@
        %7D
+,
 %0A    %7D);
@@ -903,19 +903,19 @@
 ', %5B'ts:
-dev
+pub
 ', 'brow

Simplify Gruntfile