New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

shipit-nvm

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shipit-nvm

Nvm tasks for shipit.

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-85.19%
Maintainers
1
Weekly downloads
 
Created
Source

shipit-nvm

A set of tasks for Shipit used for nvm specific tasks.

Features:

  • Automatically sets/unsets a default version of node to use pre and post npm install respectively
  • Works with shipit-deploy, shipit-npm and shipit-shared
  • Gets node version from .nvmrc
  • Sets default node version (nvm alias default) triggered on the npm_preinstall event from shipit-npm
  • Unalias/Cleans up default node version (nvm unalias default) triggered on the npm_installed event from shipit-npm
  • Has a direct pass though task to nvm commands.
  • Works via shipit-cli and grunt-shipit

Install

nvm install shipit-nvm

Usage

Just simply run: (This triggers the nvm specific tasks on the events mentioned previously. No additional config necessary.)

shipit staging deploy

Or you can run the tasks separately :

  shipit staging nvm:init nvm:alias-default
  shipit staging nvm:init nvm:unalias-default
  shipit staging nvm:run --cmd "update"

Options shipit.config.nvm

nvm.remote

Type: Boolean Default: true

A Boolean to determine whether to run the task in local workspace or on the remote. NOTE: if used with shipit-npm the npm.remote option takes precedence over this one.

nvm.sh

Type: String Default: '/usr/local/nvm/nvm.sh'

An string specifying the absolute path to the nvm.sh file (see nvm readme for more info).

Example shipitfile.js options usage

module.exports = function (shipit) {
  require('shipit-deploy')(shipit);
  require('shipit-nvm')(shipit);

  shipit.initConfig({
    default: {
      nvm: {
        remote: false,
        sh: '~/.nvm/nvm.sh'
      }
    }
  });
};

License

MIT

Keywords

FAQs

Package last updated on 15 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc