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

shipit-utils

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shipit-utils

## Install

  • 1.4.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4.5K
decreased by-25.25%
Maintainers
1
Weekly downloads
 
Created
Source

shipit-utils

Install

npm install --save shipit-utils

Usage

var utils = require('shipit-utils');

Methods

utils.getShipit(gruntOrShipit)

Returns the Shipit object, regardless of your context (Grunt or Shipit).

var shipit = utils.getShipit(gruntOrShipit);

utils.registerTask(gruntOrShipit, name, [description,] task)

Register a task, regardless of your context (Grunt or Shipit).

The description arguement is optional, and will only try to pass along a task description if you are using Grunt (it will be ignored if you are using Shipit).

task Fn|Array<String>

Task function or array of task names to run in order. Note: If in a Grunt context and passing an array of task names, task will always be synchronous/blocking.

Examples
var task = function() {
    return shipit.local('sleep 10s');
};

// Register a (blocking) task
utils.registerTask(gruntOrShipit, 'myTask', task);

// Run a series of tasks in order
utils.registerTask(gruntOrShipit, 'myTask', ['some', 'other', 'tasks']);

utils.runTask(gruntOrShipit, task)

Run a task or array of tasks, regardless of your context (Grunt or Shipit).

task String|Array<String>

utils.equalValues(values)

Test to see if all the values in an array are equal. Useful for determining if multiple remote servers are out of sync.

values Array

License

MIT

FAQs

Package last updated on 08 Nov 2018

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