Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added MVC activator #52

Merged
merged 4 commits into from
Jan 7, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions nuget/content/App_Start/JQueryIframeAutoHeightConfig.cs.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System.Web.Optimization;

[assembly: WebActivatorEx.PostApplicationStartMethod(typeof($rootnamespace$.JQueryIframeAutoHeightConfig), "RegisterBundles")]
namespace $rootnamespace$
{
public class JQueryIframeAutoHeightConfig
{
public static void RegisterBundles()
{
var bundles = BundleTable.Bundles;

/* Please ensure jQuery is registered and included too */

/* Example

bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
*/

bundles.Add(new ScriptBundle("~/bundles/jquery-iframe-auto-height").Include(
"~/Scripts/jquery-iframe-auto-height/jquery.browser.js").Include(
"~/Scripts/jquery-iframe-auto-height/jquery.iframe-auto-height.plugin.{version}.js"));
}
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>jquery-iframe-auto-height</id>
<version>1.9.3</version>
<version>1.9.3.1</version>
<title>jquery-iframe-auto-height</title>
<authors>Jesse House,Robert Sirre</authors>
<owners>Jesse House</owners>
Expand All @@ -13,6 +13,9 @@
<description>jQuery plugin to set the height of an iframe to its contents height</description>
<summary>jQuery plugin to set the height of an iframe to its contents height</summary>
<tags>jQuery iframe auto-height</tags>
<dependencies>
<dependency id="jQuery" version="1.6.2" />
</dependencies>
</metadata>
<files>
<file src="..\release\jquery.browser.js" target="content\Scripts\jquery-iframe-auto-height\jquery.browser.js" />
Expand Down
Binary file added nuget/jquery-iframe-auto-height.MVC.0.0.2.nupkg
Binary file not shown.
27 changes: 27 additions & 0 deletions nuget/jquery-iframe-auto-height.MVC.0.0.2.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>jquery-iframe-auto-height.MVC</id>
<version>0.0.1</version>
<title>jquery-iframe-auto-height MVC</title>
<authors>Jesse House,Robert Sirre</authors>
<owners>Jesse House</owners>
<licenseUrl>http://unlicense.org/</licenseUrl>
<projectUrl>https://github.com/house9/jquery-iframe-auto-height</projectUrl>
<iconUrl>http://jessehouse.com/favicon.png</iconUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>MVC bundle configuration for jquery-iframe-auto-height.
The actual include needs to be done per page/layout.</description>
<summary>MVC bundle configuration for jquery-iframe-auto-height</summary>
<tags>jQuery iframe auto-height MVC</tags>
<dependencies>
<dependency id="jquery-iframe-auto-height" />
<dependency id="WebActivatorEx" version="2.0.0" />
<dependency id="Microsoft.AspNet.Mvc" version="4.0.20505.0" />
<dependency id="Microsoft.AspNet.Web.Optimization" />
</dependencies>
</metadata>
<files>
<file src="content\App_Start\JQueryIframeAutoHeightConfig.cs.pp" target="content\App_Start\JQueryIframeAutoHeightConfig.cs.pp" />
</files>
</package>