     pkg: @file.readJSON 'package.json'
 
     clean:
-      nuke_components:
-        src: ['components/*/']
-      nuke_bower:
-        src: ['bower_components']
-      nuke_built:
-        src: ['dist']
+      dist:
+        src: ['dist/**/*.js']
+      spec:
+        src: ['spec/js/**/*.js']
 
     browserify:
+      options:
+        transform: ['coffeeify']
+        browserifyOptions:
+          extensions: ['.coffee']
+          fullPaths: false
       dist:
-        files:
-          'dist/gss.js': ['dist/document.parser.coffee']
-        options:
-          transform: ['coffeeify']
-          browserifyOptions:
-            extensions: ['.coffee']
-            fullPaths: false
-            #standalone: 'GSS'
+        files: [{
+          expand: true
+          cwd: 'bundles'
+          src: '**/*.coffee'
+          dest: 'dist'
+          ext: '.js'
+          extDot: 'last'
+        }]
       spec:
         files:
           'spec/js/specs.js': ['spec/specs.coffee']
-        options:
-          transform: ['coffeeify']
-          browserifyOptions:
-            #debug: true
-            extensions: ['.coffee']
-            fullPaths: false
-        debug:
-          options:
-            debug: true
 
     # Automated recompilation and testing when developing
     watch:

  @loadNpmTasks 'grunt-contrib-connect'
  @loadNpmTasks 'grunt-saucelabs'

  @registerTask 'build', ['browserify:spec', 'uglify:engine', 'usebanner']
  @registerTask 'test', ['coffeelint', 'build', 'phantom']
  @registerTask 'phantom', ['connect', 'mocha_phantomjs']
  @registerTask 'crossbrowser', ['build', 'coffeelint', 'connect', 'mocha_phantomjs', 'saucelabs-mocha']
  @registerTask 'default', ['build']
  @registerTask 'nuke', ['clean']

    uglify:
      options:
        report: 'min'
      dist:
        files: [{
          expand: true
          cwd: 'dist'
          src: '**/*.js'
          dest: 'dist'
          ext: '.min.js'
          extDot: 'last'
        }]

    # Adding version information to the generated files
    banner: '/* <%= pkg.name %> - version <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd") %>) - http://gridstylesheets.org */'
