 for k, v of dependencies
   dependencies[k] = shared.concat(v)
 
-js_src = 'js/**/*.js'
 
 # Mapping of source HTML pages to their output paths in the site directory
 bake_map = {}
 for k, v of dependencies
-  bake_map[k] = k.replace('site', 'html')
+  bake_map[k] = k.replace(site, 'html/')
 
 module.exports = (grunt) ->
   grunt.initConfig

  tab: 'bootstrap/js/tab'
  server: 'felina-js/src/main'

lib_list = []

dir_list = [
  'vendor/dropzone'
  'vendor/webshim/js-webshim/minified'
  'vendor/bootstrap/dist/fonts'
  'img'
]

css_list = [
  'vendor/bootstrap/dist/css/bootstrap.css'
  'vendor/blueimp-gallery/css/blueimp-gallery.css'
  'vendor/blueimp-bootstrap-image-gallery/css/bootstrap-image-gallery.css'
]

for k, v of libs
  full = vendor + v + js
  libs[k] = full
  lib_list.push(full)

all_list = lib_list.concat(dir_list).concat(css_list)

# Module paths

# Officially-maintained Grunt tasks to load
contribs = ['stylus', 'watch', 'jst', 'connect', 'copy', 'jshint', 'uglify']
# Third-party Grunt tasks to load
plugins = ['rsync', 'bake', 'sails-linker', 'jsdoc']

# Install directory of all third party-assets
vendor = 'vendor/'
# Directory to build the site to
site = 'site/'
# File extensions
js = '.js'
css = '.css'
# Bash wildcard patterns to match all
# JS files
js_src = 'js/**/*.js'
# HTML templates
templates = 'templates/**/*.html'

# Library paths
libs =
