forked from skroonenburg/Rejuicer
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated demo projects to use new Rejuicer nuget package and webactiva…
…tor.
- Loading branch information
skroonenburg
committed
Nov 6, 2011
1 parent
68fcd6e
commit f76477a
Showing
44 changed files
with
205 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Rejuicer; | ||
|
||
[assembly: WebActivator.PostApplicationStartMethod(typeof(MvcDemo.App_Start.RejuicerContent), "Configure")] | ||
namespace MvcDemo.App_Start | ||
{ | ||
public static class RejuicerContent | ||
{ | ||
public static void Configure() | ||
{ | ||
OnRequest.ForJs("~/Combined-{0}.js") | ||
.Compact | ||
.FilesIn("~/Scripts/") | ||
.Matching("*.js") | ||
.FilesIn("~/Scripts/") | ||
.Matching("*.coffee") | ||
.Configure(); | ||
|
||
OnRequest.ForCss("~/Combined.css") | ||
.Compact | ||
.File("~/Content/Site.css") | ||
.Configure(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="YUICompressor.NET" version="1.5.0.0" /> | ||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" /> | ||
<package id="WebActivator" version="1.5" /> | ||
<package id="Rejuicer" version="1.2.6" /> | ||
</packages> |
Binary file added
BIN
+30 KB
.../packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nupkg
Binary file not shown.
Binary file added
BIN
+44.4 KB
.../packages/Microsoft.Web.Infrastructure.1.0.0.0/lib/net40/Microsoft.Web.Infrastructure.dll
Binary file not shown.
Binary file not shown.
26 changes: 26 additions & 0 deletions
26
Demos/Mvc/MvcDemo/packages/Rejuicer.1.2.6/Content/App_Start/Rejuicer.cs.pp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Rejuicer; | ||
|
||
[assembly: WebActivator.PostApplicationStartMethod(typeof($rootnamespace$.App_Start.RejuicerContent), "Configure")] | ||
namespace $rootnamespace$.App_Start | ||
{ | ||
public static class RejuicerContent | ||
{ | ||
public static void Configure() | ||
{ | ||
/* | ||
OnRequest.ForJs("~/Combined-{0}.js") | ||
.Compact | ||
.FilesIn("~/Scripts/") | ||
.Matching("*.js") | ||
.FilesIn("~/Scripts/") // Include coffee script, these will be automatically compiled to javascript | ||
.Matching("*.coffee") | ||
.Configure(); | ||
OnRequest.ForCss("~/Combined.css") | ||
.Compact | ||
.File("~/Content/Site.css") | ||
.Configure(); | ||
*/ | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
Demos/Mvc/MvcDemo/packages/Rejuicer.1.2.6/Content/web.config.transform
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<system.web> | ||
<httpModules> | ||
<add name="Rejuicer" type="Rejuicer.RejuicerModule, Rejuicer" /> | ||
</httpModules> | ||
|
||
<pages> | ||
<namespaces> | ||
<add namespace="Rejuicer"/> | ||
</namespaces> | ||
</pages> | ||
</system.web> | ||
<system.webServer> | ||
<modules runAllManagedModulesForAllRequests="true"> | ||
<add name="Rejuicer" type="Rejuicer.RejuicerModule, Rejuicer"/> | ||
</modules> | ||
</system.webServer> | ||
</configuration> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+9.5 KB
Demos/Mvc/MvcDemo/packages/WebActivator.1.5/lib/net40/WebActivator.dll
Binary file not shown.
Binary file added
BIN
+499 KB
Demos/Mvc/MvcDemo/packages/YUICompressor.NET.1.5.0.0/YUICompressor.NET.1.5.0.0.nupkg
Binary file not shown.
Binary file added
BIN
+412 KB
Demos/Mvc/MvcDemo/packages/YUICompressor.NET.1.5.0.0/lib/NET20/EcmaScript.NET.modified.dll
Binary file not shown.
Binary file added
BIN
+32 KB
Demos/Mvc/MvcDemo/packages/YUICompressor.NET.1.5.0.0/lib/NET20/Iesi.Collections.dll
Binary file not shown.
Binary file added
BIN
+63.5 KB
...s/Mvc/MvcDemo/packages/YUICompressor.NET.1.5.0.0/lib/NET20/Yahoo.Yui.Compressor.NET20.dll
Binary file not shown.
Binary file added
BIN
+412 KB
Demos/Mvc/MvcDemo/packages/YUICompressor.NET.1.5.0.0/lib/NET35/EcmaScript.NET.modified.dll
Binary file not shown.
Binary file added
BIN
+67.5 KB
Demos/Mvc/MvcDemo/packages/YUICompressor.NET.1.5.0.0/lib/NET35/Yahoo.Yui.Compressor.dll
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<repositories> | ||
<repository path="..\MvcDemo\packages.config" /> | ||
</repositories> |
23 changes: 23 additions & 0 deletions
23
Demos/WebForms/WebFormsDemo/WebFormsDemo/App_Start/Rejuicer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Rejuicer; | ||
|
||
[assembly: WebActivator.PostApplicationStartMethod(typeof(WebFormsDemo.App_Start.RejuicerContent), "Configure")] | ||
namespace WebFormsDemo.App_Start | ||
{ | ||
public static class RejuicerContent | ||
{ | ||
public static void Configure() | ||
{ | ||
OnRequest.ForJs("~/Combined-{0}.js") | ||
.Compact | ||
.FilesIn("~/Scripts/") | ||
.Matching("*.js") | ||
.Configure(); | ||
|
||
OnRequest.ForCss("~/Combined.css") | ||
.Compact | ||
.FilesIn("~/Styles/") | ||
.Matching("*.css") | ||
.Configure(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,49 @@ | ||
<?xml version="1.0"?> | ||
|
||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
For more information on how to configure your ASP.NET application, please visit | ||
http://go.microsoft.com/fwlink/?LinkId=169433 | ||
--> | ||
|
||
<configuration> | ||
<connectionStrings> | ||
<add name="ApplicationServices" | ||
connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" | ||
providerName="System.Data.SqlClient" /> | ||
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /> | ||
</connectionStrings> | ||
|
||
<system.web> | ||
<compilation debug="false" targetFramework="4.0" /> | ||
|
||
<httpModules> | ||
<add name="Rejuicer" type="Rejuicer.RejuicerModule, Rejuicer" /> | ||
</httpModules> | ||
|
||
<authentication mode="Forms"> | ||
<forms loginUrl="~/Account/Login.aspx" timeout="2880" /> | ||
</authentication> | ||
|
||
<membership> | ||
<providers> | ||
<clear/> | ||
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" | ||
enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" | ||
maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" | ||
applicationName="/" /> | ||
<clear /> | ||
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /> | ||
</providers> | ||
</membership> | ||
|
||
<profile> | ||
<providers> | ||
<clear/> | ||
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/> | ||
<clear /> | ||
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" /> | ||
</providers> | ||
</profile> | ||
|
||
<roleManager enabled="false"> | ||
<providers> | ||
<clear/> | ||
<clear /> | ||
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" /> | ||
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" /> | ||
</providers> | ||
</roleManager> | ||
|
||
<pages> | ||
<namespaces> | ||
<add namespace="Rejuicer" /> | ||
</namespaces> | ||
</pages> | ||
</system.web> | ||
|
||
<system.webServer> | ||
<validation validateIntegratedModeConfiguration="false"/> | ||
<validation validateIntegratedModeConfiguration="false" /> | ||
<modules runAllManagedModulesForAllRequests="true"> | ||
<add name="Rejuicer" type="Rejuicer.RejuicerModule, Rejuicer"/> | ||
<add name="Rejuicer" type="Rejuicer.RejuicerModule, Rejuicer" /> | ||
</modules> | ||
</system.webServer> | ||
</configuration> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" /> | ||
<package id="Rejuicer" version="1.2.6" /> | ||
<package id="WebActivator" version="1.5" /> | ||
<package id="YUICompressor.NET" version="1.5.0.0" /> | ||
</packages> |
Binary file added
BIN
+30 KB
.../packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nupkg
Binary file not shown.
Binary file added
BIN
+44.4 KB
.../packages/Microsoft.Web.Infrastructure.1.0.0.0/lib/net40/Microsoft.Web.Infrastructure.dll
Binary file not shown.
Oops, something went wrong.