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

@es-pkg/gulp

v1.0.1

Published

gulp node执行

Downloads

7

Readme

@es-pkg/gulp

gulp node执行

NPM Version  NPM Version  unpacked size  Author

📦 Installation

npm install @es-pkg/gulp

🏠 Exports

|参数|类型| |---|---| |🐕Gulp|Classes| |☀️default|Variables| |🎗️lastRun|Functions| |🎗️parallel|Functions| |🎗️registry|Functions| |🎗️series|Functions| |🎗️task|Functions| |🎗️tree|Functions|

🐕Classes

Gulp

|参数|类型|说明|默认值| |---|---|---|---| |__constructor|* new Gulp(): Gulp||| |Gulp|: undefined | typeof Gulp||| |dest|: ((folder:string | ((file:File) => string), opt?:DestOptions) => __global.NodeJS.ReadWriteStream) = vfs.dest||vfs.dest| |src|: ((globs:string | string[], opt?:SrcOptions) => __global.NodeJS.ReadWriteStream) = vfs.src||vfs.src| |symlink|: ((folder:string | ((File:File) => string), opts?:{}) => __global.NodeJS.ReadWriteStream) = vfs.symlink||vfs.symlink| |watch|* watch(globs:GulpClient.Globs, fn?:Undertaker.TaskFunction): "fs".FSWatcher

  • watch(globs:GulpClient.Globs, opts?:GulpClient.WatchOptions, fn?:Undertaker.TaskFunction): "fs".FSWatcher|||

☀️Variables

Const gulp

: Gulp = ...

🎗️Functions

lastRun

  • Takes a string or function (task) and returns a timestamp of the last time the task was run successfully. The time will be the time the task started. Returns undefined if the task has not been run.

  • lastRun(task:Undertaker.Task, timeResolution?:number): number

parallel

  • Takes a variable amount of strings (taskName) and/or functions (fn) and returns a function of the composed tasks or functions. Any taskNames are retrieved from the registry using the get method. When the returned function is executed, the tasks or functions will be executed in parallel, all being executed at the same time. If an error occurs, all execution will complete.

  • parallel(...tasks:Undertaker.Task[]): Undertaker.TaskFunction

  • Takes a variable amount of strings (taskName) and/or functions (fn) and returns a function of the composed tasks or functions. Any taskNames are retrieved from the registry using the get method. When the returned function is executed, the tasks or functions will be executed in parallel, all being executed at the same time. If an error occurs, all execution will complete.

  • parallel(tasks:Undertaker.Task[]): Undertaker.TaskFunction

registry

  • Returns the current registry object.

  • registry(): UndertakerRegistry

  • The tasks from the current registry will be transferred to it and the current registry will be replaced with the new registry.

  • registry(registry:UndertakerRegistry): void

series

  • Takes a variable amount of strings (taskName) and/or functions (fn) and returns a function of the composed tasks or functions. Any taskNames are retrieved from the registry using the get method. When the returned function is executed, the tasks or functions will be executed in series, each waiting for the prior to finish. If an error occurs, execution will stop.

  • series(...tasks:Undertaker.Task[]): Undertaker.TaskFunction

  • Takes a variable amount of strings (taskName) and/or functions (fn) and returns a function of the composed tasks or functions. Any taskNames are retrieved from the registry using the get method. When the returned function is executed, the tasks or functions will be executed in series, each waiting for the prior to finish. If an error occurs, execution will stop.

  • series(tasks:Undertaker.Task[]): Undertaker.TaskFunction

task

  • Returns the wrapped registered function.

  • task(taskName:string): undefined | Undertaker.TaskFunctionWrapped

  • Register the task by the taskName.

  • task(taskName:string, fn:Undertaker.TaskFunction): void

  • Register the task by the name property of the function.

  • task(fn:Undertaker.TaskFunction): void

tree

  • Optionally takes an object (options) and returns an object representing the tree of registered tasks.

  • tree(options?:Undertaker.TreeOptions): Undertaker.TreeResult