Skip to content

Commit fb2e201

Browse files
committed
Initial public commit
0 parents  commit fb2e201

File tree

128 files changed

+10036
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+10036
-0
lines changed

.gitignore

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
######## GENERAL IGNORES #######
2+
3+
# ignore logs, OS cache files
4+
*.log
5+
.DS_Store*
6+
ehthumbs.db
7+
Icon?
8+
Thumbs.db
9+
10+
######## GENERAL .NET IGNORES ########
11+
12+
# Ignore binaries in the source
13+
Source/*/bin
14+
Source/*/obj
15+
16+
# Ignore user-scoped solution and project settings
17+
*.user
18+
*.suo
19+
20+
# Ignore generated Version.cs files
21+
Source/*/Properties/Version.cs
22+
23+
# NuGet output
24+
Build/*.nupkg
25+
26+
# NuGet packages
27+
Packages/*
28+
!Packages/repositories.config
29+
30+
# Any Sitecore assemblies copied local
31+
Dependencies/Libraries/Sitecore/*

.nuget/NuGet.Config

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<solution>
4+
<add key="disableSourceControlIntegration" value="true" />
5+
</solution>
6+
</configuration>

.nuget/NuGet.exe

677 KB
Binary file not shown.

.nuget/NuGet.targets

+133
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
5+
6+
<!-- Enable the restore command to run before builds -->
7+
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
8+
9+
<!-- Property that enables building a package from a project -->
10+
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
11+
12+
<!-- Determines if package restore consent is required to restore packages -->
13+
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
14+
15+
<!-- Download NuGet.exe if it does not already exist -->
16+
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
17+
</PropertyGroup>
18+
19+
<ItemGroup Condition=" '$(PackageSources)' == '' ">
20+
<!-- Package sources used to restore packages. By default, registered sources under %APPDATA%\NuGet\NuGet.Config will be used -->
21+
<!-- The official NuGet package source (https://nuget.org/api/v2/) will be excluded if package sources are specified and it does not appear in the list -->
22+
<!--
23+
<PackageSource Include="https://nuget.org/api/v2/" />
24+
<PackageSource Include="https://my-nuget-source/nuget/" />
25+
-->
26+
</ItemGroup>
27+
28+
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
29+
<!-- Windows specific commands -->
30+
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
31+
<PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
32+
</PropertyGroup>
33+
34+
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
35+
<!-- We need to launch nuget.exe with the mono command if we're not on windows -->
36+
<NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
37+
<PackagesConfig>packages.config</PackagesConfig>
38+
</PropertyGroup>
39+
40+
<PropertyGroup>
41+
<!-- NuGet command -->
42+
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\NuGet.exe</NuGetExePath>
43+
<PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
44+
45+
<NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
46+
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
47+
48+
<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
49+
50+
<RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
51+
<NonInteractiveSwitch Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' ">-NonInteractive</NonInteractiveSwitch>
52+
53+
<!-- Commands -->
54+
<RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir "$(SolutionDir) " </RestoreCommand>
55+
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -Properties Configuration=$(Configuration) $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols</BuildCommand>
56+
57+
<!-- We need to ensure packages are restored prior to assembly resolve -->
58+
<BuildDependsOn Condition="$(RestorePackages) == 'true'">
59+
RestorePackages;
60+
$(BuildDependsOn);
61+
</BuildDependsOn>
62+
63+
<!-- Make the build depend on restore packages -->
64+
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
65+
$(BuildDependsOn);
66+
BuildPackage;
67+
</BuildDependsOn>
68+
</PropertyGroup>
69+
70+
<Target Name="CheckPrerequisites">
71+
<!-- Raise an error if we're unable to locate nuget.exe -->
72+
<Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
73+
<!--
74+
Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
75+
This effectively acts as a lock that makes sure that the download operation will only happen once and all
76+
parallel builds will have to wait for it to complete.
77+
-->
78+
<MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT;DownloadNuGetExe=$(DownloadNuGetExe)" />
79+
</Target>
80+
81+
<Target Name="_DownloadNuGet">
82+
<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
83+
</Target>
84+
85+
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
86+
<Exec Command="$(RestoreCommand)"
87+
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
88+
89+
<Exec Command="$(RestoreCommand)"
90+
LogStandardErrorAsError="true"
91+
Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
92+
</Target>
93+
94+
<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
95+
<Exec Command="$(BuildCommand)"
96+
Condition=" '$(OS)' != 'Windows_NT' " />
97+
98+
<Exec Command="$(BuildCommand)"
99+
LogStandardErrorAsError="true"
100+
Condition=" '$(OS)' == 'Windows_NT' " />
101+
</Target>
102+
103+
<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
104+
<ParameterGroup>
105+
<OutputFilename ParameterType="System.String" Required="true" />
106+
</ParameterGroup>
107+
<Task>
108+
<Reference Include="System.Core" />
109+
<Using Namespace="System" />
110+
<Using Namespace="System.IO" />
111+
<Using Namespace="System.Net" />
112+
<Using Namespace="Microsoft.Build.Framework" />
113+
<Using Namespace="Microsoft.Build.Utilities" />
114+
<Code Type="Fragment" Language="cs">
115+
<![CDATA[
116+
try {
117+
OutputFilename = Path.GetFullPath(OutputFilename);
118+
119+
Log.LogMessage("Downloading latest version of NuGet.exe...");
120+
WebClient webClient = new WebClient();
121+
webClient.DownloadFile("https://nuget.org/nuget.exe", OutputFilename);
122+
123+
return true;
124+
}
125+
catch (Exception ex) {
126+
Log.LogErrorFromException(ex);
127+
return false;
128+
}
129+
]]>
130+
</Code>
131+
</Task>
132+
</UsingTask>
133+
</Project>

Build/PackageNuGet.cmd

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@ECHO off
2+
3+
SET scriptRoot=%~dp0
4+
SET msbuild=%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
5+
6+
"%msbuild%" "%scriptroot%\..\Synthesis.sln" /p:Configuration=Release /m
7+
8+
"%scriptRoot%\..\.nuget\NuGet.exe" pack "%scriptRoot%\Synthesis.nuget\Synthesis.nuspec"
9+
10+
"%scriptRoot%\..\.nuget\NuGet.exe" pack "%scriptRoot%\Synthesis.Core.nuget\Synthesis.Core.nuspec" -Symbols
11+
12+
"%scriptRoot%\..\.nuget\NuGet.exe" pack "%scriptRoot%\Synthesis.Blade.nuget\Synthesis.Blade.nuspec"
13+
14+
"%scriptRoot%\..\.nuget\NuGet.exe" pack "%scriptRoot%\Synthesis.Blade.Core.nuget\Synthesis.Blade.Core.nuspec" -Symbols
15+
16+
PAUSE
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0"?>
2+
<package >
3+
<metadata>
4+
<id>Synthesis.Blade.Core</id>
5+
<version>5.0.2</version>
6+
<authors>Kam Figy</authors>
7+
<owners>ISITE Design</owners>
8+
<licenseUrl>http://opensource.org/licenses/MIT</licenseUrl>
9+
<projectUrl>https://github.com/kamsar/Synthesis</projectUrl>
10+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
11+
<description>
12+
Extends Synthesis to support integration with the Blade presentation framework for Sitecore. Synthesis types can then be used in Blade views as models without the need for a discrete presenter.
13+
14+
This package is designed to be installed on a library project, and does not include configuration files. Use the Synthesis.Blade package for web projects.
15+
</description>
16+
<releaseNotes>Initial public release</releaseNotes>
17+
<copyright>Copyright 2013</copyright>
18+
<tags>sitecore</tags>
19+
<dependencies>
20+
<dependency id="Synthesis.Core" version="5.0.2" />
21+
<dependency id="Blade.Core" version="1.5.6" />
22+
</dependencies>
23+
</metadata>
24+
<files>
25+
<file src="..\..\Source\Synthesis.Blade\bin\release\Synthesis.Blade*" target="lib\net45" />
26+
<file src="..\..\Source\Synthesis.Blade\**\*.cs" target="src" />
27+
</files>
28+
</package>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0"?>
2+
<package >
3+
<metadata>
4+
<id>Synthesis.Blade</id>
5+
<version>5.0.2</version>
6+
<authors>Kam Figy</authors>
7+
<owners>ISITE Design</owners>
8+
<licenseUrl>http://opensource.org/licenses/MIT</licenseUrl>
9+
<projectUrl>https://github.com/kamsar/Synthesis</projectUrl>
10+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
11+
<description>
12+
Extends Synthesis to support integration with the Blade presentation framework for Sitecore. Synthesis types can then be used in Blade views as models without the need for a discrete presenter.
13+
14+
This package is designed to be installed on a web project, and includes configuration files.
15+
</description>
16+
<releaseNotes>Initial public release</releaseNotes>
17+
<copyright>Copyright 2013</copyright>
18+
<tags>sitecore</tags>
19+
<dependencies>
20+
<dependency id="Synthesis.Blade.Core" version="1.5.6" />
21+
<dependency id="Synthesis" version="5.0.2" />
22+
<dependency id="Blade" version="1.5.6" />
23+
</dependencies>
24+
</metadata>
25+
<files>
26+
<file src="..\..\Source\Synthesis.Blade\Synthesis.Blade.config" target="content\App_Config\Include" />
27+
</files>
28+
</package>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0"?>
2+
<package >
3+
<metadata>
4+
<id>Synthesis.Core</id>
5+
<version>5.0.2</version>
6+
<authors>Kam Figy</authors>
7+
<owners>ISITE Design</owners>
8+
<licenseUrl>http://opensource.org/licenses/MIT</licenseUrl>
9+
<projectUrl>https://github.com/kamsar/Synthesis</projectUrl>
10+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
11+
<description>
12+
Synthesis is a universal object mapper with LINQ support for Sitecore 7. This package contains only the core library, and is suitable for installing to class libraries. For installing to a web project, use the Synthesis package, which comes with configuration files as well.
13+
</description>
14+
<releaseNotes>Initial public release</releaseNotes>
15+
<copyright>Copyright 2013</copyright>
16+
<tags>sitecore</tags>
17+
<dependencies>
18+
</dependencies>
19+
</metadata>
20+
<files>
21+
<file src="..\..\Source\Synthesis\bin\release\Synthesis.*" target="lib\net45" />
22+
<file src="..\..\Source\Synthesis\**\*.cs" target="src" />
23+
<!-- this prevents issues if dependencies Sitecore NuGet before a build occurs and the http module can't be loaded that the install configured -->
24+
<file src="..\..\Source\Synthesis\bin\release\Synthesis.*" target="content\bin" />
25+
</files>
26+
</package>
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0"?>
2+
<package >
3+
<metadata>
4+
<id>Synthesis</id>
5+
<version>5.0.2</version>
6+
<authors>Kam Figy</authors>
7+
<owners>ISITE Design</owners>
8+
<licenseUrl>http://opensource.org/licenses/MIT</licenseUrl>
9+
<projectUrl>https://github.com/kamsar/Synthesis</projectUrl>
10+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
11+
<description>
12+
Synthesis is a universal object mapper with LINQ support for Sitecore 7. Use the same strongly typed objects to run queries against search indexes or the database, or transparently convert from indexed to database when necessary. Supports fully polymorphic Sitecore template inheritance via a generated interface hierarchy.
13+
14+
This package contains both the Synthesis core library and the configuration for it, which is appropriate for web projects. Install Synthesis.Core if you only want the library.
15+
</description>
16+
<summary>
17+
Synthesis is a universal object mapper with LINQ support for Sitecore 7. This package contains both the Synthesis core library and the configuration for it, which is appropriate for web projects. Install Synthesis.Core if you only want the library.
18+
</summary>
19+
<releaseNotes>Cleanup and organization of versioning files</releaseNotes>
20+
<copyright>Copyright 2013</copyright>
21+
<tags>sitecore</tags>
22+
<dependencies>
23+
<dependency id="Synthesis.Core" version="5.0.2" />
24+
</dependencies>
25+
</metadata>
26+
<files>
27+
<file src="..\..\Source\Synthesis\Synthesis.config" target="content\App_Config\Include" />
28+
<file src="web.config.transform" target="content" />
29+
</files>
30+
</package>
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<configuration>
2+
<system.web>
3+
<httpModules>
4+
<add type="Synthesis.AutoSyncModule, Synthesis" name="Synthesis"/>
5+
</httpModules>
6+
<httpHandlers>
7+
<add verb="GET" path="synthesis.axd" type="Synthesis.HttpHandler, Synthesis" />
8+
</httpHandlers>
9+
</system.web>
10+
<system.webServer>
11+
<modules>
12+
<add type="Synthesis.AutoSyncModule, Synthesis" name="Synthesis"/>
13+
</modules>
14+
<handlers>
15+
<add name="Synthesis" path="synthesis.axd" verb="GET" type="Synthesis.HttpHandler, Synthesis"/>
16+
</handlers>
17+
</system.webServer>
18+
</configuration>

Dependencies/Libraries/README.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
To build this from source, place the Sitecore assemblies you want to build from in a Sitecore folder under here
2+
3+
e.g. /Dependencies/Libraries/Sitecore
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
These templates make it easy to create views, presenters, and models for Synthesis.Blade
2+
3+
To use them just place them in your Visual Studio user templates folder, e.g.
4+
5+
C:\Users\yourname\Documents\Visual Studio 2010\Templates\ItemTemplates\Blade
6+
7+
Then in VS go to add an item and you'll see a new Blade category in the add items window.
8+
9+
This template may be combined with the regular Blade templates in the same folder.
Binary file not shown.

Packages/repositories.config

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<repositories>
3+
<repository path="..\Source\Synthesis.Blade\packages.config" />
4+
<repository path="..\Source\Synthesis.Tests\packages.config" />
5+
</repositories>

0 commit comments

Comments
 (0)