Skip to content

Commit

Permalink
fix(options): fix options dist.client.dir and dist.server.dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jyounce committed Jun 17, 2015
1 parent 1b5cd5e commit 99564c2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions config/config-dist-and-src.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 99564c2

Please sign in to comment.