 	@copyIfNot '.jshintrc'
 
 Generator::dependencies = ->
-	@installFromNpm ['grunt', 'matchdep', 'grunt-contrib-jshint', 'grunt-contrib-concat', 'grunt-contrib-uglify', 'grunt-contrib-watch']
+	@installFromNpm ['grunt', 'matchdep', 'grunt-contrib-jshint', 'grunt-traceur-build', 'grunt-contrib-uglify', 'grunt-contrib-watch']

		gf.addSection 'jshint',
			options:
				jshintrc: '.jshintrc'
			files: ["#{@htdocs_prefix}js/mylibs/*.js", "#{@htdocs_prefix}js/*.js"]

	unless gf.hasSection 'concat'
		gf.addSection 'concat',
			main:
				src: [
					"#{@htdocs_prefix}tamia/tamia/tamia.js"
					"#{@htdocs_prefix}tamia/blocks/*/*.js"
					"#{@htdocs_prefix}js/components/*.js"
					"#{@htdocs_prefix}js/main.js"
				]
				dest: "#{@htdocs_prefix}build/scripts.js"

		gf.addWatcher 'concat',
			files: '<%= concat.main.src %>'
			tasks: 'concat'

	unless gf.hasSection 'uglify'
		gf.addSection 'uglify',

						global_defs:
							DEBUG: gf.JS 'debug'
				files:
					'<%= traceur_build.main.dest %>': '<%= traceur_build.main.dest %>'

	gf.addTask 'default', ['jshint', 'traceur_build', 'uglify']
	gf.addTask 'deploy', ['traceur_build', 'uglify']

	gf.save()

