Skip to content

Commit

Permalink
Found an incorrect flag related to generations. Ref #785
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Jan 27, 2014
1 parent 7e2d609 commit f99f053
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@
"test": "node ./out/test/everything-test.js"
},
"main": "./out/main.js"
}
}
4 changes: 3 additions & 1 deletion src/lib/docpad.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3294,7 +3294,7 @@ class DocPad extends EventEmitterGrouped
# Mode: Initial
# Shall we do some basic initial checks
# Set to the opts.reset value if specified, or whether are the initial generation
opts.initial ?= !(opts.generated)
opts.initial ?= !(docpad.generated)

# Mode: Reset
# Shall we reset the database
Expand Down Expand Up @@ -3327,6 +3327,8 @@ class DocPad extends EventEmitterGrouped
# as they could be over-written pragamatically
# by API calls etc for whatever reason

# Log our opts
docpad.log('debug', 'Generate options:', _.pick(opts, 'cache', 'initial', 'reset', 'populate', 'reload', 'partial', 'renderPasses'))

# Check plugin count
docpad.log('notice', locale.renderNoPlugins) unless docpad.hasPlugins()
Expand Down

0 comments on commit f99f053

Please sign in to comment.