Merge "Build KorAP plugin library"
diff --git a/Gruntfile.js b/Gruntfile.js
index 454faef..130a4b3 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -23,7 +23,10 @@
 
   // Generate requireJS files for l10n
   var reqTasks = [];
-  var uglyFiles = {};
+  var uglyFiles = {
+    'public/js/korap-plugin-<%= pkg.pluginVersion %>.js': ['dev/js/src/plugin/client.js']
+  },
+  
   for (var i in {'en' : 0, 'de' : 1}) {
 
     reqTasks.push({
@@ -77,6 +80,22 @@
       }
     },
     // see https://github.com/gruntjs/grunt-contrib-copy/issues/64
+    jasmine: {
+      pivotal: {
+	      src: [
+	        'dev/js/src/menu.js',
+	        'dev/js/src/match.js',
+	        'dev/js/src/hint.js',
+	        'dev/js/src/vc.js'
+	      ],
+	      options: {
+	        specs: 'dev/js/spec/*Spec.js',
+	        vendor: ['dev/js/lib/require.js']
+	      }
+      }
+    },
+
+    // see https://github.com/gruntjs/grunt-contrib-copy/issues/64
     // for copying binary files
     copy : {
       options: {
@@ -138,7 +157,7 @@
   grunt.loadNpmTasks('grunt-contrib-copy');
   grunt.loadNpmTasks('grunt-contrib-uglify-es');
   grunt.loadNpmTasks('grunt-contrib-requirejs');
-
+  grunt.loadNpmTasks('grunt-contrib-uglify');
   grunt.registerTask('img', ['imagemin','copy']);
   grunt.registerTask('js', ['requirejs']);
   grunt.registerTask('css', ['sass']);
diff --git a/package.json b/package.json
index 5651a45..69de7f6 100755
--- a/package.json
+++ b/package.json
@@ -4,6 +4,8 @@
   "license": "BSD-2-Clause",
   "version": "0.27.4",
   "repository": {
+  "pluginVersion": "0.1",
+  "repository" : {
     "type": "git",
     "url": "https://github.com/KorAP/Kalamar.git"
   },
@@ -18,5 +20,7 @@
     "imagemin": "^5.3.1",
     "optipng-bin": "^4.0.0",
     "vinyl-fs": "^3.0.2"
+    "optipng-bin":             "^4.0.0",
+    "grunt-contrib-uglify":    "^3.3.0"
   }
 }