Skip to content

Commit

Permalink
Updated the EndGate version and added a readme to the packages
Browse files Browse the repository at this point in the history
  • Loading branch information
NTaylorMullen committed Aug 20, 2013
1 parent d67e2b2 commit bb298b9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
12 changes: 8 additions & 4 deletions EndGate/build/Build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<NuspecsSourceDir>$(ProjectRoot)\$(NuspecsDirectoryName)</NuspecsSourceDir>
<NuspecsArtifactsDir>$(ArtifactsDir)\$(NuspecsDirectoryName)</NuspecsArtifactsDir>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)</MSBuildCommunityTasksPath>
<ReadmesDir>$(ProjectRoot)\readmes</ReadmesDir>
<NuGetToolsPath>$(ProjectRoot)\.nuget</NuGetToolsPath>
<NuGetExePath>$(NuGetToolsPath)\nuget.exe</NuGetExePath>
<ToolsPath>$(ProjectRoot)\tools</ToolsPath>
Expand Down Expand Up @@ -54,8 +55,8 @@
</ItemGroup>

<!-- Update Nuspec artifact files -->
<FileUpdate Files="@(NuspecsArtifacts)" Regex="__ENDGATE_VERSION__" ReplacementText="$(EndGateVersion)" />
<FileUpdate Files="@(NuspecsArtifacts)" Regex="__ENDGATE_VERSION__" ReplacementText="$(EndGateVersion)" />

<Exec Command="&quot;$(NuGetExePath)&quot; pack &quot;%(NuspecsArtifacts.Identity)&quot; -o &quot;$(PackagesArtifactsDir)&quot; -basePath &quot;$(PackageSrcDir)&quot;"
LogStandardErrorAsError="true" />
</Target>
Expand All @@ -65,6 +66,9 @@
<Artifacts Include="$(NuspecsSourceDir)\*.nuspec">
<Destination>$(NuspecsArtifactsDir)</Destination>
</Artifacts>
<Artifacts Include="$(ReadmesDir)\*.txt">
<Destination>$(PackageSrcDir)</Destination>
</Artifacts>
</ItemGroup>

<Copy SourceFiles="$(ProjectArtifactsDir)\EndGate.Core.JS\Scripts\endgate.d.ts" DestinationFiles="$(PackageSrcDir)\endgate-$(EndGateVersion).d.ts" />
Expand All @@ -81,7 +85,7 @@
<FileUpdate Files="$(PackageSrcDir)\endgate-$(EndGateVersion).d.ts" Regex=", [^\s\r\n]+_[^\r\n]*? " ReplacementText=" " />
<FileUpdate Files="$(PackageSrcDir)\endgate-$(EndGateVersion).d.ts" Regex=" implements [^\s\r\n]+_[^\r\n]*? " ReplacementText=" " />

<Exec Command="java -jar &quot;$(ClosureCompilerPath)&quot; --js $(PackageSrcDir)\endgate-$(EndGateVersion).js --create_source_map $(PackageSrcDir)\endgate-$(EndGateVersion).min.js.map --source_map_format=V3 --js_output_file $(PackageSrcDir)\endgate-$(EndGateVersion).min.js" WorkingDirectory="$(ProjectRoot)" Condition=" '$(OS)' == 'Windows_NT'" />
<Exec Command="java -jar &quot;$(ClosureCompilerPath)&quot; --js $(PackageSrcDir)\endgate-$(EndGateVersion).js --create_source_map $(PackageSrcDir)\endgate-$(EndGateVersion).min.js.map --source_map_format=V3 --js_output_file $(PackageSrcDir)\endgate-$(EndGateVersion).min.js" WorkingDirectory="$(ProjectRoot)" Condition=" '$(OS)' == 'Windows_NT'" />

<FileUpdate Files="$(PackageSrcDir)\endgate-$(EndGateVersion).min.js.map" Regex="&quot;file&quot;:&quot;((.|\r|\n)*?)&quot;," ReplacementText="&quot;file&quot;:&quot;endgate-$(EndGateVersion).min.js&quot;," />
<FileUpdate Files="$(PackageSrcDir)\endgate-$(EndGateVersion).min.js.map" Regex="&quot;sources&quot;:\[&quot;((.|\r|\n)*?)&quot;\]," ReplacementText="&quot;sources&quot;:[&quot;endgate-$(EndGateVersion).js&quot;]," />
Expand All @@ -90,7 +94,7 @@
File="$(PackageSrcDir)\endgate-$(EndGateVersion).js"
Lines="//@ sourceMappingURL=endgate-$(EndGateVersion).min.js.map"
Overwrite="false"/>

<!-- Setup Nuspecs within artifacts directory -->
<Copy SourceFiles="@(Artifacts)" DestinationFiles="@(Artifacts->'%(Destination)\%(RecursiveDir)%(Filename)%(Extension)')" />
</Target>
Expand Down
2 changes: 1 addition & 1 deletion EndGate/build/EndGate.Versions.targets
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<PatchVersion>0</PatchVersion>
<VersionQuality>beta1</VersionQuality>

<QualityEnding Condition="$(BuildQuality) != ''">-$(VersionQuality)</QualityEnding>
<QualityEnding Condition="$(VersionQuality) != ''">-$(VersionQuality)</QualityEnding>
<EndGateVersion>$(MajorVersion).$(MinorVersion).$(PatchVersion)$(QualityEnding)</EndGateVersion>
</PropertyGroup>
</Project>
3 changes: 2 additions & 1 deletion EndGate/nuspecs/EndGate.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
</metadata>

<files>
<file src="endgate-__ENDGATE_VERSION__.js" target="content/Scripts" />
<file src="readme.txt" target="readme.txt" />
<file src="endgate-__ENDGATE_VERSION__.js" target="content/Scripts" />
<file src="endgate-__ENDGATE_VERSION__.min.js" target="content/Scripts" />
<file src="endgate-__ENDGATE_VERSION__.min.js.map" target="content/Scripts" />
<file src="endgate-__ENDGATE_VERSION__.d.ts" target="content/Scripts" />
Expand Down
7 changes: 7 additions & 0 deletions EndGate/readmes/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
For resources and help to get started with the EndGate framework check out: http://endgate.net

Release notes: https://github.com/NTaylorMullen/EndGate/releases/tag/0.2.0-beta1

Upgrading?
---------------------------
Be sure to check out the release notes link above for a list of breaking changes.

0 comments on commit bb298b9

Please sign in to comment.