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

undertaker-registry

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

undertaker-registry

undertaker-registry ===================

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
264K
decreased by-79.75%
Maintainers
1
Weekly downloads
 
Created

What is undertaker-registry?

The undertaker-registry npm package is used to manage and organize tasks in Gulp, a popular JavaScript task runner. It allows developers to register, retrieve, and manage tasks in a modular way, making it easier to maintain and scale build processes.

What are undertaker-registry's main functionalities?

Registering Tasks

This feature allows you to register tasks using a custom registry. The code sample demonstrates how to create a custom registry by extending the Registry class and registering a 'default' task.

const { Registry } = require('undertaker-registry');
const { task } = require('gulp');

class MyRegistry extends Registry {
  init(taker) {
    taker.task('default', function(cb) {
      console.log('default task');
      cb();
    });
  }
}

task.registry(new MyRegistry());
task('default')();

Retrieving Tasks

This feature allows you to retrieve tasks that have been registered. The code sample shows how to retrieve and execute a 'build' task from a custom registry.

const { Registry } = require('undertaker-registry');
const { task } = require('gulp');

class MyRegistry extends Registry {
  init(taker) {
    taker.task('build', function(cb) {
      console.log('build task');
      cb();
    });
  }
}

task.registry(new MyRegistry());
const buildTask = task('build');
buildTask();

Modular Task Management

This feature allows you to manage tasks in a modular way, making it easier to maintain and scale your build processes. The code sample demonstrates how to register and execute multiple tasks ('clean' and 'build') using a custom registry.

const { Registry } = require('undertaker-registry');
const { task } = require('gulp');

class MyRegistry extends Registry {
  init(taker) {
    taker.task('clean', function(cb) {
      console.log('clean task');
      cb();
    });
    taker.task('build', function(cb) {
      console.log('build task');
      cb();
    });
  }
}

task.registry(new MyRegistry());
task('clean')();
task('build')();

Other packages similar to undertaker-registry

Keywords

FAQs

Package last updated on 14 Sep 2014

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