Sitecore / Habitat

Sitecore Modular Architecture Example
Other
413 stars 397 forks source link

Publish Project task seems to doesn't work #376

Closed lskowronski closed 6 years ago

lskowronski commented 6 years ago

https://github.com/Sitecore/Habitat/blob/19b2bf9c1fbe1b12bea529a4a3489275eb53fc25/gulpfile.js#L220

When I try to run this with Visual Studio 2015 & Task Runner Explorer - i've got error message.


Error: 
------
 USAGE: -m Layer/Module 
------
    at formatError (C:\Development\Adecco\modis\node_modules\gulp\bin\gulp.js:169:10)
    at Gulp.<anonymous> (C:\Development\Adecco\modis\node_modules\gulp\bin\gulp.js:195:15)
    at emitOne (events.js:116:13)
    at Gulp.emit (events.js:211:7)
    at Gulp.Orchestrator._emitTaskDone (C:\Development\Adecco\modis\node_modules\orchestrator\index.js:264:8)
    at C:\Development\Adecco\modis\node_modules\orchestrator\index.js:275:23
    at finish (C:\Development\Adecco\modis\node_modules\orchestrator\lib\runTask.js:21:8)
    at module.exports (C:\Development\Adecco\modis\node_modules\orchestrator\lib\runTask.js:36:10)
    at Gulp.Orchestrator._runTask (C:\Development\Adecco\modis\node_modules\orchestrator\index.js:273:3)
    at Gulp.Orchestrator._runStep (C:\Development\Adecco\modis\node_modules\orchestrator\index.js:214:10)
Process terminated with code 1.
rk92269 commented 6 years ago

Any solution on this ? Facing same issue.

faiyazulnoor commented 6 years ago

I tried with VS 2017 and didn't face any such issue.

nickwesselman commented 6 years ago

@lskowronski This target is used to publish specific modules, rather than all at once. You can use it from the command line like so:

PS C:\dev\Habitat> gulp Publish-Project -m Feature/Accounts

To publish all projects, use the Publish-All-Projects task.

Going forward, for support questions, please use Sitecore Stackexchange or #helix-habitat on Sitecore Community Slack. This repository's issues are reserved for feature requests and bug reports. Thanks!