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

wulp

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wulp

Gulp tasks that can be run directly or as part of a watch task.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

wulp NPM version

Wulp allows you to define Gulp tasks that can be run directly, and also via a watch task.

Registering Wulp

Wulp tasks don't do anything on their own; you must first register them with gulp via wulp.register:

// Registers all wulp tasks as gulp tasks, and creates a task called `watch`
// that watches for changes.
wulp.register(gulp, 'watch');

Defining a Task

var eslint = require('gulp-eslint');
var gulp = require('gulp');
var wulp = require('wulp');

// A wulp task is defined similarly to regular gulp tasks, except it is _given_
// the files it should execute over.
//
// When being run directly, this is whatever files match the glob.  When being
// run via the watch task, it is whatever matching files have changed.
wulp.task('test:style', ['{src,test}/**/*.js'], (srcs) => {
  return srcs
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(eslint.failAfterError());
});

Advanced Options

Wulp tasks support additional configuration via a third argument:

wulp.task('test:style', ['{src,test}/**/*.js'], {runAll: ['.eslintrc*']}, (srcs) => {

The supported options are:

runAll: Accepts an array of glob expressions. When a file matching that expression changes, the task will be run with all files matching the primary glob. Great for re-running all tests after changing test configuration, for example.

License

This project is covered under the Apache License, version 2.0.

Keywords

FAQs

Package last updated on 28 Dec 2015

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