Skip to content

Commit

Permalink
add build scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
tangxuehua committed Jun 14, 2013
1 parent b623680 commit 9615306
Show file tree
Hide file tree
Showing 11 changed files with 331 additions and 24 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
build
packages

# dotnet
%APPDATA%
TestResults
bin
obj
*.suo
*.user
*.sln.cache
*.nupkg
*.testsettings
*.vsmdi
TestResult.xml
1 change: 1 addition & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tools\nant\nant.exe %1 -D:args0=%2 -D:args1=%3 -D:runtime=dotnet
223 changes: 223 additions & 0 deletions license.txt

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions nant.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<project name="enode" default="clean">
<!--parameter-->
<property name="project.config" value="${args0}" dynamic="true" />

<!--path-->
<property name="dir" value="."/>
<property name="dir.tools" value=".\tools"/>
<property name="build.base" value="build/${project.config}"/>
<property name="build.absolutepath" value="${path::get-full-path(build.base)}" />

<!--nuget-->
<property name="nuget" value="${path::get-full-path(dir.tools)}" />
<property name="nuget.packages" value="${dir}\packages" />
<property name="nuget.cache" value="C:\Users\${environment::get-user-name()}\AppData\Local\NuGet\Cache" />
<property name="nuget.install" value="${dir}\nuget.install.bat" />
<property name="nuget.params.install" value="${nuget} ${path::get-full-path(nuget.packages)}" />

<!--clean-->
<target name="clean" description="clean build folder">
<delete dir="${build.absolutepath}"></delete>
</target>

<!--nuget-->
<target name="nuget" description="nuget install and update">
<delete dir="${nuget.packages}"></delete>
<delete dir="${nuget.cache}"></delete>
<exec program="${nuget.install}" commandline="${nuget.params.install}" workingdir="${dir}"></exec>
</target>
</project>
4 changes: 4 additions & 0 deletions nuget.install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
echo off
echo install
@forfiles /s /m packages.config /c "cmd /c %1\nuget install @file -o %2 -source http://nuget.org/api/v2"
echo on
29 changes: 29 additions & 0 deletions nugetSpec.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>enode</id>
<version>1.0.0.0</version>
<title>enode framework</title>
<authors>tangxuehua</authors>
<owners>tangxuehua</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>An open-source framework which provide the ability to develop ddd+cqrs+event sourcing+in memory style applications.</description>
<projectUrl>https://github.com/tangxuehua/enode</projectUrl>
<licenseUrl>https://github.com/tangxuehua/enode/blob/master/license.txt</licenseUrl>
<iconUrl>https://raw.github.com/tangxuehua/enode/master/doc/enode.png</iconUrl>
<tags>DDD EDA EventSourcing CQRS in-memory</tags>
<copyright>2013</copyright>
<language>zh-CN</language>
<dependencies>
<dependency id="log4net" version="2.0.0" />
<dependency id="mongocsharpdriver" version="1.8.1" />
<dependency id="Newtonsoft.Json" version="4.5.11" />
<dependency id="ServiceStack.Common" version="3.9.49" />
<dependency id="ServiceStack.Redis" version="3.9.49" />
<dependency id="ServiceStack.Text" version="3.9.49" />
</dependencies>
</metadata>
<files>
<file src="build\enode.dll" target="lib\net40\enode.dll" />
</files>
</package>
5 changes: 5 additions & 0 deletions pack.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
echo off
mkdir nupkgFiles
echo pack
forfiles /p .\ /m *.nuspec /c "cmd /c .\tools\nuget pack @file -outputdirectory nupkgFiles"
echo on
12 changes: 6 additions & 6 deletions src/ENode/packages.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.0" targetFramework="net40" />
<package id="mongocsharpdriver" version="1.8.1" targetFramework="net40" />
<package id="Newtonsoft.Json" version="4.5.11" targetFramework="net40" />
<package id="ServiceStack.Common" version="3.9.49" targetFramework="net40" />
<package id="ServiceStack.Redis" version="3.9.49" targetFramework="net40" />
<package id="ServiceStack.Text" version="3.9.49" targetFramework="net40" />
<package id="log4net" version="2.0.0" />
<package id="mongocsharpdriver" version="1.8.1" />
<package id="Newtonsoft.Json" version="4.5.11" />
<package id="ServiceStack.Common" version="3.9.49" />
<package id="ServiceStack.Redis" version="3.9.49" />
<package id="ServiceStack.Text" version="3.9.49" />
</packages>
12 changes: 6 additions & 6 deletions src/Samples/BankTransferSagaSample/packages.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.0" targetFramework="net40" />
<package id="mongocsharpdriver" version="1.8.1" targetFramework="net40" />
<package id="Newtonsoft.Json" version="4.5.11" targetFramework="net40" />
<package id="ServiceStack.Common" version="3.9.49" targetFramework="net40" />
<package id="ServiceStack.Redis" version="3.9.49" targetFramework="net40" />
<package id="ServiceStack.Text" version="3.9.49" targetFramework="net40" />
<package id="log4net" version="2.0.0" />
<package id="mongocsharpdriver" version="1.8.1" />
<package id="Newtonsoft.Json" version="4.5.11" />
<package id="ServiceStack.Common" version="3.9.49" />
<package id="ServiceStack.Redis" version="3.9.49" />
<package id="ServiceStack.Text" version="3.9.49" />
</packages>
12 changes: 6 additions & 6 deletions src/Samples/BankTransferSample/packages.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.0" targetFramework="net40" />
<package id="mongocsharpdriver" version="1.8.1" targetFramework="net40" />
<package id="Newtonsoft.Json" version="4.5.11" targetFramework="net40" />
<package id="ServiceStack.Common" version="3.9.49" targetFramework="net40" />
<package id="ServiceStack.Redis" version="3.9.49" targetFramework="net40" />
<package id="ServiceStack.Text" version="3.9.49" targetFramework="net40" />
<package id="log4net" version="2.0.0" />
<package id="mongocsharpdriver" version="1.8.1" />
<package id="Newtonsoft.Json" version="4.5.11" />
<package id="ServiceStack.Common" version="3.9.49" />
<package id="ServiceStack.Redis" version="3.9.49" />
<package id="ServiceStack.Text" version="3.9.49" />
</packages>
12 changes: 6 additions & 6 deletions src/Samples/NoteSample/packages.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.0" targetFramework="net40" />
<package id="mongocsharpdriver" version="1.8.1" targetFramework="net40" />
<package id="Newtonsoft.Json" version="4.5.11" targetFramework="net40" />
<package id="ServiceStack.Common" version="3.9.49" targetFramework="net40" />
<package id="ServiceStack.Redis" version="3.9.49" targetFramework="net40" />
<package id="ServiceStack.Text" version="3.9.49" targetFramework="net40" />
<package id="log4net" version="2.0.0" />
<package id="mongocsharpdriver" version="1.8.1" />
<package id="Newtonsoft.Json" version="4.5.11" />
<package id="ServiceStack.Common" version="3.9.49" />
<package id="ServiceStack.Redis" version="3.9.49" />
<package id="ServiceStack.Text" version="3.9.49" />
</packages>

0 comments on commit 9615306

Please sign in to comment.