   @loadNpmTasks 'grunt-contrib-connect'
   @loadNpmTasks 'grunt-saucelabs'
 
-  @registerTask 'build', ['browserify:spec', 'uglify:engine', 'usebanner']
-  @registerTask 'test', ['coffeelint', 'build', 'phantom']
+  @registerTask 'build', ['coffeelint:src', 'coffeelint:bundle', 'clean:dist', 'browserify:dist', 'uglify:dist', 'usebanner:dist']
+  @registerTask 'test', ['coffeelint:spec', 'clean:spec', 'browserify:spec', 'build', 'phantom']
   @registerTask 'phantom', ['connect', 'mocha_phantomjs']
-  @registerTask 'crossbrowser', ['build', 'coffeelint', 'connect', 'mocha_phantomjs', 'saucelabs-mocha']
-  @registerTask 'default', ['build']
-  @registerTask 'nuke', ['clean']
+  @registerTask 'crossbrowser', ['test', 'saucelabs-mocha']
+  @registerTask 'default', ['test']

          position: 'top'
          banner: '<%= banner %>'
        files:
          src: [
            'dist/gss.js'
            'dist/gss.min.js'
          ]

    # Syntax checking
    coffeelint:
      src:
        files:
          src: ['src/*.coffee', 'src/**/*.coffee']
        options:
          'max_line_length':
            level: 'ignore'
          'no_trailing_whitespace':
            level: 'ignore'
          'no_backticks':
            level: 'ignore'
      spec:
        files:
          src: ['spec/*.coffee']
        options:
          'max_line_length':
            level: 'ignore'
          'no_trailing_whitespace':
            level: 'ignore'
          'no_backticks':
            level: 'ignore'

    docco:
      src:

    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 */'
