       js:
         options:
           livereload: true
-          spawn:      true
         files: [
           'lib/**/*.js',
           'blocks/**/*.js',

            ga:      'UA-XXXXX-X'
            metrika: 'XXXXXXX'
            isDevelopment: true
        files: [{
          expand: true       # Enable dynamic expansion.
          cwd:    'jade'     # Src matches are relative to this path.
          src:    '*.jade'   # Actual pattern(s) to match.
          dest:   ''         # Destination path prefix.
          ext:    '.html'    # Dest filepaths will have this extension.
        }]

      publish:
        options:

        path: 'http://localhost:8000/main.html';


  @event.on 'watch', (action, filepath) ->
    filepath = filepath.replace(/\\/g, '/'); # windows
    if grunt.file.isMatch( grunt.config('watch.stylus.files'), filepath)
      filepath = filepath.replace( grunt.config('stylus.dev.cwd'), '' );
      grunt.config( 'stylus.dev.src', filepath );
      grunt.config( 'stylus.dev_ie.src', filepath );
    if grunt.file.isMatch( grunt.config('watch.jade.files'), filepath)
      filepath = filepath.replace( grunt.config('jade.dev.cwd'), '' );
      grunt.config( 'jade.dev.src', filepath );


  @registerTask( 'default',    [ 'concat:js', 'stylus:dev', 'stylus:dev_ie', 'concat:css', 'concat:css_ie', 'jade:dev' ])
  @registerTask( 'livereload', [ 'default', 'connect', 'open', 'watch' ])
