Using the NX Web Plugin to Scaffold a Static HTML Site

Introduction Nx is a tool that manages monorepos and standardises tooling within that monorepo. As part of these standards, Nx provides a set of tools that allow users to quickly generate a static vanilla HTML website, without any complicated tooling. Prerequisites To begin, make sure we have an Nx workspace setup. npx create-nx-workspace@latest <workspace-name> ✔ Which stack do you want to use? · none ✔ Package-based monorepo, integrated monorepo, or standalone project?...

May 25, 2024 · Joel Tok

A Guide to Understanding Unfamiliar Nx Plugins

Introduction This is a short guide to help us understand how we can deciper an existing Nx plugin, to figure out what it does. A basic understanding of Nx plugins will be useful to the reader. Understanding the Plugin’s Behavior Entrypoint The best place to start our investigation is with a few files at the root of the plugin. generators.json migrations.json executors.json These are the entrypoints that define all tasks that the plugin will be able to undertake....

April 14, 2024 · Joel Tok