Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

Commit

Permalink
[#449] [9.1] Added gulp targets for creating / removing BuildConfigur…
Browse files Browse the repository at this point in the history
…ation.csproj

* To allow building against internal Sitecore previews
  • Loading branch information
nickwesselman committed Nov 27, 2018
1 parent 0e85cb1 commit 9f43315
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ if (fs.existsSync("./gulp-config.js.user")) {
config = require("./gulp-config.js")();
}

var buildConfigurationCsproj = "BuildConfiguration.csproj";

module.exports.config = config;

helix.header("The Habitat source code, tools and processes are examples of Sitecore Helix.",
Expand Down Expand Up @@ -53,6 +55,28 @@ gulp.task("deploy",
/*****************************
Initial setup
*****************************/
gulp.task("References-Local",
function(callback) {
var buildConfig = `<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LocalReferences>true</LocalReferences>
<SitecorePath>${config.websiteRoot}</SitecorePath>
</PropertyGroup>
</Project>`;
return fs.writeFile(buildConfigurationCsproj, buildConfig, callback);
});

gulp.task("References-Nuget",
function(callback) {
return fs.exists(buildConfigurationCsproj, function(exists) {
if (!exists) {
return;
}
return fs.unlink(buildConfigurationCsproj, callback);
});
});

gulp.task("Publish-All-Projects",
function(callback) {
return runSequence(
Expand Down

0 comments on commit 9f43315

Please sign in to comment.