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

generator-coffee-karma

v0.1.2

Published

A generator for Yeoman to scaffold a CoffeeScript project, easily testable with Karma (Jasmine)

Readme

Generator CoffeeScript & Karma

A Yeoman generator to scaffold CoffeeScript projects, test it with karma (Jasmine) and run build tasks with Grunt.

Installation

First you need to install the generator on your machine. Use npm to global install the generator;

npm install -g generator-coffeescript-karma

Run 'yo coffee-karma' or 'yo' inside the project root and select the 'Coffee Karma' generator. More information about generators on Yeoman.

yo coffee-karma

or

yo

Yeoman will create a project with the following structure:

.
├── dist
│   │── projectName.js
│   └── projectName.min.js
├── lib (If bower packages installed)
├── node_modules
├── src
|   └── coffee
│       ├── projectName.coffee
│       └── classes
│           └── main.class.coffee
├── test
|   └── coffee    
│       ├── projectName.test.coffee
│       └── classes
│           └── main.class.test.coffee
├── .gitignore
├── bowerrc
├── bower.json
├── package.json
├── gruntfile.coffee
├── karma.config.coffee
└── README.md

Git ignores lib & node_modules

That's all there is to it! You can start coding, testing and building right out of the box!

Usage

Testing

Great, you are ready to write awesome code! But off course, you want to run tests, lots and lots of tests. Start Karma by running the 'grunt karma' command in the terminal.

grunt karma

This project uses the grunt-karma module. It works right away! Info about customization can be found at grunt-karma.

Karma shows the test reports directly in the terminal. If you prefer a html based test report go to 'server/port/debug.html' while 'grunt karma' is running. Most likely this url is;

http://localhost:9876/debug.html

It is possible you have to refresh to get the last report

At this moment, only chrome comes out of the box. If you would like to use another browser-launchers, install the launcher with npm and edit the 'browsers' registration method in the 'karma.config.coffee' file.

Find more browser launchers

Compiling

You could run 'grunt' in the terminal to compile & uglify the CoffeeScript files manually.

grunt

If you would like to compile & uglify coffeeScript automatically on file change, activate the grunt watcher. This is easily done by running the 'grunt watch' command in the terminal.

grunt watch

Building & Deploying

If your code is ready for production, simply run 'grunt:patch', 'grunt:minor' or 'grunt:major' in your terminal to deploy on github. This will do a few things;

  1. Compile CoffeeScript to JavaScript.
  2. Build 'projectName.js' & 'projectName.min.js' and save it in './dist'.
  3. Update the version number and create an new release.
  4. Commit & push new release to github (make sure the project is a github repo).

For a patch commit & push, just run 'grunt patch'. (v0.0.1 to v0.0.2)

grunt patch

For a minor commit & push, run 'grunt minor'. (v0.0.2 to v0.1.0)

grunt minor

for a major commit & push, run 'grunt major'. (v0.1.0 to v1.0.0)

grunt major

Copyright 2015 Lesley Duyndam

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.