Skip to content

Commit

Permalink
v6.10.0. Improvement.
Browse files Browse the repository at this point in the history
- v6.10.0 October 29, 2012
	- Updated [QueryEngine](https://github.com/bevry/query-engine/)
dependency from 1.2.3 to 1.3.x
		- Should see better memory usage and massive speed improvements
	- Now tells you how many files we have when doing a complete render
  • Loading branch information
balupton committed Oct 29, 2012
1 parent c0cd150 commit d5ba4a0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
5 changes: 5 additions & 0 deletions History.md
@@ -1,5 +1,10 @@
## History

- v6.10.0 October 29, 2012
- Updated [QueryEngine](https://github.com/bevry/query-engine/) dependency from 1.2.3 to 1.3.x
- Should see better memory usage and massive speed improvements
- Now tells you how many files we have when doing a complete render

- v6.9.2 October 26, 2012
- Swapped [yaml](https://github.com/visionmedia/js-yaml) dependency for [yamljs](https://github.com/jeremyfa/yaml.js)
- Fixes [#333](https://github.com/bevry/docpad/issues/333)
Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "docpad",
"version": "6.9.2",
"version": "6.10.0",
"description": "DocPad is a language agnostic document management system. This means you write your website as documents, in whatever language you wish, and DocPad will handle the compiling, templates and layouts for you. For static documents it will generate static files, for dynamic documents it'll re-render them on each request. You can utilise DocPad by itself, or use it as a module your own custom system. It's pretty cool, and well worth checking out. We love it.",
"homepage": "https://github.com/bevry/docpad",
"keywords": [
Expand Down Expand Up @@ -66,7 +66,7 @@
"express": "3.0.x",
"growl": "1.4.x",
"mime": "1.2.x",
"query-engine": ">=1.2.3 <1.3",
"query-engine": "1.3.x",
"semver": "1.0.x",
"request": "2.11.x",
"underscore": "1.4.x",
Expand Down
11 changes: 9 additions & 2 deletions src/lib/docpad.coffee
Expand Up @@ -2327,14 +2327,21 @@ class DocPad extends EventEmitterEnhanced
[opts,next] = balUtil.extractOptsAndCallback(opts,next)
docpad = @
locale = @getLocale()
database = @getDatabase()
collection = opts.collection or database

# Fire plugins
docpad.emitSync 'generateAfter', server:docpad.getServer(), (err) ->
return next(err) if err

# Log generated
seconds = (new Date() - docpad.lastGenerate) / 1000
docpad.log 'info', util.format(locale.renderGenerated, (opts.count ? 'all'), seconds)
howMany =
if collection is database
"all #{collection.length}"
else
collection.length
docpad.log 'info', util.format(locale.renderGenerated, howMany, seconds)
docpad.notify (new Date()).toLocaleTimeString(), title: locale.renderGeneratedNotification

# Completed
Expand Down Expand Up @@ -2415,7 +2422,7 @@ class DocPad extends EventEmitterEnhanced
return finish(err) if err

# Finish up
docpad.generatePostpare {count:filesToRender.length}, (err) ->
docpad.generatePostpare {collection:filesToRender}, (err) ->
return finish(err)

# Re-load and re-render everything
Expand Down

0 comments on commit d5ba4a0

Please sign in to comment.