chrishasz / spgo

SPGo: A Lightweight, Open Source, SharePoint IDE for Visual Studio Code
https://www.chrishasz.com/spgo
MIT License
60 stars 11 forks source link

Feature Request: PublishWorkspaceOptions 'improvements' #116

Open ianoel230982 opened 4 years ago

ianoel230982 commented 4 years ago

Note: for support questions, please use stackoverflow and tag the post with #spgo. Edit - sorry it has added the 'bug' label. It's not a bug.

I don't believe you can currently do this, please accept my apologies if i have missed it. When 'publishing workspace', I do not believe the glob pattern allows for multiple specific files to be published. I can use "globPattern": "*.aspx" which would publish all aspx files, or i can choose all files in a specific folder etc, but if i have a lot of files in my project, i don't want to have to publish everything again if i have only been working on a couple of files.

Ideally it would be nice to declare an array of some type where i can use a glob pattern that can specify a subset of files, e.g.

[
 "/folder/js/file1.js", 
 "/folder/css/file1.css", 
 "/folder/*.aspx",
"/folder/images/*.*"
]

I hope that makes sense.

Thanks for your continued support with this amazing extension.

chrishasz commented 4 years ago

Hello again @ianoel230982!

Thanks for the great feature idea

I like the idea of letting publishWorkspaceOptions.globPattern also take either an array of objects, or just a single object, as a feature enhancement. This way you could specify the list above directly.

Would this feature meet your requirements?

ianoel230982 commented 4 years ago

@chrishasz Hi,

Yes that sounds like it would be a great idea and meet my requirements.

chrishasz commented 4 years ago

Sounds good! I'm working on support for Addin-only auth right now, but I will prioritize this feature for the subsequent release.

ianoel230982 commented 4 years ago

Hi, just a further note to add to this. I'm not sure whether it would be possible to include this extra feature with the above enhancement. If the array of files can be implemented when publishing the workspace, is it also possible to include a 'checkInMessage' for each individual file? Currently, each file gets the same message, but i may have done different changes to different files so it would make sense to be able to add a message on a per file basis. That would be a 'nice to have' though, so please don't feel like you have to do that. Just thought i'd ask.

Thanks :-)

chrishasz commented 3 years ago

Hello @ianoel230982 - I have just released Addin-only support with SPGo 1.7.0, so this will be my next major feature.