Browse files

v6.62.0. Improvement.

- v6.62.0 January 28, 2014
	- Stylesheets are more effeciently generated
		- Files with the `outExtension: 'css'` are now the only ones included
in the `stylesheet` collection
		- Stylesheets no longer have `referencesOthers` to `true` on them by
default, this is now left up to plugin authors to do
		- Thanks to [Dimitar Kolev-Dick](https://github.com/dimitarkolev) for
[issue #789](#789)
  • Loading branch information...
1 parent b29a8bd commit acc930c90afd8259889b9c7c8e8b7fa097b72f6d @balupton balupton committed Jan 28, 2014
Showing with 8 additions and 24 deletions.
  1. +6 −0 HISTORY.md
  2. +1 −1 package.json
  3. +1 −23 src/lib/docpad.coffee
View
6 HISTORY.md
@@ -1,5 +1,11 @@
# History
+- v6.62.0 January 28, 2014
+ - Stylesheets are more effeciently generated
+ - Files with the `outExtension: 'css'` are now the only ones included in the `stylesheet` collection
+ - Stylesheets no longer have `referencesOthers` to `true` on them by default, this is now left up to plugin authors to do
+ - Thanks to [Dimitar Kolev-Dick](https://github.com/dimitarkolev) for [issue #789](https://github.com/bevry/docpad/issues/789)
+
- v6.61.0 January 27, 2014
- Fixed regeneration always regenerating everything (regression since v6.58.0)
- Thanks to [Dimitar Kolev-Dick](https://github.com/dimitarkolev), [Marcus Stong](https://github.com/stongo) for [issue #785](https://github.com/bevry/docpad/issues/785)
View
2 package.json
@@ -1,7 +1,7 @@
{
"title": "DocPad. Streamlined web development.",
"name": "docpad",
- "version": "6.61.0",
+ "version": "6.62.0",
"description": "DocPad is a next generation web architecture that lets you create fast static websites with dynamic abilities and powerful abstractions. Write your website as files on your computer, entries in a database, or even RSS feeds and DocPad will import it, generate & render it, then output a static website for deployment anywhere or a dynamic node website for advanced server-side functionality. Use it as a module or standalone. It's purely awesome. Check it out.",
"homepage": "http://docpad.org",
"installUrl": "http://docpad.org/install",
View
24 src/lib/docpad.coffee
@@ -1898,30 +1898,8 @@ class DocPad extends EventEmitterGrouped
stylesheet: database.createLiveChildCollection()
.setQuery('isStylesheet', {
write: true
- outExtension: $in: [
- 'css',
- 'scss', 'sass',
- 'styl', 'stylus'
- 'less'
- ]
+ outExtension: 'css'
})
- .on('add', (model) ->
- docpad.log('debug', util.format(locale.addingStylesheet, model.getFilePath()))
- model.setDefaults({
- referencesOthers: true
- })
- )
- # @TODO
- # We should not enable referencesOthers for stylesheets
- # But instead check if there is a stylesheet that has been modified and is to be regenerated
- # Then add the rest of the stylesheets to the regenerate list
- # That way, when you modify a html file, it doesn't regenerate stylesheets, unless they are actually referencing others
- # But it would still mean that if you modify a stylsheet, it does import the others correctly
- # However, really, this only applies to stylsheets that concantate the contents of their @imports to other stylesheets
- # So maybe, we could do something like
- # $contains: '@import'
- # but $contains doesn't exist yet
- # though this still only applies to those that bundle other stylesheets inside themselves
)
# Blocks

0 comments on commit acc930c

Please sign in to comment.