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 🙏

© 2025 – Pkg Stats / Ryan Hefner

gulp-categorized-tasks

v2.0.2

Published

Display a help dialog describing gulp tasks broken out by configurable categories.

Readme

gulp-categorized-tasks

Display a help dialog describing gulp tasks broken out by configurable categories. This can be helpful for gulpfile authors to communicate task information to their dev team.

Dependecies are discovered and listed automatically.

Missing tasks will be called out as warning messages.

Usage

Install using:

npm i --save-dev gulp-categorized-tasks

Then add it to your gulpfile like so:

var gulp = require('gulp');
var categorizedTasks = require('gulp-categorized-tasks');

Add a task to render the output

gulp.task('tasks', function() {
    let taskCategories = [
        {
            'App Development Tasks': [
                ['default', 'Builds all app assets then begins watching'],
                ['dev-build', 'Builds all app assets without watching'],
                ['build-js', 'Compiles and bundles all app .ts files'],
                ['watch-app', 'Watches for changes on app assets'],
                ['sass-app', 'Compiles and bundles all app .scss files']
            ]
        },
        {
            'Website Development Tasks': [
                ['watch-public', 'Watches for changes on website assets'],
                ['public-bundle-templates', 'Converts html templates to js and bundles them'],
                ['sass-public', 'Compiles and bundles all website .scss files']
            ]
        },
        {
            Tests: [['test', 'Runs unit tests']]
        }
    ];
    categorizedTasks(taskCategories);
});

Now run gulp tasks and you'll see:

 App Development Tasks
╔═══════════╤════════════════════════════════════════════╤═════════════════════════════════════════════════════════════════╗
║ Task      │ Description                                │ Dependencies                                                    ║
╟───────────┼────────────────────────────────────────────┼─────────────────────────────────────────────────────────────────╢
║ (default) │ Builds all app assets then begins watching │ devBuild                                                        ║
║ dev-build │ Builds all app assets without watching     │ test, bundle-templates, sass-app, build-js                      ║
║ build-js  │ Compiles and bundles all app .ts files     │ 'ts-compile', 'bundle-app'                                      ║
║ watch-app │ Watches for changes on app assets          │ livereload, watch-razor, watch-reload-css                       ║
║ sass-app  │ Compiles and bundles all app .scss files   │ sass-app-base, sass-app-mods, sass-app-modules, sass-app-vendor ║
╚═══════════╧════════════════════════════════════════════╧═════════════════════════════════════════════════════════════════╝


 Website Development Tasks
╔═════════════════════════╤════════════════════════════════════════════════╤═══════════════════════════════════════════╗
║ Task                    │ Description                                    │ Dependencies                              ║
╟─────────────────────────┼────────────────────────────────────────────────┼───────────────────────────────────────────╢
║ watch-public            │ Watches for changes on website assets          │ livereload, watch-razor, watch-reload-css ║
║ public-bundle-templates │ Converts html templates to js and bundles them │                                           ║
║ sass-public             │ Compiles and bundles all website .scss files   │                                           ║
╚═════════════════════════╧════════════════════════════════════════════════╧═══════════════════════════════════════════╝


 Tests
╔══════╤═════════════════╤══════════════╗
║ Task │ Description     │ Dependencies ║
╟──────┼─────────────────┼──────────────╢
║ test │ Runs unit tests │ csproj       ║
╚══════╧═════════════════╧══════════════╝

API

The categorizedTasks() method expects a JSON configuration made up of an array containing one or more objects. Each object should have a key/value pair where the key is the Category and the value is an array. Each of those arrays should contain 2 values: the task name and the task description. (See example above)

[
  {
    'category': [
      ['task-name': 'task description']...
    ]
  }...
]