npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@futagoza/gulpx

v1.0.0

Published

Custom drop-in variants of the Gulp client and Gulp CLI

Downloads

8

Readme

A custom variant of the Gulp client (to use from within a gulpfile.js) as well as a custom variant of the Gulp CLI.

client

  • No need to use pump, stream.pipeline or @futagoza/pump when using gulp.task, just return an array
  • No need to use gulp.src with { read: false }; with gulp.path, the read option is always false
  • Exports both pipeline and pump from @futagoza/pump, so no need to include in your package.json
const gulp = require( "@futagoza/gulpx" );

// Buisness as usual...
gulp.dest
gulp.lastRun
gulp.Gulp
gulp.series
gulp.parallel
gulp.registry
gulp.src
gulp.symlink
gulp.tree

// Modified
gulp.task

// Added
gulp.path
gulp.pipeline
gulp.pump

// Removed
gulp.watch

For a better understanding of the API, please take a look at the TypeScript definition file.

cli

The CLI for @futagoza/gulpx use's the gulp command, so no need to change your workflow.

  • Exported by default from @futagoza/gulpx/bin/index.js (API usage is in the JavaScript example below)
  • Will treat all command line arguments as task names untill the first argument that starts with -
  • By default looks for the Gulp client before looking for the @futagoza/gulpx client
  • Always runs the requested tasks in series
  • Displays the number of requested tasks completed at the end
const { main, lookup } = require( "@futagoza/gulpx/bin" );

// Your custom settings to pass to the `@futagoza/gulpx` CLI (all optional)
const settings = {

    // A resolved path to a javascript (or json) file exporting default settings
    config,

    // A resolved path to a client (defaults to 'gulp' or '@futagoza/gulpx')
    clientfile,

    // The name of the resolved client (defaults to 'gulp' or '@futagoza/gulpx')
    clientname,

    // The current working directory
    cwd,

    // A resolved path to a javascript file that provides the Gulp tasks (defaults to 'gulpfile.js')
    provider,

    // A list of tasks to run (defaults to 'default')
    requests,

};

// Returns the nearest `filename` to the given `cwd`
lookup.file( cwd, filename )

// Will attempt to resolve one of the given `modules` from `cwd`
lookup.dependency( cwd, modules )

// Will execute Gulp tasks in a Promise, so no need to `try..catch` it
main( settings );

WARNING: The @futagoza/gulpx CLI has no option or flag of its own, and no task listing functionality.


History license

@futagoza/gulpx is Copyright (c) 2018+ Futago-za Ryuu