webdev-setup-tools-npm-globals

5.0.0 • Public • Published

...

webdev-setup-tools-npm-globals

This is a plugin for webdev-setup-tools . This plugin enables easy installation of nodejs global packages as defined in your projects package.json.

Installing Npm Package

npm install webdev-setup-tools-npm-globals --save

Purpose

To automate both the installation and updates of global npm packages as required by your project. To manually install these packages with npm would typically take a separate installation command for each package in your project. Additionally, to install the maximum compatible version of each module required by your project using semantic version ranges provided for each module.

Configuration

This plugin determines the packages to install from the "web-dev-setup-tools" field in the package.json your project root. This field typically has the following syntax:

"web-dev-setup-tools": {
    "node": {
      "install": ">=7.0.0",
      "globals": {
        "bower": "^1.0.0",
        "grunt-cli": "~1.0.0",
        "gulp": ">=3.9.1",
        "windows": {
          "windows-build-tools": "^1.2.0"
        },
        // other npm packages to install ...
      }
    },
    // other packages to install ...
  }

Usage

Install all required global npm modules

let setup_tools = require('webdev-setup-tools-npm');
setup_tools.installNpmGlobalPackages();

Important Notes For Windows Users

Due to built in Windows security features and restrictions, there are a number of additional steps that need to be taken by windows users. Please refer to the Important Notes For Windows Users section of webdev-setup-tools for more detailed instructions.

Release History

  • 1.0.0 Initial release

/webdev-setup-tools-npm-globals/

    Package Sidebar

    Install

    npm i webdev-setup-tools-npm-globals

    Weekly Downloads

    25

    Version

    5.0.0

    License

    MIT

    Unpacked Size

    128 kB

    Total Files

    9

    Last publish

    Collaborators

    • cdejarc
    • tmo-ng