Questions tagged [gulp]

Only for questions specifically related to Sitecore, including those regarding the use of Gulp for build and deployment when working with a helix-based solution, including habitat and custom solutions

Filter by
Sorted by
Tagged with
1 vote
2 answers
153 views

gulp publish problem: 'spawn C:\windows\microsoft.net\Framework64\v(not used)\msbuild.exe ENOENT'

I try to publish my Sitecore project solution using a custom-made script. I run the gulp publishSitecoreSolution command (a custom-made one), and I get this output in PowerShell: [15:55:04] Loading C:\...
stipemodric's user avatar
2 votes
1 answer
119 views

Run PowerShell script using Gulp?

Is there any way to run a PowerShell script in Sitecore using Gulp? We are trying to integrate some content publishing to the build process automatically. All our JS/CSS is stored in the Media Library ...
Rob Connolly's user avatar
0 votes
1 answer
195 views

How to run gulp task on save button on .css file?

I would like to run gulp task on save button on .css file to minify file. I have tried gulp.watch but it is not working. Is there any other way to minify file on save button. Using Sitecore 9.1.1. CLI ...
Ashish's user avatar
  • 882
1 vote
0 answers
71 views

"Cannot use import statement outside a module"

When running gulp I get the following error: My node version is 17.1.0 Gulp CLI Version is 2.3.0 Local gulp is 4.0.2
Ben Davies's user avatar
0 votes
2 answers
4k views

Issue in loading Gulp Tasks in VS.NET 2019 "Failed to load"

I have installed Habitat successfully and I have the Sitecore 9.2 running successfully. I have node (v14.4.0) gulp verion: CLI (2.3.0) Local (3.9.1) But I am stuck in VS.NET2019 after opening the ...
mohamed's user avatar
-1 votes
1 answer
533 views

When using Gulp to build a solution, what does “MSBuild failed with code 1” mean?

I am getting error in Gulp while build the solutions. I already given a permission for folder or sub folder and also update the gulp-config.js. var config = { websiteRoot: instanceRoot + "\\"...
Vikash sah's user avatar
1 vote
1 answer
333 views

Event handler PowerShell/Services/RemoteScriptCall.ashx call giving 503 error

I have a local Sitecore instance with name sc90.local and I am trying to publish files on local instance using gulp. Response error: Upload failed: styles.css Status code:503 URL: POST http://sc90....
ironman's user avatar
  • 131
0 votes
0 answers
143 views

PowerShell error while running sync-unicorn in gulp while running VS task runner

I am trying to run gulp to publish changes in my localhost but while running 'sync-unicorn'. I am getting this error Powershell' is not recognized as an internal or external command, operable program ...
Shahzad Ahamad's user avatar
-1 votes
1 answer
395 views

How does the gulp build transform Sitecore config files?

I'm migrating Sitecore 9.1.0 to Azure. During the process of build on Azure DevOps, I have a gulp tasks, which builds the solution and transforms the configuration files. On certain configuration ...
Thomas GRIESMAR's user avatar
2 votes
1 answer
646 views

Creative Exchange Live Gulp "unable to verify the first certificate"

After following the configuration steps of the Creative Exchange Live, I'm trying to run the gulp tasks through Visual Studio Code but it is throwing a certificate error when uploading: [17:51:24] ...
Bruno Nunes's user avatar
2 votes
2 answers
491 views

Creative Exchange Live Gulp task "No Gulp file"

I've exported the site through the Creative Exchange export and followed the configuration steps to have it working on Visual Studio Code through readme.md file in the folder. Calling 'gulp watch-gulp'...
Bruno Nunes's user avatar
1 vote
3 answers
1k views

Using ExcludeFilesFromDeployment with gulp-msbuild

I'm trying to set up a gulp task for publishing, similar to the Habitat model and the Sitecore development book. One suggestion people have had is to exclude things like the Sitecore DLLs, Coveo DLLs, ...
Ken McAndrew's user avatar
  • 5,092
0 votes
1 answer
473 views

The given path's format is not supported error exception while accessing Helixbase project

Has anyone faced this issue, while installing the Helixbase for Sitecore 9 update 1? The builds are successful with no errors. Publishing all projects task with gulp also works fine. but still I am ...
Sitecore Sam's user avatar
  • 1,163
1 vote
1 answer
2k views

Habitat Gulpfile.js error in Visual Studio but OK on Cmd Line

In the Task Runner Explorer, gulpfile.js is failing to load, and in the output window I'm seeing gulp.task('CI-html', () => { ^ SyntaxError: Unexpected token ) If I comment ...
Steve Ward's user avatar
0 votes
1 answer
3k views

How to fix msbuild path detection from Enterprise to Community edition

I'm facing issue running gulp successfully for installing Habitat with VS2017 Community edition. I've checked the Node version, msbuild version and all is fine. But when I run gulp it automatically ...
Paritosh Tripathi's user avatar
5 votes
2 answers
387 views

Does the package.xml file in Habitat project help to deploy to server and how?

I'm able to update the package.xml using below script in command-line: gulp -b "D:\projects\Habitat" --color --gulpfile "D:\projects\Habitat\Gulpfile-ci.js" CI-Do-magic package.xml is located here ...
Harsh Baid's user avatar
  • 1,994
5 votes
3 answers
8k views

When using Gulp to build a Helix based solution, what does "MSBuild failed with code 1" mean?

I bought the Professional Sitecore 8 Development book and I am following the Sitecore Helix architecture approach. And following the examples in the book and online I am using Gulp in the Task Runner ...
Corey Burnett's user avatar
6 votes
2 answers
2k views

Slow build performance using TDS (Helix-inspired)

I am using TDS to maintain my Sitecore items in a Helix-inspired solution with around 50 smaller projects (currently with 17 TDS projects). When I try to deploy my TDS projects locally, it takes +9 ...
pwind's user avatar
  • 963
5 votes
2 answers
2k views

Using Unicorn Transparent Sync

I am done with unicorn sync using gulp task provided in Sitecore habitat sample project. I need some clarification on below points. As per my understating, if transparent Sync is enabled then auto ...
S.Kazmi's user avatar
  • 906
6 votes
2 answers
3k views

Sitecore Habitat - GULP is not running sync unicorn task and neither giving any error

In Sitecore habitat project, I am running task '05-Sync-Unicorn' in VS task running explorer but it does nothing and just displays "Starting '05-Sync-Unicorn'" in console (even doesn't produce any ...
S.Kazmi's user avatar
  • 906
4 votes
1 answer
1k views

Error setting up Habitat instance of Sitecore with "Could not instantiate event handler." error

While setting up an instance of the Habitat demo site, I have followed all the steps as in the past but when the Sync Unicorn Gulp task begins, it exits with the following error: Could not ...
Sirius_B's user avatar
  • 601
14 votes
3 answers
3k views

Publishing projects fails because of locked files

The solution I am currently working on, the team made the decision to use habitats way of publishing projects in our solutions via gulp tasks. We are finding out however that periodically when we try ...
Anicho's user avatar
  • 1,419