In this tutorial, we shall show you how to install the task provider we have created.
There're two steps to install the task provider manually
If you have run the build script for engine, the task providers folder should be available in
Let's create a folder where our task provider shall be published into. Since it's a generator provider, it should be under
Now get the absolute path to this folder, then open a new shell, and go to our task provider source code project folder . Run the following command to publish our source code into the task provider folder:
dotnet publish --output "absolute path to .\publish\engine\taskproviders\GeneratorProvider\Polyrific.Catapult.TaskProviders.Angular"
Remember earlier we created a
taskprovider.yml file? Now is the time to use it. Open the opencatapult cli shell, login, then run this command:
dotnet occli.dll provider register --file "absolute path to Polyrific.Catapult.TaskProviders.Angular\taskprovider.yml"
And that's it, you can now create a generate task using the provider:
dotnet occli.dll task add --name Generate --type Generate --provider Polyrific.Catapult.TaskProviders.Angular
That is it for the task provider tutorial. We hope it gives you a general idea on how opencatapult task provider work. If you want to learn more about other task providers, please go to the task provider reference