 # #*------------------------------------*/
 # grunt.registerTask 'default', ['watch']
 # grunt.registerTask 'optim', ['imageoptim', 'svgmin']
-# grunt.registerTask 'build', ['uglify', 'sass:minify', 'optim']
+gulp.task "build", ["compress", "minify"]
 # grunt.registerTask 'depcheck', ['devUpdate:check']
 # grunt.registerTask 'depask', ['devUpdate:ask']
 # grunt.registerTask 'depup', ['devUpdate:up']

		.pipe plumber()
		.pipe coffee({bare: true}).on('error', gutil.log)
		.pipe uglify()
		.pipe gulp.dest(conf.path.js)
		.pipe reload({stream: true})


#*------------------------------------*\
#   $CONTRIB-UGLIFY
#*------------------------------------*/
gulp.task "compress", () ->
	gulp.src [conf.path.js + "/**/*.js"]
	.pipe uglify()
	.pipe rename({suffix: '.min'})
	.pipe gulp.dest(conf.path.js)


#*------------------------------------*\
#   $CONTRIB-SASS
#*------------------------------------*/
gulp.task "minify", () ->
  gulp.src([conf.path.css + "/style.scss"])
    .pipe minifyCSS()
    .pipe rename({suffix: '.min'})
    .pipe gulp.dest(conf.path.css)


#*------------------------------------*\
