# polybuild

> > An all-in-one build tool for Polymer apps

Latest version **1.1.0** (published 2015-12-19) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install polybuild
pnpm add polybuild
yarn add polybuild
bun add polybuild
```

Provides the command `polybuild`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2015-12-19 |
| First published | 2015-05-22 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 73 |
| Author | The Polymer Authors |
| Maintainers | azakus, garlicnation, polymer |

## Links

- npm: https://www.npmjs.com/package/polybuild
- Repository: https://github.com/PolymerLabs/hydrazine
- Homepage: https://github.com/PolymerLabs/hydrazine#readme
- Issues: https://github.com/PolymerLabs/hydrazine/issues
- npm.io page: https://npm.io/package/polybuild

## Dependencies (8)

- [nopt](https://npm.io/package/nopt.md) ^3.0.6
- [lazypipe](https://npm.io/package/lazypipe.md) ^1.0.1
- [vinyl-fs](https://npm.io/package/vinyl-fs.md) ^2.2.1
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.7
- [polyclean](https://npm.io/package/polyclean.md) ^1.2.0
- [gulp-rename](https://npm.io/package/gulp-rename.md) ^1.2.2
- [gulp-crisper](https://npm.io/package/gulp-crisper.md) ^1.0.0
- [gulp-vulcanize](https://npm.io/package/gulp-vulcanize.md) ^6.1.0

## Recent versions

- 1.1.0 (latest) — 2015-12-19
- 1.0.5 — 2015-07-16
- 1.0.4 — 2015-07-16
- 1.0.3 — 2015-05-28
- 1.0.2 — 2015-05-25
- 1.0.1 — 2015-05-22
- 1.0.0 — 2015-05-22

## README

# Polybuild
> An all-in-one build tool for Polymer apps

Polybuild combines [vulcanize](http://npmjs.com/package/vulcanize), [crisper](http://npmjs.com/package/crisper), and [polyclean](http://npmjs.com/package/polyclean) into one easy to use solution for optimizing Polymer applications for production.

Polybuild exposes a gulp plugin, and a small command line tool to fit your build environment.

## Command Line Tool

Install:
```
npm install -g polybuild
```

Use:
```
polybuild index.html
```

Output: `index.build.html` and `index.build.js`

The equivalent command line usage is:

```
vulcanize --inline-css --inline-scripts --strip-comments index.html | polyclean | crisper --html index.build.html --js index.build.js
```

## Gulp Plugin

Install:
```
npm install polybuild
```

Use in `gulpfile.js`:
```javascript
var gulp = require('gulp');
var polybuild = require('polybuild');

gulp.task('build', function() {
  return gulp.src('index.html')
  .pipe(polybuild())
  .pipe(gulp.dest('.'))
;
})
```

Output: `index.build.html` and `index.build.js`

The equivalent `gulp` pipeline is found in [index.js](https://github.com/PolymerLabs/polybuild/tree/master/index.js)


## Options

PolyBuild has two options: "maximum crush" and "suffix". First option affects whether the output javascript is minified, or only has whitespace removed, second option needed if you want change default "build" suffix.

If you have a more advanced use case than is provided, please copy the equivalent portions of the command line or gulp internals as a starting point.

Example of options usage on the command line with flags:

```
polybuild index.html --maximum-crush --suffix customsuffix
```
which will output the file `index.customsuffix.html`

You can use options in gulp, like in this example

```javascript
//...
.pipe(polybuild({maximumCrush: true, suffix: 'build'})
//...
```

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