Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added CoffeeScript binaries. Added CoffeeScript as a default transfor…

…med in the JS pipeline.
  • Loading branch information...
commit be34c9049637717bcd6b5842c1a87438e6cb11eb 1 parent cd33529
@skroonenburg skroonenburg authored
View
2  Nuspec/Rejuicer.nuspec
@@ -2,7 +2,7 @@
<package>
<metadata>
<id>Rejuicer</id>
- <version>1.2.4</version>
+ <version>1.2.5</version>
<authors>Sam Kroonenburg</authors>
<description>Minify your CSS/JS. Simple fluent configuration. Wildcard file matching. Works on Azure. Easy script debugging.</description>
<language>en-US</language>
View
5 Source/Rejuicer/Rejuicer/Engine/FileTransformerRegistry.cs
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
+using Rejuicer.Engine.Transformers;
using Rejuicer.Model;
namespace Rejuicer.Engine
@@ -12,8 +13,8 @@ public static class FileTransformerRegistry
static FileTransformerRegistry()
{
- _transformerRegistrations.Add(ResourceType.Css, new List<IFileTransformer>(new DefaultCssTransformer[] { new DefaultCssTransformer()}));
- _transformerRegistrations.Add(ResourceType.Js, new List<IFileTransformer>());
+ _transformerRegistrations.Add(ResourceType.Css, new List<IFileTransformer>(new IFileTransformer[] { new DefaultCssTransformer()}));
+ _transformerRegistrations.Add(ResourceType.Js, new List<IFileTransformer>(new IFileTransformer[] { new CoffeeScriptJsTransformer() }));
}
public static void Register(ResourceType resourceType, IFileTransformer fileTransformer)
View
4 Source/Rejuicer/Rejuicer/Engine/MinificationProviders/JsMinificationProvider.cs
@@ -25,6 +25,10 @@ public override string MinifyStringValue(string data)
return Yahoo.Yui.Compressor.JavaScriptCompressor.Compress(data);
}
+ catch (InvalidOperationException e)
+ {
+ throw new InvalidOperationException("Encountered exception trying minify invalid JavaScript.", e);
+ }
finally
{
Thread.CurrentThread.CurrentCulture = currentCulture;
Please sign in to comment.
Something went wrong with that request. Please try again.