Permalink
Browse files

Intial Commit

  • Loading branch information...
0 parents commit f42c52c873da9a53fed0f3f5a9f10c8622e8d86e James Hughes committed Jun 9, 2011
Showing with 3,284 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +26 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Extensions.CssMedia.sln
  3. +61 −0 ...aler.Extensions.CssMedia/CodeSlice.Web.Baler.Extensions.CssMedia/Baler.Extensions.CssMedia.csproj
  4. +13 −0 ...aler.Extensions.CssMedia/CodeSlice.Web.Baler.Extensions.CssMedia/Baler.Extensions.CssMedia.nuspec
  5. +26 −0 ...Slice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Extensions.CssMedia/CssMediaExtensions.cs
  6. +36 −0 ....Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Extensions.CssMedia/Properties/AssemblyInfo.cs
  7. +4 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Extensions.CssMedia/packages.config
  8. +122 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/Baler.Test.csproj
  9. +30 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/Default.aspx
  10. +17 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/Default.aspx.cs
  11. +15 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/Default.aspx.designer.cs
  12. +35 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/Properties/AssemblyInfo.cs
  13. +4 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/Scripts/lcaypfv4.sam.css
  14. +30 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/Web.Debug.config
  15. +31 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/Web.Release.config
  16. +13 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/Web.config
  17. +20 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/lib/jasmine-1.0.2/MIT.LICENSE
  18. +188 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/lib/jasmine-1.0.2/jasmine-html.js
  19. +166 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/lib/jasmine-1.0.2/jasmine.css
  20. +2,421 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/lib/jasmine-1.0.2/jasmine.js
  21. +4 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/packages.config
  22. +3 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/spec/baler.spec.js
  23. +3 −0 CodeSlice.Web.Baler.Extensions.CssMedia/CodeSlice.Web.Baler.Test/src/single.css
  24. BIN ....Web.Baler.Extensions.CssMedia/packages/CodeSlice.Web.Baler.0.2.2/CodeSlice.Web.Baler.0.2.2.nupkg
  25. BIN ...eb.Baler.Extensions.CssMedia/packages/CodeSlice.Web.Baler.0.2.2/lib/net40/CodeSlice.Web.Baler.dll
  26. +5 −0 CodeSlice.Web.Baler.Extensions.CssMedia/packages/repositories.config
  27. 0 README.textile
  28. +6 −0 Rakefile
@@ -0,0 +1,5 @@
+bin/
+obj/
+*.csproj.user
+.DS_Store
+*.suo
@@ -0,0 +1,26 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Baler.Extensions.CssMedia", "CodeSlice.Web.Baler.Extensions.CssMedia\Baler.Extensions.CssMedia.csproj", "{C94EB74E-79D5-4E77-8FD1-3C97BD6445C6}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Baler.Test", "CodeSlice.Web.Baler.Test\Baler.Test.csproj", "{4E79BDDE-1C46-45B2-A954-753B663589C1}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {C94EB74E-79D5-4E77-8FD1-3C97BD6445C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C94EB74E-79D5-4E77-8FD1-3C97BD6445C6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C94EB74E-79D5-4E77-8FD1-3C97BD6445C6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C94EB74E-79D5-4E77-8FD1-3C97BD6445C6}.Release|Any CPU.Build.0 = Release|Any CPU
+ {4E79BDDE-1C46-45B2-A954-753B663589C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {4E79BDDE-1C46-45B2-A954-753B663589C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {4E79BDDE-1C46-45B2-A954-753B663589C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {4E79BDDE-1C46-45B2-A954-753B663589C1}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{C94EB74E-79D5-4E77-8FD1-3C97BD6445C6}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>CodeSlice.Web.Baler.Extensions.CssMedia</RootNamespace>
+ <AssemblyName>CodeSlice.Web.Baler.Extensions.CssMedia</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="CodeSlice.Web.Baler">
+ <HintPath>..\packages\CodeSlice.Web.Baler.0.2.2\lib\net40\CodeSlice.Web.Baler.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="CssMediaExtensions.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Baler.Extensions.CssMedia.nuspec" />
+ <None Include="packages.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <metadata>
+ <id>$id$</id>
+ <version>$version$</version>
+ <authors>$author$</authors>
+ <owners>$author$</owners>
+ <projectUrl>http://yobriefca.se/projects/baler</projectUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <description>$description$</description>
+ <tags>baler css</tags>
+ </metadata>
+</package>
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace CodeSlice.Web.Baler.Extensions.CssMedia
+{
+ // `CssMediaExtensions` provide methods for setting the media type that a
+ // stylesheet should render for such as `screen` or `print`
+ public static class CssMediaExtensions
+ {
+ // The `WithMedia` Extension allows you to set the media attribute of
+ // the rendered CSS tag.
+ public static IBale WithMedia(this IBale bale, string media)
+ {
+ return bale.Attr("media", media);
+ }
+
+ // `AsCss` overrides the existing `AsCss` method allowing you to pass a
+ // media property directly into the render call
+ public static string AsCss(this IBale bale, string media)
+ {
+ return bale.WithMedia(media).AsCss();
+ }
+ }
+}
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Baler.Extensions.CssMedia")]
+[assembly: AssemblyDescription("Extension adds the ability to specify the media type for a CSS bundle")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("James Hughes")]
+[assembly: AssemblyProduct("Baler.Extensions.CssMedia")]
+[assembly: AssemblyCopyright("Copyright © James Hughes 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("3379d7c3-eb68-49cd-876d-d22f24f923a6")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("0.1.0.0")]
+[assembly: AssemblyFileVersion("0.1.0.0")]
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="CodeSlice.Web.Baler" version="0.2.2" />
+</packages>
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>
+ </ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{4E79BDDE-1C46-45B2-A954-753B663589C1}</ProjectGuid>
+ <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>CodeSlice.Web.Baler.Test</RootNamespace>
+ <AssemblyName>CodeSlice.Web.Baler.Test</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <UseIISExpress>false</UseIISExpress>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="CodeSlice.Web.Baler">
+ <HintPath>..\packages\CodeSlice.Web.Baler.0.2.2\lib\net40\CodeSlice.Web.Baler.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Web.DynamicData" />
+ <Reference Include="System.Web.Entity" />
+ <Reference Include="System.Web.ApplicationServices" />
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="System.Web.Extensions" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Configuration" />
+ <Reference Include="System.Web.Services" />
+ <Reference Include="System.EnterpriseServices" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Default.aspx" />
+ <Content Include="lib\jasmine-1.0.2\jasmine-html.js" />
+ <Content Include="lib\jasmine-1.0.2\jasmine.css" />
+ <Content Include="lib\jasmine-1.0.2\jasmine.js" />
+ <Content Include="spec\baler.spec.js" />
+ <Content Include="src\single.css" />
+ <Content Include="Web.config" />
+ <Content Include="Web.Debug.config">
+ <DependentUpon>Web.config</DependentUpon>
+ </Content>
+ <Content Include="Web.Release.config">
+ <DependentUpon>Web.config</DependentUpon>
+ </Content>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Default.aspx.cs">
+ <DependentUpon>Default.aspx</DependentUpon>
+ <SubType>ASPXCodeBehind</SubType>
+ </Compile>
+ <Compile Include="Default.aspx.designer.cs">
+ <DependentUpon>Default.aspx</DependentUpon>
+ </Compile>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="lib\jasmine-1.0.2\MIT.LICENSE" />
+ <Content Include="packages.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Scripts\" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\CodeSlice.Web.Baler.Extensions.CssMedia\Baler.Extensions.CssMedia.csproj">
+ <Project>{C94EB74E-79D5-4E77-8FD1-3C97BD6445C6}</Project>
+ <Name>Baler.Extensions.CssMedia</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <UseIIS>False</UseIIS>
+ <AutoAssignPort>True</AutoAssignPort>
+ <DevelopmentServerPort>49974</DevelopmentServerPort>
+ <DevelopmentServerVPath>/</DevelopmentServerVPath>
+ <IISUrl>
+ </IISUrl>
+ <NTLMAuthentication>False</NTLMAuthentication>
+ <UseCustomServer>False</UseCustomServer>
+ <CustomServerUrl>
+ </CustomServerUrl>
+ <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
@@ -0,0 +1,30 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CodeSlice.Web.Test.Default" %>
+<%@ Import Namespace="CodeSlice.Web.Baler" %>
+<%@ Import Namespace="CodeSlice.Web.Baler.Extensions.CssMedia" %>
+
+<!DOCTYPE HTML />
+<html>
+<head>
+ <title>Jasmine Test Runner</title>
+ <link rel="stylesheet" type="text/css" href="lib/jasmine-1.0.2/jasmine.css"/>
+ <script type="text/javascript" src="lib/jasmine-1.0.2/jasmine.js"></script>
+ <script type="text/javascript" src="lib/jasmine-1.0.2/jasmine-html.js"></script>
+
+ <!-- include source files here... -->
+ <%=Baler.Build("~/src/single.css").AsCss("screen") %>
+
+ <!-- include spec files here... -->
+ <script type="text/javascript" src="spec/baler.spec.js"></script>
+
+</head>
+<body>
+
+<script type="text/javascript">
+ jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
+ jasmine.getEnv().execute();
+</script>
+
+<div id="single">Test</div>
+</body>
+</html>
+
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace CodeSlice.Web.Test
+{
+ public partial class Default : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
@@ -0,0 +1,15 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace CodeSlice.Web.Test {
+
+
+ public partial class Default {
+ }
+}
Oops, something went wrong.

0 comments on commit f42c52c

Please sign in to comment.