pie

The smarter JS build tool

npm install pie
43 downloads in the last month
           /$$
          |__/
  /$$$$$$  /$$  /$$$$$$
 /$$__  $$| $$ /$$__  $$
| $$  \ $$| $$| $$$$$$$$
| $$  | $$| $$| $$_____/
| $$$$$$$/| $$|  $$$$$$$
| $$____/ |__/ \_______/
| $$
| $$
|__/

pie is a build tool for Node.js-based projects. It's similar to Cake, but adds smart dependency tracking so only the files that need to get rebuilt will be (like good old Make).

If you're experiencing pain using Cake or Rake or even Make for large JS projects, pie may just be your answer.

Features

  • Flexible DSL for defining exactly the tasks and build targets you need (loose superset of Cake syntax)
  • Smart dependecy tracking for fast incremental builds
  • Built-in auto-watch with smart recalculation of changes
  • Customizable command-line switches
  • Fast in-VM compilation of CoffeeScript, LESS, and Handlebars files (and very easy to add new ones)
  • Very fast for running git bisect on large projects due to fast incremental builds
  • Growl notifications for build completion & errors

Installation

$ npm install pie -g

Usage

Create a Piefile

For a very simple one, see the Piefile for this project: http://github.com/kenpratt/pie/blob/master/Piefile

Run a build

$ pie

Start a watcher (will keep running, watching for changes and re-compiling files as needed)

$ pie watch

If you get Error: watch EMFILE, try increasing your open file discriptor limit. You can add this to your .bashrc or .zshrc to have it apply on boot.

$ ulimit -n 1024

Run a clean build

$ pie clean build

Just clean

$ pie clean

List tasks

$ pie -T

Developing

Grab the sources

$ git clone https://github.com/kenpratt/pie.git
$ cd pie

Install dependencies

$ npm install

Bootstrap pie

$ ./bin/bootstrap

Try it out

$ pie
$ pie -T

Copyright (c) 2012 Ken Pratt. See LICENSE for details.

npm loves you