   return gulp.src "./assets/js/plyr/*.js"
       .pipe babel(presets: ['es2015'])
       .pipe concat "plyr.js"
+      .pipe uglify()
+      .pipe gulp.dest "contents/js"
+
+gulp.task "js:autocomplete:build", ->
+  return gulp.src "./assets/js/autocomplete/*.js"
+      .pipe babel(presets: ['es2015'])
+      .pipe concat "autocomplete.js"
       .pipe uglify()
       .pipe gulp.dest "contents/js"
 

      cb()


# =================================================================                      
# utils
# =================================================================                      


gulp.task "newPost", ->
  knownOpts = 
    string: ['title','date']
    defaults: {date: folderDate, title: 'untitled'}
  opts = if process.argv.length > 1 then minimist process.argv.slice(2), knownOpts else {'title':null}

gulp.task "css:build:preview", ["css:build"], ->
  return gulp.src "./contents/css/main.css"
          .pipe gulp.dest "./build/css"

gulp.task "css:rev", ->
  return gulp.src "./build/css/main.css"
        .pipe rev()
