PowerShell / PowerShellEditorServices

A common platform for PowerShell development support in any editor or application!
MIT License
613 stars 207 forks source link

Introduce a new ModuleService for common module management operations #171

Open daviwil opened 8 years ago

daviwil commented 8 years ago

I just implemented PowerShell Gallery module update logic for the PowerShell ISE Preview and realized that this behavior really should be made available to all editors which use Editor Services. I'd like to take the work @dfinke did for PowerShell Gallery module installation and put it together with my module update checking logic to make a new ModuleService which has the following features:

vors commented 8 years ago

I really like to "Publish a module from current workspace path". I always have troubles with developing module in one place and copying it for publishing in one of $env:PSModulePath locations.

daviwil commented 8 years ago

Yeah, getting that right will be a little tricky because some modules need their files copied into a folder to publish from. Module definition schema needs a pre-publish command field...

rkeithhill commented 8 years ago

Publish would be nice. I wonder though if for VSCode, if it wouldn't be better to use the Task support for publishing. Maybe somebody comes up with a Gulp task template. Or maybe the Task would use a PSake file instead?

TylerLeonhardt commented 6 years ago

Going through the issues...

So @daviwil's first bullet point is already done "List and install modules from the PowerShell Gallery (and any other registered repository)"

The other 2, I don't think they're implemented. I think the "publish module" sounds great as a VSCode Task as @rkeithhill mentioned though. The hardest one I think will be the middle bullet point since the Gallery doesn't have any sort of notification system.