Skip to content

Commit 8e47436

Browse files
committed
Added NuGet Package files, T4 Template for Javascript generation in package. Referenced Package in Test Website and changed link to JsRouting.js for master template. Updated StructureMap reference to use NuGet and updated reference to 2.6.3
1 parent d077a87 commit 8e47436

16 files changed

Lines changed: 4478 additions & 0 deletions

‎Core/packages.config‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="structuremap" version="2.6.3" />
4+
</packages>

‎NuGet/JsRouting.1.0.nupkg‎

41.2 KB
Binary file not shown.

‎NuGet/JsRouting.1.0.nuspec‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
3+
<metadata>
4+
<id>JsRouting</id>
5+
<version>1.0</version>
6+
<title>Javascript Routing</title>
7+
<authors>Zack Owen,Richard Grundy</authors>
8+
<owners>Zack Owen</owners>
9+
<licenseUrl>https://github.com/zowens/ASP.NET-MVC-JavaScript-Routing</licenseUrl>
10+
<projectUrl>https://github.com/zowens/ASP.NET-MVC-JavaScript-Routing</projectUrl>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<description>Allows ASP.NET MVC routes to be used within JavaScript.</description>
13+
<summary>Copyright (c) 2011, Zack Owens.
14+
All rights reserved.
15+
16+
Redistribution and use in source and binary forms, with or without
17+
modification, are permitted provided that the following conditions are met</summary>
18+
<tags>Javascript, Routing</tags>
19+
<dependencies>
20+
<dependency id="structuremap" version="2.6.3" />
21+
</dependencies>
22+
<frameworkAssemblies>
23+
<frameworkAssembly assemblyName="Microsoft.CSharp" targetFramework="" />
24+
<frameworkAssembly assemblyName="System" targetFramework="" />
25+
<frameworkAssembly assemblyName="System.Core" targetFramework="" />
26+
<frameworkAssembly assemblyName="System.Web.Mvc" targetFramework="" />
27+
</frameworkAssemblies>
28+
</metadata>
29+
<files>
30+
<file src="JsRouting.tt" target="content\Scripts\JsRouting.tt" />
31+
<file src="..\bin\JsRouting.Core.dll" target="lib\net40\JsRouting.Core.dll" />
32+
<file src="..\bin\JsRouting.Core.pdb" target="lib\net40\JsRouting.Core.pdb" />
33+
</files>
34+
</package>

‎NuGet/JsRouting.tt‎

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<#@ template debug="false" hostspecific="true" language="C#" #>
2+
<#@ output extension=".js" #>
3+
4+
<#@ assembly name="System.Core" #>
5+
<#@ assembly name="Microsoft.VisualStudio.Shell.Interop.8.0" #>
6+
<#@ assembly name="EnvDTE" #>
7+
<#@ assembly name="EnvDTE80" #>
8+
<#@ assembly name="VSLangProj" #>
9+
<#@ assembly name="$(ProjectDir)bin\JsRouting.Core.Dll" #>
10+
<#@ assembly name="$(ProjectDir)bin\StructureMap.Dll" #>
11+
12+
<#@ import namespace="System.IO" #>
13+
<#@ import namespace="System.Linq" #>
14+
<#@ import namespace="Microsoft.VisualStudio.Shell.Interop" #>
15+
<#@ import namespace="EnvDTE" #>
16+
<#@ import namespace="EnvDTE80" #>
17+
<#@ import namespace="Microsoft.VisualStudio.TextTemplating" #>
18+
19+
<#PrepareData(this); #>
20+
<#=GetOutput()#>
21+
22+
<#+
23+
24+
static DTE Dte;
25+
public static Project Project;
26+
static string AppRoot;
27+
static TextTransformation TT;
28+
static string binLocation;
29+
static Microsoft.CSharp.CSharpCodeProvider codeProvider = new Microsoft.CSharp.CSharpCodeProvider();
30+
31+
void PrepareData(TextTransformation tt) {
32+
33+
TT = tt;
34+
35+
var serviceProvider = Host as IServiceProvider;
36+
if (serviceProvider != null)