scottdurow / SparkleXrm

An open-source library for building Dynamics CRM XRM solutions using Script#, jQuery & Knockoutjs.
MIT License
264 stars 194 forks source link

Calling `spkl.exe` features - plural or single? #458

Open rappen opened 2 years ago

rappen commented 2 years ago

I'm new....

...but it seems you call it as:

spkl plugins mypluginpath myconnection
spkl workflow mypluginpath myconnection
spkl webresources mywebbypath myconnection

You see what's wrong...?

We use paths like this(-ish)

<repo>\Plugins\
<repo>\Workflows\
<repo>\WebResources\

Why why why we can't use smart bats that find out the path from the "action" that we send to do the thingy it will do?

I wish

Accept both workflow AND workflows.... Please?


Disclaimer

I may have no idea, then just close this issue.

scottdurow commented 2 years ago

Hey @rappen - nice to have you here! The bats that currently are added for you are just kind of shortcuts - you can create your own that call spkl directly.

However - I usually will install the spkl NuGet in each Plugin/Workflow project and use the deploy bats from there, then another for the overall Solution to deploy Webresources and do the pack/unpack.

You might find this blog post useful from Benedikt: https://benediktbergmann.eu/2021/09/12/spkl-setup-for-multiple-assemblies/

rappen commented 2 years ago

Thanks!

But I think you misunderstood me anyway.... I have been working with Benedikt today, and we both see that spkl needs parameters called either 'pluginS', 'workflow', 'webresourceS' (and more things, but only these interested for now)

Two ends with plural-s, one don't... Consistency failure?