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 🙏

© 2026 – Pkg Stats / Ryan Hefner

gulp-tron

v0.9.5

Published

Easy to use gulp build manager

Readme

gulp-tron

npm package node compatibility build status

Easy-to-use, configuration-driven build manager for Gulp projects.

  • Simple task creation through configuration
  • Fluent API for manipulating build streams
  • Dependency management for task execution
  • Automatic generation of @clean and @watch tasks
  • BrowserSync integration for watch workflows
  • Plugin support for extending and reusing build processes

Installation

You can use any package manager of your choice. Here are some examples:

bun add -d gulp gulp-tron
# or
npm i --save-dev gulp gulp-tron
# or
pnpm add -D gulp gulp-tron
# or
yarn add -D gulp gulp-tron

gulp is a peer dependency and should be installed alongside gulp-tron.

Quick example

import tron from "gulp-tron";

const scripts = {
  name: "scripts",
  src: "src/**/*.js",
  dest: "dist/js",
  build: (bs) => bs.src().pipe(/* plugin */).dest(),
};

const build = {
  name: "@build",
  triggers: tron.parallel(scripts),
  clean: "dist",
};

tron.task(scripts);
tron.task(build).addCleaner().addWatcher();

You can inspect the generated task list with:

npx gulp --tasks

Output:

Tasks for ./gulpfile.js
├── scripts
├── @build
├── @clean
└── @watch

Core concepts

Tron

The tron instance manages tasks and builds dependency trees.

import tron from "gulp-tron";

tron.task({
  name: "build",
  src: "src/**/*.js",
  dest: "dist",
  build: (bs) => bs.src().dest(),
});

TaskConfig

A task is generally described as a TaskConfig object:

const conf = {
  name: "scripts",
  src: "src/**/*.js",
  dest: "dist/js",
  build: (bs) => bs.src().dest(),
  dependsOn: ["shared"],
  triggers: ["notify"],
};

BuildStream

A BuildStream instance is created for each task execution and provides fluent API such as:

  • src() / add() / remove() / filter()
  • rename() / order() / changed()
  • copy() / del() / clean() / exec()
  • dest() / reload() / debug() / pipe()

API overview

Tron methods

  • task() — register a task by config or name
  • createTasks() — register multiple tasks
  • addCleaner() — create an auto-generated @clean task
  • addWatcher() — create an auto-generated @watch task
  • series() / parallel() — build task groups
  • selectTasks() / selectTasksAll() / findTask() — task lookup helpers

BuildStream methods

  • src(), add(), remove(), filter(), rename(), order()
  • changed(), copy(), del(), clean(), exec()
  • dest(), reload(), clear(), clone()
  • promise(), chain(), pipe(), debug(), through()
  • sync(), finish(), log()

Cleaner and watcher patterns

tron
  .task({
    name: "styles",
    src: "src/**/*.scss",
    dest: "dist/css",
    build: (bs) => bs.src().pipe(/* sass plugin */).dest(),
    clean: "dist/css",
    watch: "src/**/*.scss",
  })
  .addCleaner()
  .addWatcher({
    browserSync: { server: "dist" },
  });

This creates:

  • styles task
  • @clean task from the task's clean property
  • @watch task from the task's watch or src property

Related docs

License

MIT