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

kl-gulp-tasks

v0.3.6

Published

Gulp tasks definitions

Readme

Gentlemen's gulp task kit

A set of gulp tasks that simplify development environment for ES6-7 and Typescript. This is rather opinionated set of tasks that significantly speeds up the development at Kent and Lime.

At Kent and Lime we have many micro services and 20+ different modules those services depend on. Module development was very time consuming because in order to test how the changes we just made in sub-sub dependency would affect application, we had to recompile the module from scratch and npm install it to the app, then restart the app itself. This set of tasks made our development environment much more comfortable allowing us to spend more time perfecting our product.

Features:

  • incremental compilation for pipeline Typescript -> ES6 -> ES5 or ES7 -> ES5: now you don't have to wait until the project compiles again after that tiny fix you made.
  • end to end source mapping: now your stack traces will point to the source code.
  • npm link support for dependent modules autodiscovery: e.g. your dev server will be relaunched automatically if some if it's dependencies have been updated and recompiled.
  • TDD mode: re-running compiled tests each time something has changed in the project source files or one of the dependent modules installed via npm link
  • Source code coverage: get the real coverage information remapped to your source code.

Current limitations

  • Only Mocha test runner is supported
  • Only Istanbul coverage provider is supported
  • Mixed source (e.g. Typescript + ES7) projects are not supported
  • ~~Built-in Typescript (1.8.10) compiler is used~~ starting 0.3.6 you can set your own typescript in loadTasks method (see below)

Getting started

  1. npm install gulp kl-gulp-tasks --save-dev
  2. create a file gulpfile.js at the project root
  • for ES6/ES7 projects
require('kl-gulp-tasks').loadTasks(
{
  // application start point (optional)
  startEndpoint: '/server.js',
  // test endpoint, relative to compiled project destination (./lib)
  testEndpoint: '/test/index.js',
  // source glob to watch and compile
  source: 'src/**/*.js',
  // you can bring your own typescript version
  typescript: require('typescript'),
});
  • for Typescript projects
require('kl-gulp-tasks').loadTasks(
{
  // application start point (optional)
  startEndpoint: '/server.js',
  // test endpoint, relative to compiled project destination (./lib)
  testEndpoint: '/test/index.js',
  // source glob to watch and compile
  source: 'src/**/*.ts',
}); 

Start your Typescript or ES7 incremental compilation gulp js-run-build

Main tasks:

  • Incremental compilation: js-run-build for ES6/7 or ts-run-build for Typescript
    1. cleans up the project destination
    2. compiles the project
    3. watches for the changes
    4. compiles changes incrementally
  • Incremental compilation + tests: js-run-test for ES6/7 or ts-run-test for Typescript
    1. cleans up the project destination
    2. compiles the project
    3. runs tests
    4. watches for the changes in the source or linked modules
    5. compiles changes incrementally and reruns the tests if source or linked modules changed
  • Incremental compilation + app running: js-run for ES6/7 or ts-run for Typescript
    1. cleans up the project destination
    2. compiles the project
    3. runs the application
    4. watches for the changes in the source or linked modules
    5. compiles changes incrementally and restarts the application if source or linked modules changed
  • for the complete task list run gulp --tasks

Suggestions & PRs are very welcome.