You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

gulp-just-spawn

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-just-spawn

Shell runner for gulp - Because there is not enough spawn/exec wrappers on the Internet

1.0.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

gulp-just-spawn

Because there is not enough spawn/exec wrappers on the Internet

NPM version

Main driver is the fact that sometimes build scripts require just running commnds. This package is about to reduce boilerplate. Nothing fancy.

  • Requires Promise to be awialable globally
  • Designed to work with gulp Promise support
  • Wrapper around spawn, all docs from spawn is relevant

Usage

First, install gulp-just-spawn as a development dependency:

npm install --save-dev gulp-just-spawn

Then add use it in your gulpfile, like so (note these are only examples, please check the documentation for your functions for the correct way to use them):

var gulp = require('gulp');
var spawn = require('gulp-just-spawn');

// Run single command

gulp.task('deploy', () => spawn('eb', ['deploy', 'production']));

// Run multiple command sequentually

gulp.task('build:client', () => spawn([
  {cmd: 'npm', args: ['install'], options: {cwd: `${__dirname}/client`}},
  {cmd: 'npm', args: ['run', 'build'], options: {cwd: `${__dirname}/client`}}  
]));

LICENSE

MIT License

Keywords

gulpfriendly

FAQs

Package last updated on 27 May 2016

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