1/17/2024 0 Comments Instaling SparkleBe aware that this is in relation to our root path. Here we need the search path to the file we would like to deploy. This will make it easier to find files later. I usually start with the customers prefix and “recreate” the folder structure we have in the webresource folder. This is the name the file will get inside of Dataverse. Last step is to fill the “files” array with all the webresources we would like to deploy.įor this article I only add our “demo.js” file. If it is not the webresource will be deployed but not added to any solution. The solution has to be present in the target environment. Please see my blog post about the basic setup for the folder structure and more details.Īs the solution I use “SpklDemo”, but you can write which ever solution you would like to have the webresources added by spkl. Even the JS output of our TypeScript is stored there. I tend to have one folder called “webresources” which contains all the webresources. As the “root” we write “././Webresources/” to select the Webresources folder as the root for all our webresources to deploy. We have to delete everything which isn’t within the “webresource” array. This is done in the spkl.json which appeared when we installed the spkl NuGet package. We will choose “Console App (.Net Framework)” for it. Let’s dive into the implementation Create projectįirst of all we have to create a new project in Visual studio. This means we have to create a “normal” Visual Studio solution to be able to add Sparkle XRM to our webresources project. The spkl task runner on the other hand is provided via a NuGet package. Our setup so far was done in Visual Studio Code and has only used npm to install packages. To this project, we would like to add Sparkle XRM, or better to say the spkl task runner, to be able to automate the deployment process of our Webresources. In some of my previous blog posts we have created a basic TypeScript project and added some more complexity ( adding SASS and adding React and tests). You can find the code of this post on my GitHub repository. So I thought it might be good to write a blog post about how to add Sparkle XRM to a Webresources project. One of the questions I get often during the presentation is how to set up Sparkle XRM to automate the deployment process of Webresources. It basically is a presentation/live demo of one of my other blog posts. One of the presentations I give regularly is about setting up a Typescript project for Dataverse.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |