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 🙏

© 2024 – Pkg Stats / Ryan Hefner

grunt-beep

v1.0.1

Published

Beep!

Downloads

2,549

Readme

grunt-beep

I present to you the best Grunt task ever! It beeps!

install it!

npm install grunt-beep --save-dev

load it!

grunt.loadNpmTasks('grunt-beep');

use it!

Originally I made this so I can have a beep when my watch task is done:

grunt.initConfig({
  watch: {
    files: ['*'],
    tasks: ['jshint', 'nodeunit', 'beep'],
  },
});

You can beep anywhere:

grunt.registerTask('default', ['jshint', 'nodeunit', 'beep']);

But I want more beeps!

You got it!

grunt beep:7

Seven beeps is boring can you beep me a tune?

Sure!

// shave and a haircut, two bits :D
grunt.task.run('beep:twobits');

Any other tunes?

Umm how about that "charge" one?

grunt beep:charge

Or "jaws"

grunt beep:jaws

Any more?

Uhh no... write your own:

grunt beep:**-*-**-*--**-*-**-*

Okay... how about only when Grunt has an error or warning?

Good idea!

grunt.initConfig({
  watch: {
    files: ['*'],
    // make sure you don't have spawn: false or else whenever jshint has an error,
    // beep:error will always be executed. Check https://github.com/shama/grunt-beep/issues/6 for reference.
    // only beep if jshint had an error (works with --force too!)
    tasks: ['jshint', 'beep:error'],
  },
});

or beep 3 times if jshint has a warning but only 2 if nodeunit has an error:

grunt jshint beep:warn:3 nodeunit beep:error:2

Release History

  • 1.0.0 - Peer deps are now grunt>=0.4.0
  • 0.3.2 - Fix syntax error (@toverux).
  • 0.3.1 - Close out async done() if queue.length() is zero. (@gcpantazis)
  • 0.3.0 - needs smarter beeps
  • 0.2.0 - needs more beeps
  • 0.1.0 - let there be beeps

License

Copyright (c) 2016 Kyle Robinson Young
Licensed under the MIT license.