         src: ['*.js']
 
     jade:
-      options:
-        pretty: true
-      demo:
+      all:
         dest: 'build/'
         expand: true
         ext: ['.html']
-        src: ['demo/*.jade', '!demo/content.jade']
-      tests:
-        dest: 'build/'
-        expand: true
-        ext: ['.html']
-        src: ['tests/**/*.jade']
+        pretty: true
+        src: ['demo/*.jade', 'tests/**/*.jade', '!demo/content.jade']
 
     'string-replace':
       tests:

        src: ['build/src/**/*.js']

    stylus:
      demo:
        expand: true
        dest: 'build/'
        src: ['demo/styles/*.styl']
        ext: ['.css']
      tests:
        expand: true
        dest: 'build/'
        src: ['tests/mocha/*.styl']
        ext: ['.css']

    watch:
      options:
        nospawn: true
      demo:
        files: ['demo/scripts/*.coffee']
        tasks: ['coffee:demo']
      jade_demo:
        files: ['demo/*.jade']
        tasks: ['jade:demo']
      jade_test:
        files: ['tests/**/*.jade']
        tasks: ['jade:tests']
      stylus:
        files: ['demo/styles/*.styl']
        tasks: ['stylus:demo']
      src:
        files: ['index.coffee', 'src/**/*.coffee']
        tasks: ['coffee:bare', 'string-replace', 'browserify', 'concat']
      test:
        files: ['tests/mocha/**/*.coffee']
        tasks: ['coffee:test']


  grunt.event.on('watch', (action, filepath) ->
    if grunt.file.isMatch(grunt.config('watch.src.files'), filepath)
      grunt.config('coffee.bare.src', filepath)
  )

  # Default task.

        dest: 'build/'
        src: ['demo/scripts/*.coffee']
        ext: '.js'
      src:
        options:
          bare: true
        expand: true  
