Comparing version 1.0.3 to 1.0.4
# Changelog | ||
## Version 1.0.4 | ||
* Bug fix: The concat plugin could corrupt the encoding of a blob file, now the plugin runs only when necessary. | ||
* Bug fix: Prevent warning message from express dependency in server mode | ||
## Version 1.0.3 | ||
@@ -22,6 +27,6 @@ | ||
* Fix: The orderedMergeStream would not properly wait for multi-file data events before processing the outgoing data queue. This lead to a race-condition that could affect the order of file concatenation. | ||
* Fix: The orderedMergeStream would not properly wait for multi-file data events before processing the outgoing data queue. This lead to a race-condition that could affect the order of file concatenation. | ||
## Version 0.9.0 | ||
* Feature: Consistent renaming of filename extensions. File extensions are being rewritten based on a map of source -> destination files. This map includes some sane defaults (less -> css, etc) but can also be extended through a new api: lingon.extensionRewriter. | ||
@@ -28,0 +33,0 @@ * Feature: Server mode does not compile everything at startup. Instead, east request triggers a build. |
@@ -42,3 +42,3 @@ var vfs = require('vinyl-fs'); | ||
function directiveStreamFn(sourceFile, cb) { | ||
var stream=null; | ||
var stream = null; | ||
var nextNode = { | ||
@@ -52,3 +52,4 @@ id: sourceFile.path, | ||
if(env.directiveFileTypes.indexOf(path.extname(sourceFile.path)) > -1) { | ||
var isBlob = env.directiveFileTypes.indexOf(path.extname(sourceFile.path)) === -1; | ||
if(!isBlob) { | ||
var parsedFile = directiveParser(sourceFile.path, sourceFile.contents); | ||
@@ -93,3 +94,3 @@ var patterns = parsedFile.patterns; | ||
// There's no index for include_self | ||
if(!index) { | ||
if(!index) { | ||
index = ""; | ||
@@ -109,3 +110,3 @@ } | ||
break; | ||
default: | ||
default: | ||
throw("DirectiveStream: Unsupported pattern type: " + pattern.type); | ||
@@ -142,3 +143,5 @@ break; | ||
stream = stream.pipe(concat(path.basename(sourceFile.path))); | ||
if(!isBlob) { | ||
stream = stream.pipe(concat(path.basename(sourceFile.path))); | ||
} | ||
@@ -145,0 +148,0 @@ var returnedFile = null; |
@@ -23,3 +23,3 @@ var log = require('./utils/log'); | ||
var requestPaths = [path]; | ||
// Run lingon for the requested file | ||
@@ -46,7 +46,5 @@ lingon.build(function(requestFiles) { | ||
app.configure(function(){ | ||
app.use(requestHandler); | ||
lingon.trigger('serverConfigure'); | ||
app.use(responseHandler); | ||
}); | ||
app.use(requestHandler); | ||
lingon.trigger('serverConfigure'); | ||
app.use(responseHandler); | ||
@@ -53,0 +51,0 @@ app.listen(port, ip, function() { |
{ | ||
"name": "lingon", | ||
"description": "A minimal static site generator inspired by Middleman and Sprockets, compatible with gulp plugins.", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"homepage": "https://github.com/jpettersson/lingon", | ||
@@ -70,2 +70,2 @@ "author": { | ||
] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
115522
164
1174