Ken Muse
Publishing npm Packages to GitHub Packages With Yarn
Ever tried to publish a JavaScript package to GitHub Packages with Yarn 4 and felt buried in docs that only cover npm or classic Yarn? You end up piecing together modern guidance from half answers. The good news: it’s actually straightforward. Let me walk you through a clean, repeatable setup.

Read this article

Good Code Doesn't Care Where It Lives
Ever wondered if applications really have to be written to target servers or containers? Can they be more flexible so that they run anywhere? I recently had to create a Probot application that worked on VMs, containers, and serverless platforms. And I needed to do that without writing multiple versions of the code.

Read this article

Using React in Visual Studio Code Webviews
Building custom extensions and visualizations in Visual Studio Code can be a powerful way to enhance your development processes. The samples show you how to use vanilla JavaScript. This post shows you how to modify the code to use React instead.

Read this article

Improved Blogging With Visual Studio Code Webviews
Building a custom VS Code extension can open the door for innovation. Extensions can become even more powerful when you use them to create a better interface. Today we explore how to incorporate custom UIs into your extension using Webviews.

Read this article

Improved Blogging With Visual Studio Code Extensions
Combining Visual Studio Code with Hugo has given me a great workflow for my blog. To make it even better, I need to modify part of the editor’s behavior. I need a custom VS Code extension.

Read this article

Improved Blogging With Visual Studio Code Tasks
I’ve mentioned a few times that I use Visual Studio Code and Hugo for my blogging. I’ve also discussed some of the the ways I make it faster and easier to create my posts. Learn how I make my VS Code experience faster and easier by using tasks.

Read this article

Implementing Private VS Code Extensions for Dev Containers
Did you know that dev containers can have their own private Visual Studio Code extensions? By understanding some of the life cycle of the container, it’s possible to create and use extensions that are designed to support a specific dev container or Codespaces environment.

Read this article

Mastering the Jest TestEnvironment Event Types
Continuing the topics from my last post, this week I want to offer a deep dive into the lifecycle of a Jest TestEnvironment by exposing the events that are raised when tests are run. I’ll also explore some of the details that are included with each event.

Read this article

A Crash Course on Jest TestEnvironments with TypeScript
I needed a way to implement integration tests that would allow me to ensure that I could clean up the emulators I was using after each test cycle. Jest Test Environments provided a powerful way to do this, and TypeScript makes it easy to do (aside from a few quirks).

Read this article

Implementing Processes for GHAS using GitHub Probot
GitHub Advanced Security (GHAS) helps teams to shift left and secure their development practices. But what do you do when its process its processes and practices doesn’t quite fit your team’s approach? In this post, we’ll look at how to use GitHub Probot to implement your own process in a GitHub-native way.

Read this article