implemented Grunt
implemented Grunt

file:b/Gruntfile.js (new)
--- /dev/null
+++ b/Gruntfile.js
@@ -1,1 +1,60 @@
+module.exports = function(grunt) {
 
+    grunt.initConfig({
+        pkg: grunt.file.readJSON('package.json'),
+        concat: {
+            options: {
+                separator: ';'
+            },
+            dist: {
+                src: ['bower_components/jquery/dist/jquery.min.js', 'bower_components/socket.io-client/socket.io.js', 'public/js/*.js', 'bower_components/bootstrap/dist/js/bootstrap.min.js'],
+                dest: 'dist/<%= pkg.name %>.js'
+            }
+        },
+        uglify: {
+            options: {
+                banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n'
+            },
+            dist: {
+                files: {
+                    'dist/js/<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>']
+                }
+            }
+        },
+        cssmin: {
+            dist: {
+                options: {
+                    banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n'
+                },
+                files: {
+                        'dist/css/<%= pkg.name %>.min.css': ['bower_components/bootstrap/dist/css/bootstrap.min.css', 'public/css/*.css']
+                }
+            }
+        },
+        jshint: {
+            files: ['Gruntfile.js', 'src/**/*.js', 'test/**/*.js'],
+            options: {
+                globals: {
+                    jQuery: true,
+                    console: true,
+                    module: true,
+                    document: true
+                }
+            }
+        },
+        watch: {
+          files: ['<%= jshint.files %>'],
+          tasks: ['jshint']
+        }
+    });
+
+    grunt.loadNpmTasks('grunt-contrib-uglify');
+    grunt.loadNpmTasks('grunt-contrib-jshint');
+    grunt.loadNpmTasks('grunt-contrib-watch');
+    grunt.loadNpmTasks('grunt-contrib-concat');
+    grunt.loadNpmTasks('grunt-contrib-cssmin');
+
+    //grunt.registerTask('test', ['jshint']);
+
+    grunt.registerTask('default', [/*'jshint', */'concat', 'uglify', 'cssmin']);
+};

comments