       style:
         files: ['<%= source.style %>']
         tasks: ["coffee:style", "uglify:style"]
+      spec:
+        files: ['<%= source.spec %>']
+        tasks: ["concat:spec", "coffee:spec", "jasmine"]
+
+
 
   grunt.loadNpmTasks "grunt-contrib-concat"
   grunt.loadNpmTasks "grunt-contrib-coffee"
   grunt.loadNpmTasks "grunt-contrib-uglify"
+  grunt.loadNpmTasks "grunt-contrib-jasmine"
   grunt.loadNpmTasks "grunt-contrib-watch"
 
   # Default task.
-  grunt.registerTask 'default', ["concat", "coffee", "uglify"]
+  grunt.registerTask 'default', ["concat", "coffee", "uglify", "jasmine"]

      output      : files: '<%= meta.build %>/<%= meta.file %>.output.js': '<%=source.output%>'
      query       : files: '<%= meta.build %>/<%= meta.file %>.query.js': '<%=source.query%>'
      style       : files: '<%= meta.build %>/<%= meta.file %>.style.js': '<%=source.style%>'

    uglify:
      options: mangle: false, banner: "<%= meta.banner %>"#, report: "gzip"

      style       : files: '<%= meta.bower %>/<%= meta.file %>.style.js': '<%= meta.build %>/<%= meta.file %>.style.js'


    jasmine:
      pivotal:
        src: [
          '<%=meta.bower%>/<%= meta.file %>.js']
        options:
          # vendor: 'spec/components/jquery/jquery.min.js'
          specs: '<%=meta.build%>/<%=meta.file%>.spec.js',
          # outfile: 'spec.html'
          # keepRunner: true

    watch:
      core:
        files: ['<%= source.core %>']
        tasks: ["concat:core", "coffee:core", "uglify:core", "jasmine"]
      ajax:
        files: ['<%= source.ajax %>']
        tasks: ["coffee:ajax", "uglify:ajax"]
