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

fireant

v0.0.14

Published

Simple JavaScript Task Runner

Downloads

7

Readme

Fireant

JavaScript Task Runner. Less code, everywhere.

Installation

npm install -g fireant-cli
npm install -D fireant
touch fireantfile.js

Sample fireantfile.js

var fireant = require("fireant");
var stylus = require("fireant-stylus");

// Tasks
fireant.task("watch", function() {
	fireant.watch("css/*.styl", function(file) {
    	stylus("css/index.styl").save("html/css/styles.css");
	});
});

Sample fireantfile.js with options

Fireant uses global options for plugins.

var fireant = require("fireant");
var stylus = require("fireant-stylus");
var uglify = require("fireant-uglify");
var global = require("global");

// Options
global.options = { 
    stylus: {
        minify: {
            disabled: false, // set to true to disable minify
            compatibility: "ie9",
            keepBreaks: false,
            keepSpecialComments: 0,
            mediaMerging: true,
            sourceMap: false
        },
        autoprefixer: {
            disabled: false, // set to true to disable autoprefixer
            browsers: ["last 2 versions"]
        }
    },
    uglify: {
        preserveComments: false,
        compress: true,
        mangle: true
    }
};

// Tasks
fireant.task("watch", function() {
	fireant.watch("css/*.styl", function(file) {
    	stylus("css/index.styl").save("html/css/styles.css");
	});

	fireant.watch("js/*.js", function(file) {
		uglify([
            "js/common.js",
            "js/app.js"
        ]).save("html/js/common.min.js");
    });
});

Usage

fire [tasks]

Contributing

Please do.

When developing plugins, keep in mind that every plugin should:

  • be able to receive a file name (or an array of filenames) as first argument — or —
  • get the result (string) from previous method if the argument is empty

Like this:

stylus("css/index.styl").autoprefixer().yourplugin().save("html/css/styles.css");

Or:

autoprefixer("css/index.styl").yourplugin().save("html/css/styles.css");

Release history

  • 0.0.13 - Fireant looks for changes in fireantfile.js and reloads the file
  • 0.0.12 - Press "q" to stop Fireant
  • 0.0.1 - Initial release

See changelog for other changes.

Thanks

Fireant is inspired by the work of Tero Piirainen on a very early version. Based on Gulp.js.