grunt-npm-helper
v0.0.2
Published
Grunt wrapper for npm
Downloads
1
Maintainers
Readme
grunt-npm-helper
grunt-npm-helper is a grunt binding for npm. It provides the full command line API of npm through grunt configuration.
Getting Started
This plugin requires Grunt ^0.4.0
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-npm-helper --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('npm');
Usage example
- args mimics the command line API for npm
- options mimics the configuration API for npm
grunt.initConfig({
npm: {
publish: {
args: ["publish"],
options: {
registry: "https://mypersonalregistry",
"strict-ssl": false,
json: true
}
}
}
});
The following configuration options are supported:
- _exit
- always-auth
- argv
- bin-links
- browser
- cache
- cache-lock-retries
- cache-lock-stale
- cache-lock-wait
- color
- depth
- description
- dev
- editor
- engine-strict
- fetch-retries
- fetch-retry-factor
- fetch-retry-maxtimeout
- fetch-retry-mintimeout
- force
- git
- git-tag-version
- global
- globalconfig
- group
- heading
- ignore-scripts
- init-module
- init.author.email
- init.author.name
- init.author.url
- init.license
- init.version
- json
- link
- loglevel
- logstream
- long
- message
- node-version
- npat
- onload-script
- optional
- parseable
- prefix
- production
- proprietary-attribs
- rebuild-bundle
- registry
- rollback
- save
- save-bundle
- save-dev
- save-exact
- save-optional
- save-prefix
- scope
- searchexclude
- searchopts
- searchsort
- shell
- shrinkwrap
- sign-git-tag
- spin
- tag
- tmp
- umask
- unicode
- unsafe-perm
- usage
- user
- user-agent
- userconfig
- viewer