From 4a0dc162065d1293150f250032392b92dee43825 Mon Sep 17 00:00:00 2001 From: Anders Laub Date: Sun, 18 Feb 2018 14:04:10 +0100 Subject: [PATCH] updated npm packages and removed unused dependencies - now supports latest nodejs v. - a lot more cleaning coming up --- gulpfile.js | 577 +++++++++++++++++++++++++---------------------- package.json | 40 ++-- scripts/helix.js | 32 +-- 3 files changed, 342 insertions(+), 307 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index fb771a6454..a73d71e404 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,24 +1,24 @@ /// -var gulp = require("gulp"); -var msbuild = require("gulp-msbuild"); -var debug = require("gulp-debug"); -var foreach = require("gulp-foreach"); -var rename = require("gulp-rename"); -var newer = require("gulp-newer"); -var util = require("gulp-util"); -var runSequence = require("run-sequence"); -var nugetRestore = require('gulp-nuget-restore'); -var fs = require('fs'); -var yargs = require("yargs").argv; -var unicorn = require("./scripts/unicorn.js"); -var habitat = require("./scripts/habitat.js"); -var helix = require("./scripts/helix.js"); +var gulp = require("gulp"), + msbuild = require("gulp-msbuild"), + debug = require("gulp-debug"), + foreach = require("gulp-foreach"), + rename = require("gulp-rename"), + newer = require("gulp-newer"), + log = require("fancy-log"), + listStream = require('list-stream'), + runSequence = require("run-sequence"), + nugetRestore = require('gulp-nuget-restore'), + fs = require('fs'), + yargs = require("yargs").argv, + unicorn = require("./scripts/unicorn.js"), + habitat = require("./scripts/habitat.js"), + helix = require("./scripts/helix.js"); var config; if (fs.existsSync('./gulp-config.js.user')) { config = require("./gulp-config.js.user")(); -} -else { +} else { config = require("./gulp-config.js")() } @@ -27,307 +27,343 @@ module.exports.config = config; helix.header("The Habitat source code, tools and processes are examples of Sitecore Helix.", "Habitat is not supported by Sitecore and should be used at your own risk."); gulp.task("default", function (callback) { - config.runCleanBuilds = true; - return runSequence( - "01-Copy-Sitecore-License", - "02-Nuget-Restore", - "03-Publish-All-Projects", - "04-Apply-Xml-Transform", - "05-Sync-Unicorn", - "06-Deploy-Transforms", - callback); + config.runCleanBuilds = true; + return runSequence( + "01-Copy-Sitecore-License", + "02-Nuget-Restore", + "03-Publish-All-Projects", + "04-Apply-Xml-Transform", + "05-Sync-Unicorn", + "06-Deploy-Transforms", + callback); }); gulp.task("deploy", function (callback) { - config.runCleanBuilds = true; - return runSequence( - "01-Copy-Sitecore-License", - "02-Nuget-Restore", - "03-Publish-All-Projects", - "04-Apply-Xml-Transform", - "06-Deploy-Transforms", - callback); + config.runCleanBuilds = true; + return runSequence( + "01-Copy-Sitecore-License", + "02-Nuget-Restore", + "03-Publish-All-Projects", + "04-Apply-Xml-Transform", + "06-Deploy-Transforms", + callback); }); /***************************** Initial setup *****************************/ gulp.task("01-Copy-Sitecore-License", function () { - console.log("Copying Sitecore License file"); + console.log("Copying Sitecore License file"); - return gulp.src(config.licensePath).pipe(gulp.dest("./lib")); + return gulp.src(config.licensePath).pipe(gulp.dest("./lib")); }); gulp.task("02-Nuget-Restore", function (callback) { - var solution = "./" + config.solutionName + ".sln"; - return gulp.src(solution).pipe(nugetRestore()); + var solution = "./" + config.solutionName + ".sln"; + return gulp.src(solution).pipe(nugetRestore()); }); gulp.task("03-Publish-All-Projects", function (callback) { - return runSequence( - "Build-Solution", - "Publish-Foundation-Projects", - "Publish-Feature-Projects", - "Publish-Project-Projects", callback); + return runSequence( + "Build-Solution", + "Publish-Foundation-Projects", + "Publish-Feature-Projects", + "Publish-Project-Projects", callback); }); gulp.task("04-Apply-Xml-Transform", function () { - var layerPathFilters = ["./src/Foundation/**/*.transform", "./src/Feature/**/*.transform", "./src/Project/**/*.transform", "!./src/**/obj/**/*.transform", "!./src/**/bin/**/*.transform"]; - return gulp.src(layerPathFilters) - .pipe(foreach(function (stream, file) { - var fileToTransform = file.path.replace(/.+code\\(.+)\.transform/, "$1"); - util.log("Applying configuration transform: " + file.path); - return gulp.src("./scripts/applytransform.targets") - .pipe(msbuild({ - targets: ["ApplyTransform"], - configuration: config.buildConfiguration, - logCommand: false, - verbosity: config.buildVerbosity, - stdout: true, - errorOnFail: true, - maxcpucount: config.buildMaxCpuCount, - nodeReuse: false, - toolsVersion: config.buildToolsVersion, - properties: { - Platform: config.buildPlatform, - WebConfigToTransform: config.websiteRoot, - TransformFile: file.path, - FileToTransform: fileToTransform - } + var layerPathFilters = ["./src/Foundation/**/*.transform", "./src/Feature/**/*.transform", "./src/Project/**/*.transform", "!./src/**/obj/**/*.transform", "!./src/**/bin/**/*.transform"]; + return gulp.src(layerPathFilters) + .pipe(foreach(function (stream, file) { + var fileToTransform = file.path.replace(/.+code\\(.+)\.transform/, "$1"); + log("Applying configuration transform: " + file.path); + return gulp.src("./scripts/applytransform.targets") + .pipe(msbuild({ + targets: ["ApplyTransform"], + configuration: config.buildConfiguration, + logCommand: false, + verbosity: config.buildVerbosity, + stdout: true, + errorOnFail: true, + maxcpucount: config.buildMaxCpuCount, + nodeReuse: false, + toolsVersion: config.buildToolsVersion, + properties: { + Platform: config.buildPlatform, + WebConfigToTransform: config.websiteRoot, + TransformFile: file.path, + FileToTransform: fileToTransform + } + })); })); - })); }); gulp.task("05-Sync-Unicorn", function (callback) { - var options = {}; - options.siteHostName = habitat.getSiteUrl(); - options.authenticationConfigFile = config.websiteRoot + "/App_config/Include/Unicorn.SharedSecret.config"; + var options = {}; + options.siteHostName = habitat.getSiteUrl(); + options.authenticationConfigFile = config.websiteRoot + "/App_config/Include/Unicorn.SharedSecret.config"; - unicorn(function() { return callback() }, options); + unicorn(function () { + return callback() + }, options); }); gulp.task("06-Deploy-Transforms", function () { - return gulp.src("./src/**/code/**/*.transform") - .pipe(gulp.dest(config.websiteRoot + "/temp/transforms")); + return gulp.src("./src/**/code/**/*.transform") + .pipe(gulp.dest(config.websiteRoot + "/temp/transforms")); }); /***************************** Copy assemblies to all local projects *****************************/ gulp.task("Copy-Local-Assemblies", function () { - console.log("Copying site assemblies to all local projects"); - var files = config.sitecoreLibraries + "/**/*"; - - var root = "./src"; - var projects = root + "/**/code/bin"; - return gulp.src(projects, { base: root }) - .pipe(foreach(function (stream, file) { - console.log("copying to " + file.path); - gulp.src(files) - .pipe(gulp.dest(file.path)); - return stream; - })); + console.log("Copying site assemblies to all local projects"); + var files = config.sitecoreLibraries + "/**/*"; + + var root = "./src"; + var projects = root + "/**/code/bin"; + return gulp.src(projects, { + base: root + }) + .pipe(foreach(function (stream, file) { + console.log("copying to " + file.path); + gulp.src(files) + .pipe(gulp.dest(file.path)); + return stream; + })); }); /***************************** Publish *****************************/ var publishStream = function (stream, dest) { - var targets = ["Build"]; - - return stream - .pipe(debug({ title: "Building project:" })) - .pipe(msbuild({ - targets: targets, - configuration: config.buildConfiguration, - logCommand: false, - verbosity: config.buildVerbosity, - stdout: true, - errorOnFail: true, - maxcpucount: config.buildMaxCpuCount, - nodeReuse: false, - toolsVersion: config.buildToolsVersion, - properties: { - Platform: config.publishPlatform, - DeployOnBuild: "true", - DeployDefaultTarget: "WebPublish", - WebPublishMethod: "FileSystem", - DeleteExistingFiles: "false", - publishUrl: dest, - _FindDependencies: "false" - } - })); + var targets = ["Build"]; + + return stream + .pipe(debug({ + title: "Building project:" + })) + .pipe(msbuild({ + targets: targets, + configuration: config.buildConfiguration, + logCommand: false, + verbosity: config.buildVerbosity, + stdout: true, + errorOnFail: true, + maxcpucount: config.buildMaxCpuCount, + nodeReuse: false, + toolsVersion: config.buildToolsVersion, + properties: { + Platform: config.publishPlatform, + DeployOnBuild: "true", + DeployDefaultTarget: "WebPublish", + WebPublishMethod: "FileSystem", + DeleteExistingFiles: "false", + publishUrl: dest, + _FindDependencies: "false" + } + })); } var publishProject = function (location, dest) { - dest = dest || config.websiteRoot; + dest = dest || config.websiteRoot; - console.log("publish to " + dest + " folder"); - return gulp.src(["./src/" + location + "/code/*.csproj"]) - .pipe(foreach(function (stream, file) { - return publishStream(stream, dest); - })); + console.log("publish to " + dest + " folder"); + return gulp.src(["./src/" + location + "/code/*.csproj"]) + .pipe(foreach(function (stream, file) { + return publishStream(stream, dest); + })); } var publishProjects = function (location, dest) { - dest = dest || config.websiteRoot; + dest = dest || config.websiteRoot; - console.log("publish to " + dest + " folder"); - return gulp.src([location + "/**/code/*.csproj"]) - .pipe(foreach(function (stream, file) { - return publishStream(stream, dest); - })); + console.log("publish to " + dest + " folder"); + return gulp.src([location + "/**/code/*.csproj"]) + .pipe(foreach(function (stream, file) { + return publishStream(stream, dest); + })); }; gulp.task("Build-Solution", function () { - var targets = ["Build"]; - if (config.runCleanBuilds) { - targets = ["Clean", "Build"]; - } - - var solution = "./" + config.solutionName + ".sln"; - return gulp.src(solution) - .pipe(msbuild({ - targets: targets, - configuration: config.buildConfiguration, - logCommand: false, - verbosity: config.buildVerbosity, - stdout: true, - errorOnFail: true, - maxcpucount: config.buildMaxCpuCount, - nodeReuse: false, - toolsVersion: config.buildToolsVersion, - properties: { - Platform: config.buildPlatform - } + var targets = ["Build"]; + if (config.runCleanBuilds) { + targets = ["Clean", "Build"]; + } + + var solution = "./" + config.solutionName + ".sln"; + return gulp.src(solution) + .pipe(msbuild({ + targets: targets, + configuration: config.buildConfiguration, + logCommand: false, + verbosity: config.buildVerbosity, + stdout: true, + errorOnFail: true, + maxcpucount: config.buildMaxCpuCount, + nodeReuse: false, + toolsVersion: config.buildToolsVersion, + properties: { + Platform: config.buildPlatform + } })); }); gulp.task("Publish-Foundation-Projects", function () { - return publishProjects("./src/Foundation"); + return publishProjects("./src/Foundation"); }); gulp.task("Publish-Feature-Projects", function () { - return publishProjects("./src/Feature"); + return publishProjects("./src/Feature"); }); gulp.task("Publish-Project-Projects", function () { - return publishProjects("./src/Project"); + return publishProjects("./src/Project"); }); gulp.task("Publish-Project", function () { - if(yargs && yargs.m && typeof(yargs.m) == 'string') { - return publishProject(yargs.m); - } else { - throw "\n\n------\n USAGE: -m Layer/Module \n------\n\n"; - } + if (yargs && yargs.m && typeof (yargs.m) == 'string') { + return publishProject(yargs.m); + } else { + throw "\n\n------\n USAGE: -m Layer/Module \n------\n\n"; + } }); gulp.task("Publish-Assemblies", function () { - var root = "./src"; - var binFiles = root + "/**/code/**/bin/Sitecore.{Feature,Foundation,Habitat}.*.{dll,pdb}"; - var destination = config.websiteRoot + "/bin/"; - return gulp.src(binFiles, { base: root }) - .pipe(rename({ dirname: "" })) - .pipe(newer(destination)) - .pipe(debug({ title: "Copying " })) - .pipe(gulp.dest(destination)); + var root = "./src"; + var binFiles = root + "/**/code/**/bin/Sitecore.{Feature,Foundation,Habitat}.*.{dll,pdb}"; + var destination = config.websiteRoot + "/bin/"; + return gulp.src(binFiles, { + base: root + }) + .pipe(rename({ + dirname: "" + })) + .pipe(newer(destination)) + .pipe(debug({ + title: "Copying " + })) + .pipe(gulp.dest(destination)); }); gulp.task("Publish-All-Views", function () { - var root = "./src"; - var roots = [root + "/**/Views", "!" + root + "/**/obj/**/Views"]; - var files = "/**/*.cshtml"; - var destination = config.websiteRoot + "\\Views"; - return gulp.src(roots, { base: root }).pipe( - foreach(function (stream, file) { - console.log("Publishing from " + file.path); - gulp.src(file.path + files, { base: file.path }) - .pipe(newer(destination)) - .pipe(debug({ title: "Copying " })) - .pipe(gulp.dest(destination)); - return stream; - }) - ); + var root = "./src"; + var roots = [root + "/**/Views", "!" + root + "/**/obj/**/Views"]; + var files = "/**/*.cshtml"; + var destination = config.websiteRoot + "\\Views"; + return gulp.src(roots, { + base: root + }).pipe( + foreach(function (stream, file) { + console.log("Publishing from " + file.path); + gulp.src(file.path + files, { + base: file.path + }) + .pipe(newer(destination)) + .pipe(debug({ + title: "Copying " + })) + .pipe(gulp.dest(destination)); + return stream; + }) + ); }); gulp.task("Publish-All-Configs", function () { - var root = "./src"; - var roots = [root + "/**/App_Config", "!" + root + "/**/obj/**/App_Config"]; - var files = "/**/*.config"; - var destination = config.websiteRoot + "\\App_Config"; - return gulp.src(roots, { base: root }).pipe( - foreach(function (stream, file) { - console.log("Publishing from " + file.path); - gulp.src(file.path + files, { base: file.path }) - .pipe(newer(destination)) - .pipe(debug({ title: "Copying " })) - .pipe(gulp.dest(destination)); - return stream; - }) - ); + var root = "./src"; + var roots = [root + "/**/App_Config", "!" + root + "/**/obj/**/App_Config"]; + var files = "/**/*.config"; + var destination = config.websiteRoot + "\\App_Config"; + return gulp.src(roots, { + base: root + }).pipe( + foreach(function (stream, file) { + console.log("Publishing from " + file.path); + gulp.src(file.path + files, { + base: file.path + }) + .pipe(newer(destination)) + .pipe(debug({ + title: "Copying " + })) + .pipe(gulp.dest(destination)); + return stream; + }) + ); }); /***************************** Watchers *****************************/ gulp.task("Auto-Publish-Css", function () { - var root = "./src"; - var roots = [root + "/**/styles", "!" + root + "/**/obj/**/styles"]; - var files = "/**/*.css"; - var destination = config.websiteRoot + "\\styles"; - gulp.src(roots, { base: root }).pipe( - foreach(function (stream, rootFolder) { - gulp.watch(rootFolder.path + files, function (event) { - if (event.type === "changed") { - console.log("publish this file " + event.path); - gulp.src(event.path, { base: rootFolder.path }).pipe(gulp.dest(destination)); - } - console.log("published " + event.path); - }); - return stream; - }) - ); + var root = "./src"; + var roots = [root + "/**/styles", "!" + root + "/**/obj/**/styles"]; + var files = "/**/*.css"; + var destination = config.websiteRoot + "\\styles"; + gulp.src(roots, { + base: root + }).pipe( + foreach(function (stream, rootFolder) { + gulp.watch(rootFolder.path + files, function (event) { + if (event.type === "changed") { + console.log("publish this file " + event.path); + gulp.src(event.path, { + base: rootFolder.path + }).pipe(gulp.dest(destination)); + } + console.log("published " + event.path); + }); + return stream; + }) + ); }); gulp.task("Auto-Publish-Views", function () { - var root = "./src"; - var roots = [root + "/**/Views", "!" + root + "/**/obj/**/Views"]; - var files = "/**/*.cshtml"; - var destination = config.websiteRoot + "\\Views"; - return gulp.src(roots, { base: root }).pipe( - foreach(function (stream, rootFolder) { - gulp.watch(rootFolder.path + files, function (event) { - if (event.type === "changed") { - console.log("publish this file " + event.path); - gulp.src(event.path, { base: rootFolder.path }).pipe(gulp.dest(destination)); - } - console.log("published " + event.path); - }); - return stream; - }) - ); + var root = "./src"; + var roots = [root + "/**/Views", "!" + root + "/**/obj/**/Views"]; + var files = "/**/*.cshtml"; + var destination = config.websiteRoot + "\\Views"; + return gulp.src(roots, { + base: root + }).pipe( + foreach(function (stream, rootFolder) { + gulp.watch(rootFolder.path + files, function (event) { + if (event.type === "changed") { + console.log("publish this file " + event.path); + gulp.src(event.path, { + base: rootFolder.path + }).pipe(gulp.dest(destination)); + } + console.log("published " + event.path); + }); + return stream; + }) + ); }); gulp.task("Auto-Publish-Assemblies", function () { - var root = "./src"; - var roots = [root + "/**/code/**/bin"]; - var files = "/**/Sitecore.{Feature,Foundation,Habitat}.*.{dll,pdb}";; - var destination = config.websiteRoot + "/bin/"; - gulp.src(roots, { base: root }).pipe( - foreach(function (stream, rootFolder) { - gulp.watch(rootFolder.path + files, function (event) { - if (event.type === "changed") { - console.log("publish this file " + event.path); - gulp.src(event.path, { base: rootFolder.path }).pipe(gulp.dest(destination)); - } - console.log("published " + event.path); - }); - return stream; - }) - ); + var root = "./src"; + var roots = [root + "/**/code/**/bin"]; + var files = "/**/Sitecore.{Feature,Foundation,Habitat}.*.{dll,pdb}";; + var destination = config.websiteRoot + "/bin/"; + gulp.src(roots, { + base: root + }).pipe( + foreach(function (stream, rootFolder) { + gulp.watch(rootFolder.path + files, function (event) { + if (event.type === "changed") { + console.log("publish this file " + event.path); + gulp.src(event.path, { + base: rootFolder.path + }).pipe(gulp.dest(destination)); + } + console.log("published " + event.path); + }); + return stream; + }) + ); }); /***************************** @@ -345,26 +381,30 @@ gulp.task("Package-Publish", function (callback) { config.buildConfiguration = "Release"; fs.mkdirSync(config.websiteRoot); runSequence( - "Build-Solution", - "Publish-Foundation-Projects", - "Publish-Feature-Projects", - "Publish-Project-Projects", callback); + "Build-Solution", + "Publish-Foundation-Projects", + "Publish-Feature-Projects", + "Publish-Project-Projects", callback); }); /* Remove unwanted files */ gulp.task("Package-Prepare-Package-Files", function (callback) { var excludeList = [ - config.websiteRoot + "\\bin\\{Sitecore,Lucene,Newtonsoft,System,Microsoft.Web.Infrastructure}*dll", - config.websiteRoot + "\\compilerconfig.json.defaults", - config.websiteRoot + "\\packages.config", - config.websiteRoot + "\\App_Config\\Include\\{Feature,Foundation,Project}\\*Serialization.config", - config.websiteRoot + "\\App_Config\\Include\\{Feature,Foundation,Project}\\z.*DevSettings.config", - "!" + config.websiteRoot + "\\bin\\Sitecore.Support*dll", - "!" + config.websiteRoot + "\\bin\\Sitecore.{Feature,Foundation,Habitat,Demo,Common}*dll" + config.websiteRoot + "\\bin\\{Sitecore,Lucene,Newtonsoft,System,Microsoft.Web.Infrastructure}*dll", + config.websiteRoot + "\\compilerconfig.json.defaults", + config.websiteRoot + "\\packages.config", + config.websiteRoot + "\\App_Config\\Include\\{Feature,Foundation,Project}\\*Serialization.config", + config.websiteRoot + "\\App_Config\\Include\\{Feature,Foundation,Project}\\z.*DevSettings.config", + "!" + config.websiteRoot + "\\bin\\Sitecore.Support*dll", + "!" + config.websiteRoot + "\\bin\\Sitecore.{Feature,Foundation,Habitat,Demo,Common}*dll" ]; console.log(excludeList); - return gulp.src(excludeList, { read: false }).pipe(rimraf({ force: true })); + return gulp.src(excludeList, { + read: false + }).pipe(rimraf({ + force: true + })); }); /* Add files to package definition */ @@ -372,36 +412,39 @@ gulp.task("Package-Enumerate-Files", function () { var packageFiles = []; config.websiteRoot = websiteRootBackup; - return gulp.src(path.resolve("./temp") + "/**/*.*", { base: "temp", read: false }) - .pipe(foreach(function (stream, file) { - var item = "/" + file.relative.replace(/\\/g, "/"); - console.log("Added to the package:" + item); - packageFiles.push(item); - return stream; - })).pipe(util.buffer(function () { - xmlpoke("./package.xml", function (xml) { - for (var idx in packageFiles) { - xml.add("project/Sources/xfiles/Entries/x-item", packageFiles[idx]); - } - }); - })); + return gulp.src(path.resolve("./temp") + "/**/*.*", { + base: "temp", + read: false + }) + .pipe(foreach(function (stream, file) { + var item = "/" + file.relative.replace(/\\/g, "/"); + console.log("Added to the package:" + item); + packageFiles.push(item); + return stream; + })).pipe(listStream.obj(function () { + xmlpoke("./package.xml", function (xml) { + for (var idx in packageFiles) { + xml.add("project/Sources/xfiles/Entries/x-item", packageFiles[idx]); + } + }); + })); }); /* Add items to package definition */ gulp.task("Package-Enumerate-Items", function () { var itemPaths = []; var allowedPatterns = [ - "./src/**/serialization/**/*.yml", - "!./src/**/serialization/Roles/**/*.yml", - "!./src/**/serialization/Users/**/*.yml" + "./src/**/serialization/**/*.yml", + "!./src/**/serialization/Roles/**/*.yml", + "!./src/**/serialization/Users/**/*.yml" ]; return gulp.src(allowedPatterns) .pipe(foreach(function (stream, file) { - console.log(file); + console.log(file); var itemPath = unicorn.getFullItemPath(file); itemPaths.push(itemPath); return stream; - })).pipe(util.buffer(function () { + })).pipe(listStream.obj(function () { xmlpoke("./package.xml", function (xml) { for (var idx in itemPaths) { xml.add("project/Sources/xitems/Entries/x-item", itemPaths[idx]); @@ -416,12 +459,12 @@ gulp.task("Package-Enumerate-Users", function () { return gulp.src("./src/**/serialization/Users/**/*.yml") .pipe(foreach(function (stream, file) { - console.log(file); + console.log(file); var fileContent = file.contents.toString(); var userName = unicorn.getUserPath(file); users.push(userName); return stream; - })).pipe(util.buffer(function () { + })).pipe(listStream.obj(function () { xmlpoke("./package.xml", function (xml) { for (var idx in users) { xml.add("project/Sources/accounts/Entries/x-item", users[idx]); @@ -436,12 +479,12 @@ gulp.task("Package-Enumerate-Roles", function () { return gulp.src("./src/**/serialization/Roles/**/*.yml") .pipe(foreach(function (stream, file) { - console.log(file); + console.log(file); var fileContent = file.contents.toString(); - var roleName = unicorn.getRolePath(file); + var roleName = unicorn.getRolePath(file); roles.push(roleName); return stream; - })).pipe(util.buffer(function () { + })).pipe(listStream.obj(function () { xmlpoke("./package.xml", function (xml) { for (var idx in roles) { xml.add("project/Sources/accounts/Entries/x-item", roles[idx]); @@ -468,4 +511,4 @@ gulp.task("Package-Generate", function (callback) { "Package-Enumerate-Roles", "Package-Clean", callback); -}); +}); \ No newline at end of file diff --git a/package.json b/package.json index daf693d260..bdd774a810 100644 --- a/package.json +++ b/package.json @@ -3,32 +3,24 @@ "version": "1.0.0", "description": "Sitecore Habitat Node Dependencies", "main": "gulpfile.js", - "dependencies": { - "async": "^1.5.2", - "glob": "^7.0.3", - "gulp": "^3.9.0", - "gulp-autoprefixer": "^3.1.0", - "gulp-debug": "^2.1.2", - "gulp-exec": "^2.1.2", + "devDependencies": { + "gulp-nuget-restore": "^0.6.0", + "async": "^2.6.0", + "glob": "^7.1.2", + "gulp": "^3.9.1", + "gulp-debug": "^3.2.0", "gulp-foreach": "^0.1.0", - "gulp-load-plugins": "^1.0.0", - "gulp-msbuild": "^0.4.4", - "gulp-newer": "^1.0.0", + "gulp-msbuild": "^0.5.4", + "gulp-newer": "^1.4.0", "gulp-rename": "^1.2.2", - "gulp-rimraf": "^0.2.0", - "gulp-sass": "^2.0.4", - "gulp-util": "^3.0.7", - "gulp-watch": "^4.3.5", - "merge-stream": "^1.0.0", - "rimraf": "^2.4.3", - "run-sequence": "^1.1.4", - "vinyl": "^1.1.0", - "xml2js": "^0.4.16", - "xmlpoke": "^0.1.12", - "yargs": "^6.4.0" - }, - "devDependencies": { - "gulp-nuget-restore": "^0.4.0" + "gulp-rimraf": "^0.2.2", + "list-stream": "^1.0.1", + "rimraf": "^2.6.2", + "run-sequence": "^2.2.1", + "xml2js": "^0.4.19", + "xmlpoke": "^0.1.13", + "yargs": "^11.0.0", + "fancy-log": "^1.3.2" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" diff --git a/scripts/helix.js b/scripts/helix.js index 0101157a28..de6eb5edf9 100644 --- a/scripts/helix.js +++ b/scripts/helix.js @@ -1,23 +1,23 @@ "use strict"; -var util = require("gulp-util"); +var log = require("fancy-log"); var helix = {}; helix.header = function header(line1, line2) { - util.log("O---o _____ _ _ _ _ _ _ "); - util.log(" O-o / ___(_) | | | | | | (_) "); - util.log(" O \\ `--. _| |_ ___ ___ ___ _ __ ___ | |_| | ___| |___ __"); - util.log(" o-O `--. \\ | __/ _ \\/ __/ _ \\| '__/ _ \\ | _ |/ _ \\ | \\ \\/ /"); - util.log("o---O /\\__/ / | || __/ (_| (_) | | | __/ | | | | __/ | |> < "); - util.log("O---o \\____/|_|\\__\\___|\\___\\___/|_| \\___| \\_| |_/\\___|_|_/_/\\_\\"); - util.log(" O-o "); - util.log(" O -------------------- helix.sitecore.net ------------------"); - util.log(" o-O "); - util.log("o---O " + line1); - util.log("O---o " + line2); - util.log(" O-o "); - util.log(" O ----------------------------------------------------------"); - util.log(" o-O "); - util.log("o---O "); + log("O---o _____ _ _ _ _ _ _ "); + log(" O-o / ___(_) | | | | | | (_) "); + log(" O \\ `--. _| |_ ___ ___ ___ _ __ ___ | |_| | ___| |___ __"); + log(" o-O `--. \\ | __/ _ \\/ __/ _ \\| '__/ _ \\ | _ |/ _ \\ | \\ \\/ /"); + log("o---O /\\__/ / | || __/ (_| (_) | | | __/ | | | | __/ | |> < "); + log("O---o \\____/|_|\\__\\___|\\___\\___/|_| \\___| \\_| |_/\\___|_|_/_/\\_\\"); + log(" O-o "); + log(" O -------------------- helix.sitecore.net ------------------"); + log(" o-O "); + log("o---O " + line1); + log("O---o " + line2); + log(" O-o "); + log(" O ----------------------------------------------------------"); + log(" o-O "); + log("o---O "); }; module.exports = helix; \ No newline at end of file