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-ext3order

v1.0.0

Published

A gulp plugin that will order javascript files that use ExtJS 3.4

Readme

gulp-ext3order

A gulp module that will order javascript files that use the ExtJS 3.4 framework

All files that are passed to the plugin will be scanned for class definitions and dependencies between themselves.

Installation

npm install --save-dev gulp-ext3order

Use the plugin in your gulp pipeline as any other plugin:

const {src, dest} = require('gulp');
const order = require('gulp-ext3order');
const concat = require('gulp-concat');

/*
 * A task to reorder and concatenate our javascript files
 */
const scriptsConcat = () =>
    src(['js/**/*.js'])               // use all js files found in the js dir and subdirs
        .pipe(order())                // reorder the files according to their dependencies
        .pipe(concat('debug.js'))     // concat the files
        .pipe(dest('./deploy/'));     // save the output to the deploy directory

// export the task as the default taks, so we can run `gulp` to run this task
exports.default = scriptConcat;

Class definitions

The plugin will scan for the following constructs that denote class definitions:

  • <CLASSNAME> = Ext.extend(..., ...)
  • Ext.define('<CLASSNAME>', ...)
  • @class <CLASSNAME>

The @class construct makes it possible to add annotations in (doc)comments to make a the plugin aware of a class that it wouldn't find otherwise. This makes it possible to denote a plain object as a class. E.g.:

/**
 * @class MySuperDuperClass
 */
 const MySuperDuperClass = {
	 ...
 };

Dependencies

The plugin will scan for the following constructs that denote dependencies:

  • <CLASS A> = Ext.extend(<CLASS B>, ...)
  • Ext.define(<CLASS A>, { extend: <CLASS B>, ... })
  • Ext.define(<CLASS A>, { override: <CLASS B>, ... })
  • @extends <CLASSNAME>
  • #dependsFile <FILEPATH>

The @extends and #dependsFile make it possible to explicitly specify class and file dependencies for the containing file.

Example

For an example of the plugin please see the test directory.

License

AGPL 3