     .pipe mochaPhantomJS()
 
 gulp.task 'clean', ->
-  gulp.src ['./build/{browser,test,node}/**/*.{js,map}','./doc/','./lib/*.js'], { read: false }
+  gulp.src ['./build/{browser,test,node}/**/*.{js,map}','./doc/'], { read: false }
     .pipe rimraf()
 
 gulp.task 'mocha', [], ->

gulp.task 'watch', ['build'], ->
  gulp.watch files.all, ['build']

gulp.task 'coffee',->
  gulp.src files.lib
    # .pipe sourcemaps.init()
    .pipe coffee {bare: true}
      .on('error', gutil.log)
    # .pipe concat()
    # .pipe sourcemaps.write()
    .pipe gulp.dest('./lib/')


gulp.task 'lint', ->
  gulp.src files.all

gulp = require('gulp')
coffee = require('gulp-coffee')
concat = require('gulp-concat')
uglify = require 'gulp-uglify'
sourcemaps = require('gulp-sourcemaps')
browserify = require('gulp-browserify')
rename = require 'gulp-rename'
rimraf = require 'gulp-rimraf'
gulpif = require 'gulp-if'
