# gulp-cola

> ColaScript compiler plugin for Gulp.

Latest version **0.1.3** (published 2015-01-04) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install gulp-cola
pnpm add gulp-cola
yarn add gulp-cola
bun add gulp-cola
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2015-01-04 |
| First published | 2014-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.9 |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dan Onoshko |
| Maintainers | dangreen |
| Keywords | gulpplugin, cola, colascript, cola-script |

## Links

- npm: https://www.npmjs.com/package/gulp-cola
- Repository: https://github.com/TrigenSoftware/gulp-cola
- Homepage: https://github.com/TrigenSoftware/gulp-cola/
- Issues: https://github.com/TrigenSoftware/gulp-cola/issues
- npm.io page: https://npm.io/package/gulp-cola

## Dependencies (4)

- [through2](https://npm.io/package/through2.md) ~0.4.0
- [deepmerge](https://npm.io/package/deepmerge.md) ~0.2.7
- [gulp-util](https://npm.io/package/gulp-util.md) ~2.2.14
- [cola-script](https://npm.io/package/cola-script.md) ~0.8.2

## Recent versions

- 0.1.3 (latest) — 2015-01-04
- 0.1.2 — 2014-05-26
- 0.1.1 — 2014-05-23
- 0.1.0 — 2014-05-23

## README

*Gulp Cola*
==========

[ColaScript](https://github.com/TrigenSoftware/ColaScript) compiler plugin for Gulp.

## Installation

Firstly, make sure you have installed the latest version of [node.js](http://nodejs.org/)
(You may need to restart your computer after this step).

From NPM for programmatic use:

```
$ npm install gulp-cola
```

## Usage

```javascript
var cola = require('gulp-cola');

gulp.task('compile', function() {
    gulp.src('app/*.cola')
        .pipe(cola())
        .pipe(gulp.dest('dist'))
});
```

## Options

- `is_node`       

	Pass `true` to compilation for node.

- `modules` 

    Pass an object if you wish to specify [modules](https://github.com/TrigenSoftware/ColaScript/wiki/Modules).

- `main_binding `

    Pass `false` to disable wrapping of `main` function.

- `mangle`

	Pass `false` to skip mangling names.

- `output`

	Pass an object if you wish to specify additional [output
	options](http://lisperator.net/uglifyjs/codegen). The defaults are
	optimized for best compression.

- `compress`

	Pass an object to specify custom [compressor
	options](http://lisperator.net/uglifyjs/compress). Pass `false` to skip
	compression completely.

- `preserveComments`

	A convenience option for `options.output.comments`. Defaults to preserving no
	comments.

	- `all`

		Preserve all comments in code blocks

	- `some`

		Preserve comments that start with a bang (`!`) or include a Closure
		Compiler directive (`@preserve`, `@license`, `@cc_on`)

	- `function`

		Specify your own comment preservation function. You will be passed the
		current node and the current comment and are expected to return either
		`true` or `false`.

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