Skip to content

Repository files navigation

add-on registry release license

DDEV Nub

Overview

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.

Installation

ddev add-on get MetaSyntactical/ddev-nub
ddev restart

After installation, make sure to commit the .ddev directory to version control.

Usage

  • ddev nub [command] runs any Nub CLI command inside the web container.
  • ddev nubx [command] runs Nub's package-runner (nubx is to nub what npx is to npm) inside the web container.

Configuration

Pinning the Nub version

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 restart

For example:

ddev dotenv set .ddev/.env.nub --nub-version=1.2.3
ddev restart

Leave .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.

Credits

Maintained by MetaSyntactical

About

DDEV add-on that installs the Nub CLI into the web container

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages