# pie-build

> The smarter JS build tool

Latest version **0.2.1** (published 2016-11-07) · 0 weekly downloads

## Install

```sh
npm install pie-build
pnpm add pie-build
yarn add pie-build
bun add pie-build
```

Provides the command `pie`.

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2016-11-07 |
| First published | 2016-11-07 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.6.5 |
| Dependencies | 11 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Ken Pratt |
| Maintainers | kenpratt |
| Keywords | javascript, coffeescript, build, cake, make, dependencies |

## Links

- npm: https://www.npmjs.com/package/pie-build
- Repository: https://github.com/kenpratt/pie
- Issues: https://github.com/kenpratt/pie/issues
- npm.io page: https://npm.io/package/pie-build

## Dependencies (11)

- [gaze](https://npm.io/package/gaze.md) >=0.3.3
- [glob](https://npm.io/package/glob.md) >=3.1.9
- [less](https://npm.io/package/less.md) >=1.3.0
- [async](https://npm.io/package/async.md) >=0.1.18
- [growl](https://npm.io/package/growl.md) >=1.5.1
- [nstore](https://npm.io/package/nstore.md) >=0.5.1
- [node-fs](https://npm.io/package/node-fs.md) >=0.1.3
- [minimatch](https://npm.io/package/minimatch.md) >=0.2.4
- [handlebars](https://npm.io/package/handlebars.md) >=1.0.5beta
- [underscore](https://npm.io/package/underscore.md) >=1.3.3
- [coffee-script](https://npm.io/package/coffee-script.md) >=1.3.3

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2016-11-07

## README

<pre>           /$$
          |__/
  /$$$$$$  /$$  /$$$$$$
 /$$__  $$| $$ /$$__  $$
| $$  \ $$| $$| $$$$$$$$
| $$  | $$| $$| $$_____/
| $$$$$$$/| $$|  $$$$$$$
| $$____/ |__/ \_______/
| $$
| $$
|__/
</pre>

```pie``` is a build tool for [Node.js](http://nodejs.org/)-based projects. It's similar to [Cake](http://coffeescript.org/#cake), but adds **smart dependency tracking** so only the files that need to get rebuilt will be (like good old [Make](http://www.gnu.org/software/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-build -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
---------

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

---
_Source: https://npm.io/package/pie-build · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
