Skip to content

Commit

Permalink
Updated the compile order to ensure JS correctness (for 0.9.5 TS)
Browse files Browse the repository at this point in the history
- Updated readme
- Forced the build packages command to add the import eg statement to compiled files.
  • Loading branch information
NTaylorMullen committed Dec 6, 2013
1 parent f6d7645 commit 566405c
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion EndGate/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ PublishProfiles/
*.vspx
endgate.js
endgate.d.ts
endgate.ts
endgate.ts
_references.js*
2 changes: 0 additions & 2 deletions EndGate/EndGate.Core.JS/Bounds/Bounds2d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/// <reference path="../Interfaces/IMoveable.ts" />
/// <reference path="../Assets/Vectors/Vector2d.ts" />
/// <reference path="BoundingRectangle.ts" />
/// <reference path="BoundingCircle.ts" />

module EndGate.Bounds {

Expand Down
1 change: 1 addition & 0 deletions EndGate/EndGate.Core.JS/EndGate.Core.JS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
</ItemGroup>
<ItemGroup>
<TypeScriptCompile Include="Input\Keyboard\KeyboardEventTarget.ts" />
<CodeAnalysisDictionary Include="Scripts\_references.ts" />
<TypeScriptCompile Include="Utilities\EventHandler1.ts" />
<TypeScriptCompile Include="Tweening\Tween.ts" />
<TypeScriptCompile Include="Assets\TimeSpan.ts" />
Expand Down
1 change: 1 addition & 0 deletions EndGate/EndGate.Core.JS/Scripts/_references.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference path="../Bounds/Bounds2d.ts" />
3 changes: 0 additions & 3 deletions EndGate/EndGate.Core.JS/build.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#NOTE: This code sucks!! I hacked it together it like crazy

###### CONFIG ######
$inpath = ".\"
$outFolder = "Scripts"

$outputDeclaration = "endgate.d.ts"
Expand Down
5 changes: 5 additions & 0 deletions EndGate/build/Build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@
</Artifacts>
</ItemGroup>

<WriteLinesToFile
File="$(ProjectArtifactsDir)\EndGate.Core.JS\Scripts\endgate.d.ts"
Lines="import eg = EndGate%3b"
Overwrite="false"/>

<Copy SourceFiles="$(ProjectArtifactsDir)\EndGate.Core.JS\Scripts\endgate.d.ts" DestinationFiles="$(PackageSrcDir)\endgate-$(EndGateVersion).d.ts" />
<Copy SourceFiles="$(ProjectArtifactsDir)\EndGate.Core.JS\Scripts\endgate.js" DestinationFiles="$(PackageSrcDir)\endgate-$(EndGateVersion).js" />

Expand Down
2 changes: 2 additions & 0 deletions EndGate/readmes/readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
For resources and help to get started with the EndGate framework check out: http://endgate.net

This point release (0.2.1) is to ensure compatibility with TypeScript 0.9.5.

Upgrading?
---------------------------
Be sure to check out the release notes for a list of breaking changes:
Expand Down

0 comments on commit 566405c

Please sign in to comment.