Skip to content

Commit

Permalink
In BundleTransformer.Closure fixed a error #52 “Closure doesn't suppo…
Browse files Browse the repository at this point in the history
…rt ECMASCRIPT6/ECMASCRIPT6_STRICT on remote plugin”
  • Loading branch information
Taritsyn committed Sep 10, 2021
1 parent de2db63 commit 92cfcfe
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1995,6 +1995,8 @@ Not easily human-readable.</xs:documentation>
<xs:enumeration value="EcmaScript3" />
<xs:enumeration value="EcmaScript5" />
<xs:enumeration value="EcmaScript5Strict" />
<xs:enumeration value="EcmaScript6" />
<xs:enumeration value="EcmaScript6Strict" />
</xs:restriction>
</xs:simpleType>

Expand Down
2 changes: 1 addition & 1 deletion samples/BundleTransformer.Sample.AspNet45.Mvc4/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
<closure>
<js>
<remote charset=""
closureCompilerServiceApiUrl="http://closure-compiler.appspot.com/compile"
closureCompilerServiceApiUrl="https://closure-compiler.appspot.com/compile"
compilationLevel="Simple" excludeDefaultExterns="false"
language="EcmaScript3" prettyPrint="false"
useTypesForOptimization="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<PackageIconUrl>https://raw.githubusercontent.com/Taritsyn/BundleTransformer/master/images/icons/128/BundleTransformer_Closure_Logo_128x128.png</PackageIconUrl>
<PackageIconFullPath>../../images/icons/128/BundleTransformer_Closure_Logo_128x128.png</PackageIconFullPath>
<PackageTags>$(PackageCommonTags);JavaScript;JS;Bundling;Minification;Minifier;Minify;Google;Closure;Compiler</PackageTags>
<PackageReleaseNotes>Json.NET was updated to version 12.0.2.</PackageReleaseNotes>
<PackageReleaseNotes>Fixed a error #52 “Closure doesn't support ECMASCRIPT6/ECMASCRIPT6_STRICT on remote plugin”.</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ internal static string ConvertLanguageSpecEnumValueToCode(ExperimentalLanguageSp
break;
default:
throw new InvalidCastException(string.Format(CoreStrings.Common_EnumValueToCodeConversionFailed,
languageSpec.ToString(), typeof(LanguageSpec)));
languageSpec.ToString(), typeof(ExperimentalLanguageSpec)));
}

return code;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ internal static string ConvertLanguageSpecEnumValueToCode(LanguageSpec languageS
case LanguageSpec.EcmaScript5Strict:
code = "ECMASCRIPT5_STRICT";
break;
case LanguageSpec.EcmaScript6:
code = "ECMASCRIPT6";
break;
case LanguageSpec.EcmaScript6Strict:
code = "ECMASCRIPT6_STRICT";
break;
default:
throw new InvalidCastException(string.Format(CoreStrings.Common_EnumValueToCodeConversionFailed,
languageSpec.ToString(), typeof(LanguageSpec)));
Expand Down
4 changes: 3 additions & 1 deletion src/BundleTransformer.Closure/LanguageSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ public enum LanguageSpec
None = 0,
EcmaScript3,
EcmaScript5,
EcmaScript5Strict
EcmaScript5Strict,
EcmaScript6,
EcmaScript6Strict
}
}
7 changes: 4 additions & 3 deletions src/BundleTransformer.Closure/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
=============
RELEASE NOTES
=============
Json.NET was updated to version 12.0.2.
Fixed a error #52 “Closure doesn't support ECMASCRIPT6/ECMASCRIPT6_STRICT on
remote plugin”.

====================
POST-INSTALL ACTIONS
Expand All @@ -39,10 +40,10 @@
work:

1. On your computer must be installed Java 6 or higher. Latest version of Java
can be downloaded at the following link - http://www.java.com/download/.
can be downloaded at the following link - https://www.java.com/download/.
2. You need to download the latest version of the Google Closure Compiler
Application, which is located on the link -
http://dl.google.com/closure-compiler/compiler-latest.zip.
https://mvnrepository.com/artifact/com.google.javascript/closure-compiler.
3. Unzip the downloaded archive and copy the compiler.jar file in some directory
on disk of your computer.
4. In `Web.config` file find the `/configuration/bundleTransformer/closure/local`
Expand Down

0 comments on commit 92cfcfe

Please sign in to comment.