Nub is a Node.js CLI tool, published as the @nubjs/nub npm package.
This add-on installs the Nub CLI into the DDEV web container so it's available for every project without having to install it globally on the host.
ddev add-on get MetaSyntactical/ddev-nub
ddev restartAfter installation, make sure to commit the .ddev directory to version control.
ddev nub [command]runs any Nub CLI command inside the web container.ddev nubx [command]runs Nub's package-runner (nubxis tonubwhatnpxis tonpm) inside the web container.
By default, the add-on installs the latest Nub release every time the web image is built. To pin a specific version instead:
ddev dotenv set .ddev/.env.nub --nub-version=<version>
ddev restartFor example:
ddev dotenv set .ddev/.env.nub --nub-version=1.2.3
ddev restartLeave .ddev/.env.nub absent, or its value empty, to keep installing the latest release on every build.
Make sure to commit .ddev/.env.nub to version control once you've pinned a version.
Maintained by MetaSyntactical