'use strict';
module.exports = function(grunt) {
	grunt.initConfig({
		jshint: {
			options: {
				jshintrc: '.jshintrc'
			},
			all: [
				'src/<%= _.slugify(moduleName) %>.js',
				'example/app.js'
			]
		},
		uglify: {
			options: {
				mangle: false
			},
			my_target: {
				files: {
					'dist/<%= _.slugify(moduleName) %>.min.js': ['src/<%= _.slugify(moduleName) %>.js']
				}
			}
		},
		copy: {
			main: {
				files: [
					{src: ['dist/<%= _.slugify(moduleName) %>.min.js'], dest: 'example/<%= _.slugify(moduleName) %>.min.js'},
					{src: ['bower_components/jquery/jquery.min.js'], dest: 'example/jquery.min.js'}
				]
			}
		},
		jsdoc : {
			dist : {
				src: ['src/*.js'], 
				options: {
					destination: 'doc'
				}
			}
    },
		jscs: {
			src: "src/*.js",
			options: {
				config: ".jscs.json"
			}
		}
	});

	// Load tasks
	grunt.loadNpmTasks('grunt-contrib-uglify');
	grunt.loadNpmTasks('grunt-contrib-jshint');
	grunt.loadNpmTasks('grunt-contrib-copy');
	grunt.loadNpmTasks('grunt-jsdoc');
	grunt.loadNpmTasks("grunt-jscs-checker");

	// Register tasks
	grunt.registerTask('build', [
		'jshint',
		'jscs',
		'uglify',
		'copy',
		'jsdoc'
	]);
	
	grunt.registerTask('serve', [
		'build'
	]);
};
@@ -418,24 +418,123 @@
 %09%09%09files: %5B%0A
+%09%09%09%09%09%7Bsrc: %5B'src/%3C%25= _.slugify(moduleName) %25%3E.js'%5D, dest: 'dist/%3C%25= _.slugify(moduleName) %25%3E.js'%7D,%0A
 %09%09%09%09%09%7Bsrc: %5B

Update generated code build process: now copies unminified code to dist