allen 0.1.5 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/.gitignore +0 -0
  2. data/.travis.yml +0 -0
  3. data/Gemfile +0 -0
  4. data/Guardfile +0 -0
  5. data/LICENSE +0 -0
  6. data/README.md +0 -0
  7. data/Rakefile +0 -0
  8. data/allen.gemspec +0 -0
  9. data/lib/allen/cli.rb +2 -0
  10. data/lib/allen/dsl.rb +0 -0
  11. data/lib/allen/preprocessors.rb +0 -0
  12. data/lib/allen/project.rb +0 -0
  13. data/lib/allen/rake.rb +0 -0
  14. data/lib/allen/settings.rb +0 -0
  15. data/lib/allen/task_definer.rb +0 -0
  16. data/lib/allen/version.rb +1 -1
  17. data/lib/allen.rb +0 -0
  18. data/lib/settings.rb +0 -0
  19. data/spec/lib/allen/dsl_spec.rb +0 -0
  20. data/spec/lib/allen/preprocessors_spec.rb +0 -0
  21. data/spec/lib/allen/project_spec.rb +0 -0
  22. data/spec/lib/allen/rake_spec.rb +0 -0
  23. data/spec/lib/allen/settings_spec.rb +0 -0
  24. data/spec/spec_helper.rb +0 -0
  25. data/templates/.gitignore +12 -5
  26. data/templates/Gemfile.tt +0 -0
  27. data/templates/README.md.tt +0 -0
  28. data/templates/Rakefile.tt +0 -0
  29. data/templates/src/%name%.Umbraco/%name%.Umbraco.csproj.tt +33 -15
  30. data/templates/src/%name%.Umbraco/App_Code/.gitkeep +0 -0
  31. data/templates/src/%name%.Umbraco/App_Data/.gitkeep +0 -0
  32. data/templates/src/%name%.Umbraco/App_Plugins/.gitkeep +0 -0
  33. data/templates/src/%name%.Umbraco/Properties/AssemblyInfo.cs.tt +7 -7
  34. data/templates/src/%name%.Umbraco/Web.Debug.config +25 -4
  35. data/templates/src/%name%.Umbraco/Web.Release.config +26 -1
  36. data/templates/src/%name%.Umbraco/Web.config +3 -2
  37. data/templates/src/%name%.Umbraco/assets/javascripts/app/application.coffee +1 -0
  38. data/templates/src/%name%.Umbraco/assets/stylesheets/app/application.less +1 -0
  39. data/templates/src/%name%.Umbraco/css/.gitkeep +0 -0
  40. data/templates/src/%name%.Umbraco/fonts/.gitkeep +0 -0
  41. data/templates/src/%name%.Umbraco/img/.gitkeep +0 -0
  42. data/templates/src/%name%.Umbraco/js/.gitkeep +0 -0
  43. data/templates/src/%name%.Umbraco/macroScripts/.gitkeep +0 -0
  44. data/templates/src/%name%.Umbraco/masterpages/.gitkeep +0 -0
  45. data/templates/src/%name%.Umbraco/usercontrols/.gitkeep +0 -0
  46. data/templates/src/%name%.Umbraco/xslt/.gitkeep +0 -0
  47. data/templates/src/%name%.Umbraco.Extensions/%name%.Umbraco.Extensions.csproj.tt +5 -6
  48. data/templates/src/%name%.Umbraco.Extensions/Properties/AssemblyInfo.cs.tt +7 -7
  49. data/templates/src/%name%.sln.tt +10 -3
  50. data/templates/src/.nuget/NuGet.Config +6 -0
  51. data/templates/src/.nuget/NuGet.exe +0 -0
  52. data/templates/src/.nuget/NuGet.targets +151 -0
  53. metadata +17 -1
data/.gitignore CHANGED
File without changes
data/.travis.yml CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/Guardfile CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
data/allen.gemspec CHANGED
File without changes
data/lib/allen/cli.rb CHANGED
@@ -19,8 +19,10 @@ module Allen
19
19
  @umbraco_assembly_guid = guid.downcase
20
20
  @umbraco_extensions_guid = guid
21
21
  @umbraco_extensions_assembly_guid = guid.downcase
22
+ @nuget_guid = guid
22
23
 
23
24
  directory 'src'
25
+ directory 'src/.nuget'
24
26
  template '.gitignore'
25
27
  template 'README.md.tt'
26
28
  template 'Rakefile.tt'
data/lib/allen/dsl.rb CHANGED
File without changes
File without changes
data/lib/allen/project.rb CHANGED
File without changes
data/lib/allen/rake.rb CHANGED
File without changes
File without changes
File without changes
data/lib/allen/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Allen
2
- VERSION = '0.1.5'
2
+ VERSION = '0.2.0'
3
3
  end
data/lib/allen.rb CHANGED
File without changes
data/lib/settings.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/spec/spec_helper.rb CHANGED
File without changes
data/templates/.gitignore CHANGED
@@ -9,11 +9,6 @@ Thumbs.db
9
9
  ehthumbs.db
10
10
  Desktop.ini
11
11
  $RECYCLE.BIN/
12
- *.orig
13
-
14
- .svn
15
- .hg
16
- .hgignore
17
12
 
18
13
  [Dd]ebug/
19
14
  [Bb]uild/
@@ -23,6 +18,8 @@ $RECYCLE.BIN/
23
18
  src/[Pp]ackages/
24
19
 
25
20
  *.aps
21
+ *.bak
22
+ *.backup
26
23
  *.build.csdef
27
24
  *.cache
28
25
  *.ilk
@@ -31,6 +28,7 @@ src/[Pp]ackages/
31
28
  *.meta
32
29
  *.ncb
33
30
  *.obj
31
+ *.orig
34
32
  *.pch
35
33
  *.pdb
36
34
  *.pgc
@@ -38,6 +36,7 @@ src/[Pp]ackages/
38
36
  *.rsp
39
37
  *.sbr
40
38
  *.scc
39
+ *.sdf
41
40
  *.sln.docstates
42
41
  *.suo
43
42
  *.tlb
@@ -50,9 +49,17 @@ src/[Pp]ackages/
50
49
  *_i.c
51
50
  *_p.c
52
51
  .builds
52
+ .svn
53
+ .hg
54
+ .hgignore
55
+
56
+ version
57
+ commit-hash
58
+ dummy.txt
53
59
 
54
60
  src/*.Umbraco/App_Data/ClientDependency/
55
61
  src/*.Umbraco/App_Data/ExamineIndexes/
62
+ src/*.Umbraco/App_Data/Logs/
56
63
  src/*.Umbraco/App_Data/TEMP/
57
64
  src/*.Umbraco/App_Data/preview/
58
65
  src/*.Umbraco/App_Data/umbraco.config
data/templates/Gemfile.tt CHANGED
File without changes
File without changes
File without changes
@@ -1,5 +1,6 @@
1
- <?xml version="1.0" encoding="utf-8"?>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
2
  <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
3
4
  <PropertyGroup>
4
5
  <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5
6
  <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -12,8 +13,12 @@
12
13
  <AppDesignerFolder>Properties</AppDesignerFolder>
13
14
  <RootNamespace><%= @name %>.Umbraco</RootNamespace>
14
15
  <AssemblyName><%= @name %>.Umbraco</AssemblyName>
15
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
16
- <UseIISExpress>false</UseIISExpress>
16
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
17
+ <UseIISExpress>true</UseIISExpress>
18
+ <IISExpressSSLPort />
19
+ <IISExpressAnonymousAuthentication />
20
+ <IISExpressWindowsAuthentication />
21
+ <IISExpressUseClassicPipelineMode />
17
22
  </PropertyGroup>
18
23
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19
24
  <DebugSymbols>true</DebugSymbols>
@@ -37,6 +42,7 @@
37
42
  <Reference Include="System.Web.DynamicData" />
38
43
  <Reference Include="System.Web.Entity" />
39
44
  <Reference Include="System.Web.ApplicationServices" />
45
+ <Reference Include="System.ComponentModel.DataAnnotations" />
40
46
  <Reference Include="System" />
41
47
  <Reference Include="System.Data" />
42
48
  <Reference Include="System.Core" />
@@ -52,28 +58,40 @@
52
58
  </ItemGroup>
53
59
  <ItemGroup>
54
60
  <Content Include="Web.config" />
55
- <Content Include="Web.Debug.config">
61
+ </ItemGroup>
62
+ <ItemGroup>
63
+ <Compile Include="Properties\AssemblyInfo.cs" />
64
+ </ItemGroup>
65
+ <ItemGroup>
66
+ <None Include="Web.Debug.config">
56
67
  <DependentUpon>Web.config</DependentUpon>
57
- </Content>
58
- <Content Include="Web.Release.config">
68
+ </None>
69
+ <None Include="Web.Release.config">
59
70
  <DependentUpon>Web.config</DependentUpon>
60
- </Content>
71
+ </None>
61
72
  </ItemGroup>
62
73
  <ItemGroup>
63
- <Compile Include="Properties\AssemblyInfo.cs" />
74
+ <ProjectReference Include="..\<%= @name %>.Umbraco.Extensions\<%= @name %>.Umbraco.Extensions.csproj">
75
+ <Project>{<%= @umbraco_extensions_guid %>}</Project>
76
+ <Name><%= @name %>.Umbraco.Extensions</Name>
77
+ </ProjectReference>
64
78
  </ItemGroup>
79
+ <PropertyGroup>
80
+ <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
81
+ <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
82
+ </PropertyGroup>
65
83
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
66
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
84
+ <Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
85
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
67
86
  <ProjectExtensions>
68
87
  <VisualStudio>
69
88
  <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
70
89
  <WebProjectProperties>
71
- <UseIIS>False</UseIIS>
90
+ <UseIIS>True</UseIIS>
72
91
  <AutoAssignPort>True</AutoAssignPort>
73
- <DevelopmentServerPort>49506</DevelopmentServerPort>
92
+ <DevelopmentServerPort>0</DevelopmentServerPort>
74
93
  <DevelopmentServerVPath>/</DevelopmentServerVPath>
75
- <IISUrl>
76
- </IISUrl>
94
+ <IISUrl>http://localhost:51957/</IISUrl>
77
95
  <NTLMAuthentication>False</NTLMAuthentication>
78
96
  <UseCustomServer>False</UseCustomServer>
79
97
  <CustomServerUrl>
@@ -83,11 +101,11 @@
83
101
  </FlavorProperties>
84
102
  </VisualStudio>
85
103
  </ProjectExtensions>
86
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
104
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
87
105
  Other similar extension points exist, see Microsoft.Common.targets.
88
106
  <Target Name="BeforeBuild">
89
107
  </Target>
90
108
  <Target Name="AfterBuild">
91
109
  </Target>
92
110
  -->
93
- </Project>
111
+ </Project>
File without changes
File without changes
File without changes
@@ -1,8 +1,8 @@
1
- using System.Reflection;
1
+ using System.Reflection;
2
2
  using System.Runtime.CompilerServices;
3
3
  using System.Runtime.InteropServices;
4
4
 
5
- // General Information about an assembly is controlled through the following
5
+ // General Information about an assembly is controlled through the following
6
6
  // set of attributes. Change these attribute values to modify the information
7
7
  // associated with an assembly.
8
8
  [assembly: AssemblyTitle("<%= @name %>.Umbraco")]
@@ -10,12 +10,12 @@ using System.Runtime.InteropServices;
10
10
  [assembly: AssemblyConfiguration("")]
11
11
  [assembly: AssemblyCompany("")]
12
12
  [assembly: AssemblyProduct("<%= @name %>.Umbraco")]
13
- [assembly: AssemblyCopyright("Copyright © 2012")]
13
+ [assembly: AssemblyCopyright("Copyright © 2013")]
14
14
  [assembly: AssemblyTrademark("")]
15
15
  [assembly: AssemblyCulture("")]
16
16
 
17
- // Setting ComVisible to false makes the types in this assembly not visible
18
- // to COM components. If you need to access a type in this assembly from
17
+ // Setting ComVisible to false makes the types in this assembly not visible
18
+ // to COM components. If you need to access a type in this assembly from
19
19
  // COM, set the ComVisible attribute to true on that type.
20
20
  [assembly: ComVisible(false)]
21
21
 
@@ -25,11 +25,11 @@ using System.Runtime.InteropServices;
25
25
  // Version information for an assembly consists of the following four values:
26
26
  //
27
27
  // Major Version
28
- // Minor Version
28
+ // Minor Version
29
29
  // Build Number
30
30
  // Revision
31
31
  //
32
- // You can specify all the values or you can default the Revision and Build Numbers
32
+ // You can specify all the values or you can default the Revision and Build Numbers
33
33
  // by using the '*' as shown below:
34
34
  [assembly: AssemblyVersion("1.0.0.0")]
35
35
  [assembly: AssemblyFileVersion("1.0.0.0")]
@@ -1,9 +1,30 @@
1
- <?xml version="1.0"?>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+
3
+ <!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
4
+
2
5
  <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
3
- <add key="umbracoDebugMode" value="true" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
6
+ <!--
7
+ In the example below, the "SetAttributes" transform will change the value of
8
+ "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
9
+ finds an attribute "name" that has a value of "MyDB".
4
10
 
11
+ <connectionStrings>
12
+ <add name="MyDB"
13
+ connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
14
+ xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
15
+ </connectionStrings>
16
+ -->
5
17
  <system.web>
6
- <customErrors mode="Off" xdt:Transform="SetAttributes(mode)"/>
7
- <compilation debug="true" xdt:Transform="SetAttributes(debug)"/>
18
+ <!--
19
+ In the example below, the "Replace" transform will replace the entire
20
+ <customErrors> section of your web.config file.
21
+ Note that because there is only one customErrors section under the
22
+ <system.web> node, there is no need to use the "xdt:Locator" attribute.
23
+
24
+ <customErrors defaultRedirect="GenericError.htm"
25
+ mode="RemoteOnly" xdt:Transform="Replace">
26
+ <error statusCode="500" redirect="InternalError.htm"/>
27
+ </customErrors>
28
+ -->
8
29
  </system.web>
9
30
  </configuration>
@@ -1,6 +1,31 @@
1
- <?xml version="1.0"?>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+
3
+ <!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
4
+
2
5
  <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
6
+ <!--
7
+ In the example below, the "SetAttributes" transform will change the value of
8
+ "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
9
+ finds an attribute "name" that has a value of "MyDB".
10
+
11
+ <connectionStrings>
12
+ <add name="MyDB"
13
+ connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
14
+ xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
15
+ </connectionStrings>
16
+ -->
3
17
  <system.web>
4
18
  <compilation xdt:Transform="RemoveAttributes(debug)" />
19
+ <!--
20
+ In the example below, the "Replace" transform will replace the entire
21
+ <customErrors> section of your web.config file.
22
+ Note that because there is only one customErrors section under the
23
+ <system.web> node, there is no need to use the "xdt:Locator" attribute.
24
+
25
+ <customErrors defaultRedirect="GenericError.htm"
26
+ mode="RemoteOnly" xdt:Transform="Replace">
27
+ <error statusCode="500" redirect="InternalError.htm"/>
28
+ </customErrors>
29
+ -->
5
30
  </system.web>
6
31
  </configuration>
@@ -1,4 +1,4 @@
1
- <?xml version="1.0"?>
1
+ <?xml version="1.0"?>
2
2
 
3
3
  <!--
4
4
  For more information on how to configure your ASP.NET application, please visit
@@ -7,7 +7,8 @@
7
7
 
8
8
  <configuration>
9
9
  <system.web>
10
- <compilation debug="true" targetFramework="4.0" />
10
+ <compilation debug="true" targetFramework="4.5" />
11
+ <httpRuntime targetFramework="4.5" />
11
12
  </system.web>
12
13
 
13
14
  </configuration>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,16 +1,15 @@
1
- <?xml version="1.0" encoding="utf-8"?>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
2
  <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
3
4
  <PropertyGroup>
4
5
  <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5
6
  <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6
- <ProductVersion>8.0.30703</ProductVersion>
7
- <SchemaVersion>2.0</SchemaVersion>
8
7
  <ProjectGuid>{<%= @umbraco_extensions_guid %>}</ProjectGuid>
9
8
  <OutputType>Library</OutputType>
10
9
  <AppDesignerFolder>Properties</AppDesignerFolder>
11
10
  <RootNamespace><%= @name %>.Umbraco.Extensions</RootNamespace>
12
11
  <AssemblyName><%= @name %>.Umbraco.Extensions</AssemblyName>
13
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
12
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
14
13
  <FileAlignment>512</FileAlignment>
15
14
  </PropertyGroup>
16
15
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -43,11 +42,11 @@
43
42
  <Compile Include="Properties\AssemblyInfo.cs" />
44
43
  </ItemGroup>
45
44
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
46
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
45
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
47
46
  Other similar extension points exist, see Microsoft.Common.targets.
48
47
  <Target Name="BeforeBuild">
49
48
  </Target>
50
49
  <Target Name="AfterBuild">
51
50
  </Target>
52
51
  -->
53
- </Project>
52
+ </Project>
@@ -1,8 +1,8 @@
1
- using System.Reflection;
1
+ using System.Reflection;
2
2
  using System.Runtime.CompilerServices;
3
3
  using System.Runtime.InteropServices;
4
4
 
5
- // General Information about an assembly is controlled through the following
5
+ // General Information about an assembly is controlled through the following
6
6
  // set of attributes. Change these attribute values to modify the information
7
7
  // associated with an assembly.
8
8
  [assembly: AssemblyTitle("<%= @name %>.Umbraco.Extensions")]
@@ -10,12 +10,12 @@ using System.Runtime.InteropServices;
10
10
  [assembly: AssemblyConfiguration("")]
11
11
  [assembly: AssemblyCompany("")]
12
12
  [assembly: AssemblyProduct("<%= @name %>.Umbraco.Extensions")]
13
- [assembly: AssemblyCopyright("Copyright © 2012")]
13
+ [assembly: AssemblyCopyright("Copyright © 2013")]
14
14
  [assembly: AssemblyTrademark("")]
15
15
  [assembly: AssemblyCulture("")]
16
16
 
17
- // Setting ComVisible to false makes the types in this assembly not visible
18
- // to COM components. If you need to access a type in this assembly from
17
+ // Setting ComVisible to false makes the types in this assembly not visible
18
+ // to COM components. If you need to access a type in this assembly from
19
19
  // COM, set the ComVisible attribute to true on that type.
20
20
  [assembly: ComVisible(false)]
21
21
 
@@ -25,11 +25,11 @@ using System.Runtime.InteropServices;
25
25
  // Version information for an assembly consists of the following four values:
26
26
  //
27
27
  // Major Version
28
- // Minor Version
28
+ // Minor Version
29
29
  // Build Number
30
30
  // Revision
31
31
  //
32
- // You can specify all the values or you can default the Build and Revision Numbers
32
+ // You can specify all the values or you can default the Build and Revision Numbers
33
33
  // by using the '*' as shown below:
34
34
  // [assembly: AssemblyVersion("1.0.*")]
35
35
  [assembly: AssemblyVersion("1.0.0.0")]
@@ -1,10 +1,17 @@
1
- 
2
- Microsoft Visual Studio Solution File, Format Version 11.00
3
- # Visual Studio 2010
1
+
2
+ Microsoft Visual Studio Solution File, Format Version 12.00
3
+ # Visual Studio 2012
4
4
  Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "<%= @name %>.Umbraco", "<%= @name %>.Umbraco\<%= @name %>.Umbraco.csproj", "{<%= @umbraco_guid %>}"
5
5
  EndProject
6
6
  Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "<%= @name %>.Umbraco.Extensions", "<%= @name %>.Umbraco.Extensions\<%= @name %>.Umbraco.Extensions.csproj", "{<%= @umbraco_extensions_guid %>}"
7
7
  EndProject
8
+ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{<%= @nuget_guid %>}"
9
+ ProjectSection(SolutionItems) = preProject
10
+ .nuget\NuGet.Config = .nuget\NuGet.Config
11
+ .nuget\NuGet.exe = .nuget\NuGet.exe
12
+ .nuget\NuGet.targets = .nuget\NuGet.targets
13
+ EndProjectSection
14
+ EndProject
8
15
  Global
9
16
  GlobalSection(SolutionConfigurationPlatforms) = preSolution
10
17
  Debug|Any CPU = Debug|Any CPU
@@ -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>
Binary file
@@ -0,0 +1,151 @@
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)' == '' ">true</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' ">false</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
+ <!-- Commands -->
52
+ <RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(RequireConsentSwitch) -solutionDir "$(SolutionDir) "</RestoreCommand>
53
+ <BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
54
+
55
+ <!-- We need to ensure packages are restored prior to assembly resolve -->
56
+ <BuildDependsOn Condition="$(RestorePackages) == 'true'">
57
+ RestorePackages;
58
+ $(BuildDependsOn);
59
+ </BuildDependsOn>
60
+
61
+ <!-- Make the build depend on restore packages -->
62
+ <BuildDependsOn Condition="$(BuildPackage) == 'true'">
63
+ $(BuildDependsOn);
64
+ BuildPackage;
65
+ </BuildDependsOn>
66
+ </PropertyGroup>
67
+
68
+ <Target Name="CheckPrerequisites">
69
+ <!-- Raise an error if we're unable to locate nuget.exe -->
70
+ <Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
71
+ <SetEnvironmentVariable EnvKey="VisualStudioVersion" EnvValue="$(VisualStudioVersion)" Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' " />
72
+ <!--
73
+ Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
74
+ This effectively acts as a lock that makes sure that the download operation will only happen once and all
75
+ parallel builds will have to wait for it to complete.
76
+ -->
77
+ <MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT" />
78
+ </Target>
79
+
80
+ <Target Name="_DownloadNuGet">
81
+ <DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
82
+ </Target>
83
+
84
+ <Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
85
+ <Exec Command="$(RestoreCommand)"
86
+ Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
87
+
88
+ <Exec Command="$(RestoreCommand)"
89
+ LogStandardErrorAsError="true"
90
+ Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
91
+ </Target>
92
+
93
+ <Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
94
+ <Exec Command="$(BuildCommand)"
95
+ Condition=" '$(OS)' != 'Windows_NT' " />
96
+
97
+ <Exec Command="$(BuildCommand)"
98
+ LogStandardErrorAsError="true"
99
+ Condition=" '$(OS)' == 'Windows_NT' " />
100
+ </Target>
101
+
102
+ <UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
103
+ <ParameterGroup>
104
+ <OutputFilename ParameterType="System.String" Required="true" />
105
+ </ParameterGroup>
106
+ <Task>
107
+ <Reference Include="System.Core" />
108
+ <Using Namespace="System" />
109
+ <Using Namespace="System.IO" />
110
+ <Using Namespace="System.Net" />
111
+ <Using Namespace="Microsoft.Build.Framework" />
112
+ <Using Namespace="Microsoft.Build.Utilities" />
113
+ <Code Type="Fragment" Language="cs">
114
+ <![CDATA[
115
+ try {
116
+ OutputFilename = Path.GetFullPath(OutputFilename);
117
+
118
+ Log.LogMessage("Downloading latest version of NuGet.exe...");
119
+ WebClient webClient = new WebClient();
120
+ webClient.DownloadFile("https://nuget.org/nuget.exe", OutputFilename);
121
+
122
+ return true;
123
+ }
124
+ catch (Exception ex) {
125
+ Log.LogErrorFromException(ex);
126
+ return false;
127
+ }
128
+ ]]>
129
+ </Code>
130
+ </Task>
131
+ </UsingTask>
132
+
133
+ <UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
134
+ <ParameterGroup>
135
+ <EnvKey ParameterType="System.String" Required="true" />
136
+ <EnvValue ParameterType="System.String" Required="true" />
137
+ </ParameterGroup>
138
+ <Task>
139
+ <Using Namespace="System" />
140
+ <Code Type="Fragment" Language="cs">
141
+ <![CDATA[
142
+ try {
143
+ Environment.SetEnvironmentVariable(EnvKey, EnvValue, System.EnvironmentVariableTarget.Process);
144
+ }
145
+ catch {
146
+ }
147
+ ]]>
148
+ </Code>
149
+ </Task>
150
+ </UsingTask>
151
+ </Project>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -213,11 +213,27 @@ files:
213
213
  - templates/src/%name%.Umbraco.Extensions/%name%.Umbraco.Extensions.csproj.tt
214
214
  - templates/src/%name%.Umbraco.Extensions/Properties/AssemblyInfo.cs.tt
215
215
  - templates/src/%name%.Umbraco/%name%.Umbraco.csproj.tt
216
+ - templates/src/%name%.Umbraco/App_Code/.gitkeep
217
+ - templates/src/%name%.Umbraco/App_Data/.gitkeep
218
+ - templates/src/%name%.Umbraco/App_Plugins/.gitkeep
216
219
  - templates/src/%name%.Umbraco/Properties/AssemblyInfo.cs.tt
217
220
  - templates/src/%name%.Umbraco/Web.Debug.config
218
221
  - templates/src/%name%.Umbraco/Web.Release.config
219
222
  - templates/src/%name%.Umbraco/Web.config
223
+ - templates/src/%name%.Umbraco/assets/javascripts/app/application.coffee
224
+ - templates/src/%name%.Umbraco/assets/stylesheets/app/application.less
225
+ - templates/src/%name%.Umbraco/css/.gitkeep
226
+ - templates/src/%name%.Umbraco/fonts/.gitkeep
227
+ - templates/src/%name%.Umbraco/img/.gitkeep
228
+ - templates/src/%name%.Umbraco/js/.gitkeep
229
+ - templates/src/%name%.Umbraco/macroScripts/.gitkeep
230
+ - templates/src/%name%.Umbraco/masterpages/.gitkeep
231
+ - templates/src/%name%.Umbraco/usercontrols/.gitkeep
232
+ - templates/src/%name%.Umbraco/xslt/.gitkeep
220
233
  - templates/src/%name%.sln.tt
234
+ - templates/src/.nuget/NuGet.Config
235
+ - templates/src/.nuget/NuGet.exe
236
+ - templates/src/.nuget/NuGet.targets
221
237
  homepage: http://github.com/imulus/allen
222
238
  licenses: []
223
239
  post_install_message: