Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-npm

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-npm

A set of helpers for dealing with NPM from Grunt.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
568
decreased by-38.33%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-npm

**A set of Grunt tasks for dealing with NPM.

Installation

Install npm package, next to your project's Gruntfile.js file:

npm install grunt-npm --save-dev

Add this line to your project's Gruntfile.js:

grunt.loadNpmTasks('grunt-npm');

Tasks

grunt npm-show (also aliased as show)

Show all the files that would be published to NPM. This is useful if you wanna make sure you are not publishing files you don't want to...

grunt npm-publish (also aliased as publish)

Configuration
'npm-publish': {
  options: {
    // list of tasks that are required before publishing
    requires: ['build'],
    // if the workspace is dirty, abort publishing (to avoid publishing local changes)
    abortIfDirty: true,
    // can also be a function that returns NPM tag (eg. to determine canary/latest tag based on the version)
    tag: 'canary'
  }
}

grunt npm-contributors (also aliased as contributors)

Update contributors in package.json - all developers who commited to the repository, sorted by number of commits. A .mailmap file can be used to map multiple emails to a single person.

Configuration
'npm-contributors': {
  options: {
    file: 'package.json',
    commit: true,
    commitMessage: 'Update contributors'
  }
}

FAQs

Package last updated on 17 Jun 2013

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