Skip to content

Commit

Permalink
1. In BundleTransformer.ConfigurationIntelliSense updated definitions…
Browse files Browse the repository at this point in the history
… for configuration settings of TypeScript translator;

2. In BundleTransformer.TypeScript:
	2.1. Added support of TypeScript version 2.6 RTM;
	2.2. In configuration settings of TypeScript translator was added one new property - `StrictFunctionTypes` (default `false`).
  • Loading branch information
Taritsyn committed Nov 8, 2017
1 parent bff624a commit 37af3b1
Show file tree
Hide file tree
Showing 27 changed files with 8,134 additions and 2,925 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
[Bb]in/
[Oo]bj/

# Node.js tools
bower_components/
node_modules/

# NUnit test results
TestResult.xml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>BundleTransformer.ConfigurationIntelliSense adds a IntelliSense support during editing of the `bundleTransformer` configuration section in the `Web.config` file.</description>
<summary>BundleTransformer.ConfigurationIntelliSense adds a IntelliSense support during editing of the `bundleTransformer` configuration section in the `Web.config` file.</summary>
<releaseNotes>Updated definitions for configuration settings of CSSO CSS minifier.</releaseNotes>
<releaseNotes>Updated definitions for configuration settings of TypeScript translator.</releaseNotes>
<copyright>Copyright (c) 2012-2017 Andrey Taritsyn - http://www.taritsyn.ru</copyright>
<language>en-US</language>
<tags>BundleTransformer Web.config IntelliSense</tags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
=============
RELEASE NOTES
=============
Updated definitions for configuration settings of CSSO CSS minifier.
Updated definitions for configuration settings of TypeScript translator.

=============
DOCUMENTATION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
<projectUrl>https://github.com/Taritsyn/BundleTransformer</projectUrl>
<iconUrl>https://raw.githubusercontent.com/Taritsyn/BundleTransformer/master/images/icons/128/BundleTransformer_TypeScript_Logo_128x128.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>BundleTransformer.TypeScript contains one translator-adapter - `TypeScriptTranslator` (supports the TypeScript (http://www.typescriptlang.org) version 2.5.3). This adapter makes translation of TypeScript code to JS code. Also contains the `TypeScriptAssetHandler` debugging HTTP handler, which is responsible for text output of translated TypeScript asset.
<description>BundleTransformer.TypeScript contains one translator-adapter - `TypeScriptTranslator` (supports the TypeScript (http://www.typescriptlang.org) version 2.6 RTM). This adapter makes translation of TypeScript code to JS code. Also contains the `TypeScriptAssetHandler` debugging HTTP handler, which is responsible for text output of translated TypeScript asset.

BundleTransformer.TypeScript does not support external modules (CommonJS, AMD, SystemJS, UMD and ES6 modules).

As a JS engine is used the JavaScript Engine Switcher library (https://github.com/Taritsyn/JavaScriptEngineSwitcher). For correct working of this module, you need to install one of the following NuGet packages: JavaScriptEngineSwitcher.Msie, JavaScriptEngineSwitcher.V8 or JavaScriptEngineSwitcher.ChakraCore.</description>
<summary>BundleTransformer.TypeScript contains one translator-adapter - `TypeScriptTranslator` (supports the TypeScript version 2.5.3). This adapter makes translation of TypeScript code to JS code. Also contains the `TypeScriptAssetHandler` debugging HTTP handler, which is responsible for text output of translated TypeScript asset.</summary>
<releaseNotes>Added support of TypeScript version 2.5.3.</releaseNotes>
<summary>BundleTransformer.TypeScript contains one translator-adapter - `TypeScriptTranslator` (supports the TypeScript version 2.6 RTM). This adapter makes translation of TypeScript code to JS code. Also contains the `TypeScriptAssetHandler` debugging HTTP handler, which is responsible for text output of translated TypeScript asset.</summary>
<releaseNotes>1. Added support of TypeScript version 2.6 RTM (please note: The 2.6 RTM release is also called '2.6.1');
2. In configuration settings of TypeScript translator was added one new property - `StrictFunctionTypes` (default `false`).</releaseNotes>
<copyright>Copyright (c) 2012-2017 Andrey Taritsyn - http://www.taritsyn.ru</copyright>
<language>en-US</language>
<tags>BundleTransformer System.Web.Optimization IBundleTransform ASP.NET JavaScript JS Bundling TypeScript Translation Translator Compilation Compiler</tags>
Expand Down
7 changes: 5 additions & 2 deletions NuGet/BundleTransformer.TypeScript/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
===========
BundleTransformer.TypeScript contains one translator-adapter -
`TypeScriptTranslator` (supports the TypeScript (http://www.typescriptlang.org)
version 2.5.3). This adapter makes translation of TypeScript code to JS code.
version 2.6 RTM). This adapter makes translation of TypeScript code to JS code.
Also contains the `TypeScriptAssetHandler` debugging HTTP handler, which is
responsible for text output of translated TypeScript asset.

Expand All @@ -26,7 +26,10 @@
=============
RELEASE NOTES
=============
Added support of TypeScript version 2.5.3.
1. Added support of TypeScript version 2.6 RTM (please note: The 2.6 RTM release
is also called '2.6.1');
2. In configuration settings of TypeScript translator was added one new
property - `StrictFunctionTypes` (default `false`).

====================
POST-INSTALL ACTIONS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,11 @@
<xs:documentation>Flag for whether to enable strict null checks</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="strictFunctionTypes" type="Boolean_SchemaType" use="optional" default="false">
<xs:annotation>
<xs:documentation>Flag for whether to enable strict checking of function types</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="stripInternal" type="Boolean_SchemaType" use="optional" default="false">
<xs:annotation>
<xs:documentation>Flag for whether to do not emit declarations for code that has an `@internal` annotation</xs:documentation>
Expand Down
2 changes: 1 addition & 1 deletion samples/BundleTransformer.Sample.AspNet4.Mvc4/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
noUnusedLocals="false" noUnusedParameters="false"
preserveConstEnums="false" removeComments="false"
skipDefaultLibCheck="false" skipLibCheck="false"
strictNullChecks="false" stripInternal="false"
strictNullChecks="false" strictFunctionTypes="false" stripInternal="false"
suppressExcessPropertyErrors="false" suppressImplicitAnyIndexErrors="false"
suppressTypeCheckingErrors="false"
target="EcmaScript3" transpileOnly="false">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,16 @@ public bool StrictNullChecks
set { this["strictNullChecks"] = value; }
}

/// <summary>
/// Gets or sets a flag for whether to enable strict checking of function types
/// </summary>
[ConfigurationProperty("strictFunctionTypes", DefaultValue = false)]
public bool StrictFunctionTypes
{
get { return (bool)this["strictFunctionTypes"]; }
set { this["strictFunctionTypes"] = value; }
}

/// <summary>
/// Gets or sets a flag for whether to do not emit declarations for code that has an
/// <code>@internal</code> annotation
Expand Down
10 changes: 10 additions & 0 deletions src/BundleTransformer.TypeScript/Internal/CompilationOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,15 @@ public bool StrictNullChecks
set;
}

/// <summary>
/// Gets or sets a flag for whether to enable strict checking of function types
/// </summary>
public bool StrictFunctionTypes
{
get;
set;
}

/// <summary>
/// Gets or sets a flag for whether to do not emit declarations for code that has an
/// <code>@internal</code> annotation
Expand Down Expand Up @@ -329,6 +338,7 @@ public CompilationOptions()
SkipDefaultLibCheck = false;
SkipLibCheck = false;
StrictNullChecks = false;
StrictFunctionTypes = false;
StripInternal = false;
SuppressExcessPropertyErrors = false;
SuppressImplicitAnyIndexErrors = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ private static JObject ConvertCompilationOptionsToJson(CompilationOptions option
new JProperty("skipDefaultLibCheck", options.SkipDefaultLibCheck),
new JProperty("skipLibCheck", options.SkipLibCheck),
new JProperty("strictNullChecks", options.StrictNullChecks),
new JProperty("strictFunctionTypes", options.StrictFunctionTypes),
new JProperty("stripInternal", options.StripInternal),
new JProperty("suppressExcessPropertyErrors", options.SuppressExcessPropertyErrors),
new JProperty("suppressImplicitAnyIndexErrors", options.SuppressImplicitAnyIndexErrors),
Expand Down
Loading

0 comments on commit 37af3b1

Please sign in to comment.