 	# TDD
 	grunt.registerTask 'tdd', ['dev', 'connect', 'remote', 'karma:unit', 'watch:test']
 
+	# Dist
+	grunt.registerTask 'dist', ['dev', 'uglify:dist', 'copy:dist']
+
 	# Generates version folder
 	grunt.registerTask 'gen-version', ->
 		grunt.log.writeln 'Deploying to environmentName: '.cyan + grunt.config('environmentName').green


		usemin:
			html: 'build/<%= relativePath %>/index.html'

		karma:
			options:

				src: ['**']
				dest: '<%= deployDirectory %>/<%= versionName() %>/'

			dist:
				expand: true
				flatten: true
				cwd: 'build/<%= relativePath %>/'
				src: [
					'js/vtex-i18n.js', 'js/vtex-i18n.min.js', 
					'js/vtex-locale-selector.js', 'js/vtex-locale-selector.min.js'
				]
				dest: 'dist/'

		coffee:
			main:
				expand: true
