Hi everyone,
This modern UI conversion process is bumpy and tough for all of us. One of the things I have already been struggling with is managing my node installations between 25R1 and 25R2, and I imagine that as more versions come out, it will only get harder. Even with node version manager, you have to switch to the correct version of node for the version of Acumatica (if I understand correctly)
Acumatica stores the path to the node version it needs in the web.config file. So I thought what if I just made a quick powershell module that leverages that path! So if you are in a site directory, you can always build using the correct specified node version. Introducing AcumaticaNodeHelper:
lekker-solutions/acumatica-nodehelper: Acumatica Node Helper
# The module is registered in the Powershell Gallery
Install-Module AcumaticaNodeHelper
# Change directory to the root of the sitecd C:\Acumatica\MyClientSite
# Build all pages and modules
Invoke-NodeBuild
# Build specific pages
Invoke-NodeBuild -Pages "SO301000,SO303000"
# Build specific modules
Invoke-NodeBuild -Modules "LS,PX"
# Build specific pages and modules
Invoke-NodeBuild -Pages "SO301000" -Modules "LS"
Voila! One less thing to deal with when you are building your sites.
Currently, only run build-dev is supported, but ill also be implementing watch as well.