 
 
   gulp.task 'coffee-include', ->
-    if !(disable_tasks['coffee-include'] is false)
+    if not (disable_tasks['coffee-include'] is false)
       gulp.src matchs.coffee
         .pipe do include
         .pipe gulp.dest dests.coffee

  markdown   = require 'gulp-markdown'
  minify     = require 'gulp-minify'
  minifyCSS  = require 'gulp-minify-css'
  rename     = require 'gulp-rename'
  sass       = require 'gulp-sass'
  sourcemaps = require 'gulp-sourcemaps'
  stylus     = require 'gulp-stylus'
  watch      = require 'gulp-watch'
  path       = require 'path'
  mkdirp     = require 'mkdirp'


  #
  # Configuraciones
  #
  folder_dest           = config.dest || process.env.FOLDER_DEST || 'dest'
  folder_src            = config.src || process.env.FOLDER_SRC || 'src'
  script_to_concat      = config.scripts || []
  styles_to_concat      = config.styles  || []
  name_script_to_concat = config.nameContactScript || "script.js"
  name_styles_to_concat = config.nameContactStyle || "style.css"
  disable_tasks         = config.tasks || {}

  # Rutas y destinos
  __base = config.patch || do process.cwd

  dest = path.join "#{__base}", "#{folder_dest}"
  src  = path.join "#{__base}", "#{folder_src}"

  names =
    coffee   : config.coffee || 'coffee'
    css      : config.css || 'css'
    html     : config.html || 'html'
    jade     : config.jade || 'jade'
    markdown : config.markdown || 'markdown'
    sass     : config.sass || 'sass'
    stylus   : config.stylus || 'stylus'

  names_dest =
    css      : 'css'
    html     : ''
    js       : 'js'
    coffee   : 'coffee'
    markdown : 'html'


  centralDirectory =
    coffee   : path.join "#{src}", "#{names.coffee}"
    jade     : path.join "#{src}", "#{names.jade}"
    markdown : path.join "#{src}", "#{names.markdown}"
    sass     : path.join "#{src}", "#{names.sass}"
    stylus   : path.join "#{src}", "#{names.stylus}"


  matchs =
    coffee    : path.join centralDirectory.coffee, "**", "[a-zA-Z0-9]*.coffee"
    coffeesrc : path.join "#{dest}", "#{names_dest.coffee}", "**", "[a-zA-Z0-9]*.coffee"
    jade      : path.join centralDirectory.jade, "**", "[a-zA-Z0-9]*.jade"
    markdown  : path.join centralDirectory.markdown, "**", "*.{markdown,md,mdown}"
    sass      : path.join centralDirectory.sass, "**", "[a-zA-Z0-9]*.{scss,sass}"
    stylus    : path.join centralDirectory.stylus, "**", "[a-zA-Z0-9]*.styl"

    watch :
      coffee   : path.join "#{src}", "#{names.coffee}", "**", "*.coffee"
      jade     : path.join "#{src}", "#{names.jade}", "**", "*.jade"
      markdown : path.join "#{src}", "#{names.markdown}", "**", "*.{markdown,md,mdown}"
      sass     : path.join "#{src}", "#{names.sass}", "**", "*.{scss,sass}"
      stylus   : path.join "#{src}", "#{names.stylus}", "**", "*.styl"


  # Rutas de destino
  dests =
    css      : path.join "#{dest}", "#{names_dest.css}"
    html     : path.join "#{dest}", "#{names_dest.html}"
    js       : path.join "#{dest}", "#{names_dest.js}"
    coffee   : path.join "#{dest}", "#{names_dest.coffee}"
    markdown : path.join "#{dest}", "#{names_dest.markdown}"

  #
  # Tareas
  #
  gulp.task 'markdown', ->
    if !(disable_tasks.markdown is false)
      gulp.src matchs.markdown
        .pipe do markdown
        .pipe gulp.dest dests.markdown

    'sass'
    'stylus'
    ], ->
    if not (disable_tasks["concat-css"] is false)
      gulp.src styles_to_concat
        .pipe concatCss name_styles_to_concat
        .pipe do minify
