Skip to content
Permalink
Browse files

fix(options): fix options dist.client.dir and dist.server.dir

  • Loading branch information
jyounce committed Jun 17, 2015
1 parent 1b5cd5e commit 99564c241d630ec41ac63e16a39c876a9a0a921b
Showing with 9 additions and 4 deletions.
  1. +9 −4 config/config-dist-and-src.coffee
@@ -24,17 +24,22 @@ module.exports = (config, options) ->
# ====
getDirs = (loc, isApp) ->
o = {}
if loc is 'dist' or isApp
o.dir = options[loc].dir

switch loc
when 'dist'
o.dir = options[loc].dir
o.clientDir = options[loc].client.dir
o.serverDir = options[loc].server.dir
when 'src'
o.clientDir = options[loc].client.dir if isApp

if isApp
o.clientDir = options[loc].client.dir
o.clientBower = options[loc].client.bower.dir
o.clientImages = options[loc].client.images.dir
o.clientLibs = options[loc].client.libs.dir
o.clientScripts = options[loc].client.scripts.dir
o.clientStyles = options[loc].client.styles.dir
o.clientViews = options[loc].client.views.dir
o.serverDir = options[loc].server.dir

dir: o.dir or dir[loc]
client:

0 comments on commit 99564c2

Please sign in to comment.
You can’t perform that action at this time.