/* global module:false */
module.exports = function(grunt) {

   // Project configuration.
   grunt.initConfig({
      app: grunt.file.readJSON('package.json'),
      meta: {
         banner: grunt.file.read('js/jsxc/banner.js')
      },
      jshint: {
         options: {
            jshintrc: 'js/jsxc/.jshintrc'
         },
         gruntfile: {
            src: 'Gruntfile.js'
         },
         files: [ 'js/sjsxc.js' ]
      },
      copy: {
         main: {
            files: [ {
               expand: true,
               src: [ 'js/*.js', 'js/lib/*.js', 'css/*', 'ajax/*', 'img/*', 'LICENSE' ],
               dest: 'build/'
            }, {
               expand: true,
               cwd: 'js/jsxc/build/',
               src: [ '**' ],
               dest: 'build/js/jsxc/'
            } ]
         }
      },
      clean: [ 'build/' ],
      usebanner: {
         dist: {
            options: {
               position: 'top',
               banner: '<%= meta.banner %>'
            },
            files: {
               src: [ 'build/js/*.js' ]
            }
         }
      }
   });

   // These plugins provide necessary tasks.
   grunt.loadNpmTasks('grunt-contrib-jshint');
   grunt.loadNpmTasks('grunt-contrib-copy');
   grunt.loadNpmTasks('grunt-contrib-clean');
   grunt.loadNpmTasks('grunt-banner');

   // Default task.
   grunt.registerTask('default', [ 'jshint', 'clean', 'copy', 'usebanner' ]);

};

@@ -1079,24 +1079,1071 @@
 %0A         %7D%0A
+      %7D,%0A      search: %7B%0A         console: %7B%0A            files: %7B%0A               src: %5B 'js/*.js' %5D%0A            %7D,%0A            options: %7B%0A               searchString: /console%5C.log%5C((?!'%5B%3C%3E%5D%7Cmsg)/g,%0A               logFormat: 'console',%0A               failOnMatch: true%0A            %7D%0A         %7D,%0A         changelog: %7B%0A            files: %7B%0A               src: %5B 'CHANGELOG.md' %5D%0A            %7D,%0A            options: %7B%0A               searchString: %22%3C%25= app.version %25%3E%22,%0A               logFormat: 'console',%0A               onComplete: function(m) %7B%0A                  if (m.numMatches === 0) %7B%0A                     grunt.fail.fatal(%22No entry in README.md for current version found.%22);%0A                  %7D%0A               %7D%0A            %7D%0A         %7D%0A      %7D,%0A      compress: %7B%0A         main: %7B%0A            options: %7B%0A               archive: %22sjsxc-%3C%25= app.version %25%3E.zip%22%0A            %7D,%0A            files: %5B %7B%0A               src: %5B '**' %5D,%0A               expand: true,%0A               dest: 'sjsxc/',%0A               cwd: 'build/'%0A            %7D %5D%0A         %7D%0A
       %7D%0A   %7D
@@ -2367,16 +2367,104 @@
 anner');
+%0A   grunt.loadNpmTasks('grunt-search');%0A   grunt.loadNpmTasks('grunt-contrib-compress');
 %0A%0A   // 

add search and compress to Gruntfile