Azure DevOps, GitHub, etc. refer to a branch as being "stale" when it has no new commits within a certain number of days. I believe Azure uses 90 days as it's reference. Pretty simple really! Unfortunatly Azure DevOps doesn't automatically delete/archive stale branches. In this article I'm going to describe a solution to that problem.
Application Insights, a feature of Azure Monitor, is an extensible Application Performance Management (APM) service for developers and DevOps professionals. Use it to monitor your live applications. In this post I'll go though the steps required to set it up in your TypeScript Webresources project.
Nowadays there is no excuse to not unit test your code. It's becoming easy and more valuable, so don't not do it! In this post I'm going to provide a basic guide to get you started with unit tests and TypeScript webresources for Dynamics 365... err Dataverse... err Power Apps... or whatever we are calling it today!
At present the PCF Template provided by the Power Apps Cli gives us lots of opportunity and scope to improve functionality, but the type definitions are missing some objects that are present api. Now this could be for many reasons, one being support. Anyway, I'm a rogue so here is one I've already used a lot!
Communication, It's one of the single most important "things" in EVERYTHING! So why am I finding it so difficult to have my PCF control and Form script talk to each other? Maybe I am missing something but I believe the only "OOTB" method for the two to communicate is via a bound field/control...? So, here is my alternative...
Lets take a look at how we can make use of ES Modules in our TypeScript webresources and how this help us achieve clean code! Then we'll quickly look at how we can then debug without the extra step of deploying each time we make a change.
Ok, so, err, where do we start! Webpack and Babel are big. Too big for me to cover in one post. To be honest I don't know everything about them and have only scratched the surface myself, so I'll only cover a minimal config to get people started. I'll leave it to you to read and experiment further. After all, the best way to learn is often to just throw yourself in the deep end!
Type Declaration files provide a way to declare the existence of some types or values without actually providing implementations for those values. They improve readability and also quality. They are integral to the use of TypeScript.
In this series (my first) of posts i'll share my experiences when authoring and maintaining JavaScript Web Resources with TypeScript. The series will cover the basics and then more advanced options including ES Modules, webpack, babel, unit testing, deployment, etc.