From 171a472966ded08a9b3a2eaa68678aca40e8931a Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Fri, 17 Jan 2014 17:52:26 +0100 Subject: [PATCH] Split out the Belle build and integrate it in the build of the Web.UI project --- build/Build.bat | 30 +--------------------- build/BuildBelle.bat | 32 ++++++++++++++++++++++++ src/Umbraco.Web.UI/Umbraco.Web.UI.csproj | 8 +++++- src/umbraco.sln | 4 +-- 4 files changed, 42 insertions(+), 32 deletions(-) create mode 100644 build/BuildBelle.bat diff --git a/build/Build.bat b/build/Build.bat index 867186ee3a..0c9b1f1ad2 100644 --- a/build/Build.bat +++ b/build/Build.bat @@ -8,36 +8,8 @@ ECHO Building Umbraco %version% ReplaceIISExpressPortNumber.exe ..\src\Umbraco.Web.UI\Umbraco.Web.UI.csproj %release% -SET nuGetFolder=%CD%\..\src\packages\ - -ECHO Installing Npm NuGet Package -..\src\.nuget\NuGet.exe install Npm.js -OutputDirectory %nuGetFolder% - -for /f "delims=" %%A in ('dir %nuGetFolder%node.js.* /b') do set "nodePath=%nuGetFolder%%%A\" -for /f "delims=" %%A in ('dir %nuGetFolder%npm.js.* /b') do set "npmPath=%nuGetFolder%%%A\tools\" - -ECHO Temporarily adding Npm and Node to path -SET oldPath=%PATH% - -path=%npmPath%;%nodePath%;%PATH% - -SET buildFolder="%CD%" - -ECHO Go to Umbraco.Web.UI.Client folder -CD ..\src\Umbraco.Web.UI.Client\ - -ECHO Do npm install and the grunt build of Belle -call npm install -call npm install -g grunt-cli -call grunt - -ECHO Reset path to what it was before -path=%oldPath% - -ECHO Move back to the build folder -CD %buildFolder% - ECHO Installing the Microsoft.Bcl.Build package before anything else, otherwise you'd have to run build.cmd twice +SET nuGetFolder=%CD%\..\src\packages\ ..\src\.nuget\NuGet.exe install ..\src\Umbraco.Web.UI\packages.config -OutputDirectory %nuGetFolder% ECHO Performing MSBuild and producing Umbraco binaries zip files diff --git a/build/BuildBelle.bat b/build/BuildBelle.bat new file mode 100644 index 0000000000..57af0b8ee9 --- /dev/null +++ b/build/BuildBelle.bat @@ -0,0 +1,32 @@ +@ECHO OFF +ECHO Installing Npm NuGet Package + +SET nuGetFolder=%CD%\..\src\packages\ +ECHO Configured packages folder: %nuGetFolder% +ECHO Current folder: %CD% + +%CD%\..\src\.nuget\NuGet.exe install Npm.js -OutputDirectory %nuGetFolder% + +for /f "delims=" %%A in ('dir %nuGetFolder%node.js.* /b') do set "nodePath=%nuGetFolder%%%A\" +for /f "delims=" %%A in ('dir %nuGetFolder%npm.js.* /b') do set "npmPath=%nuGetFolder%%%A\tools\" + +ECHO Temporarily adding Npm and Node to path +SET oldPath=%PATH% + +path=%npmPath%;%nodePath%;%PATH% + +SET buildFolder=%CD% + +ECHO Change directory to %CD%\..\src\Umbraco.Web.UI.Client\ +CD %CD%\..\src\Umbraco.Web.UI.Client\ + +ECHO Do npm install and the grunt build of Belle +call npm install +call npm install -g grunt-cli +call grunt + +ECHO Reset path to what it was before +path=%oldPath% + +ECHO Move back to the build folder +CD %buildFolder% \ No newline at end of file diff --git a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj index e68642c61f..ab7f865b06 100644 --- a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj +++ b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj @@ -2668,11 +2668,17 @@ xcopy "$(ProjectDir)"..\packages\SqlServerCE.4.0.0.0\x86\*.* "$(TargetDir)x86\" - + + + + + + + diff --git a/src/umbraco.sln b/src/umbraco.sln index e2eff7642e..60199204c4 100644 --- a/src/umbraco.sln +++ b/src/umbraco.sln @@ -2,6 +2,8 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2013 VisualStudioVersion = 12.0.21005.1 MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Umbraco.Web.UI", "Umbraco.Web.UI\Umbraco.Web.UI.csproj", "{4C4C194C-B5E4-4991-8F87-4373E24CC19F}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{2849E9D4-3B4E-40A3-A309-F3CB4F0E125F}" ProjectSection(SolutionItems) = preProject ..\build\Build.bat = ..\build\Build.bat @@ -26,8 +28,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NuSpecs", "NuSpecs", "{227C ..\build\NuSpecs\UmbracoCms.nuspec = ..\build\NuSpecs\UmbracoCms.nuspec EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Umbraco.Web.UI", "Umbraco.Web.UI\Umbraco.Web.UI.csproj", "{4C4C194C-B5E4-4991-8F87-4373E24CC19F}" -EndProject Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Umbraco.Web.UI.Client", "http://localhost:3961", "{3819A550-DCEC-4153-91B4-8BA9F7F0B9B4}" ProjectSection(WebsiteProperties) = preProject UseIISExpress = "true"