 ###
 
 gulp.task 'styleguide', ->
-    gulp.src('./source/styl/[^-]*.styl')
+    gulp.src(config.docs.src)
         .pipe(plumber())
         .pipe(stylus())
         .pipe(styledown(
             config: './source/docs/config.styl'
             filename: 'index.html'
         ))
-        .pipe(gulp.dest('./app/docs/'))
+        .pipe(gulp.dest(config.docs.dest))
         .pipe(reload(stream: true))
 
 


gulp.task 'browser-sync', ->
    browserSync server:
        baseDir: './app/'
        proxy: 'hoppas.dev'
        notify: true



###
#
#	CONFIG SECTION
#
###

path =
    src: './source/'
    dest: './app/'

config =
    style:
        src: [
            path.src + 'styl/[^-]*.styl'
            path.src + 'styl/fonts/[^-]*.styl'
        ]
        dest: path.dest + 'frontend/css/'
        watch: path.src + '**/*.styl'
    docs:
        src: path.src + 'styl/[^-]*.styl'
        dest: path.dest + 'docs/'
    tpl:
        src: path.src + 'tpl/*.jade'
        dest: path.dest
        watch: path.src + '**/*.jade'
    js:
        src:
            main: path.src + 'js/*.coffee'
            lib: path.src + 'js/lib/*.js'
        dest:
            main: path.dest + 'frontend/js/'
            lib: path.dest + 'frontend/js/lib/'
        watch: path.src + '**/*.{js,coffee}'
    img:
        src: path.src + 'img/**/*'
        dest: path.dest + 'frontend/img/'
        watch: path.src + 'img/**/*'



###
#
#	STYLUS SECTION
#
###

gulp.task 'stylus_dev', ->
    gulp.src(config.style.src)
    .pipe(plumber())
    .pipe(stylus())
    .pipe(base64(
