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

evident-gulp-build

v0.2.8

Published

shared code for gulp builds

Readme

evident-gulp-build

Common builds for Angular apps using Browserify, Sass, TypeScript, etc.

NPM version Dependency status

Getting started

To get started, execute npm install --save-dev gulp evident-gulp-build and create gulpfile.js with the following configuration:

var gulp = require('gulp');
var evidentGulpBuild = require('evident-gulp-build');

evidentGulpBuild.registerDefaultTasks(gulp);

This will define a bunch of default tasks using default configuration. You can configure the tasks to some extend, override them or add your own tasks if you will.

Project structure

The input project is assumed to have the following directory structure:

  • app contains JavaScript/TypeScript-code, Angular HTML-templates, styles, images, etc. Almost everything goes here. How you structure the application inside this directory is up to you, but the main entry point is assumed to be app/main.js or app/main.ts.
  • views contains Handlebar-templates that are converted to HTML during build time. These are not Angular templates, but typically things like the initial entry point of your application. If you are generating views dynamically with JSP or such, you might not have this directory at all.
  • test/unit contains unit tests that are executed using Karma.
  • test/e2e contains end-to-end tests that are executed using Protractor.

Then there are some directories for external libraries and such:

  • node_modules contains libraries downloaded by npm.
  • bower_components contains libraries downloaded by Bower.
  • typings contains TypeScript definition files downloaded by tsd.

Finally, there are the output directories:

  • build/egb/optimized contains the final build with all optimizations performed.
  • build/egb/static contains a static build you can serve when developing.
  • build/egb/tmp contains temporary files created during build.

Interesting tasks

  • watch compiles everything into build/egb/static and starts watching for changes in the background.
  • build creates an optimized build into build/egb/optimized.

Settings

The settings are exposed in a settings property of the module, so you can write something like the following:

evidentGulpBuild.settings.traceur.enabled = false;
evidentGulpBuild.settings.typescript.flags.noImplicitAny = false;

See lib/settings.js for details.

Variables

The object evidentGulpBuild.settings.variables is exposed both to envify-transform and to Handlebars-templates which allows you to have some build-variables. You could, for example have:

gulp.task('build-production', function () {
    Object.assign(settings.variables, {
        GA_ID: '12345678-9',
        DEBUG_LOGGING: false
    });
    return gulp.start('build');
});

Moreover, there is a predefined variable EGB_SCM_VERSION that contains git-version from which the build was made.