# gulp-ztpl

> the gulp plugin for tmodjs

Latest version **1.0.1** (published 2016-09-25) · MIT license · 0 weekly downloads

## Install

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

## 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.0.1 |
| Published | 2016-09-25 |
| First published | 2016-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+4 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | zhuowenli |
| Maintainers | zhuowenli |
| Keywords | gulpplugin, tmodjs |

## Links

- npm: https://www.npmjs.com/package/gulp-ztpl
- Repository: https://github.com/zhuowenli/gulp-ztpl
- Issues: https://github.com/zhuowenli/gulp-ztpl/issues
- npm.io page: https://npm.io/package/gulp-ztpl

## Dependencies (5)

- [semver](https://npm.io/package/semver.md) 2.3.0
- [through2](https://npm.io/package/through2.md) ^2.0.0
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.0
- [uglify-js](https://npm.io/package/uglify-js.md) 2.4.0
- [art-template](https://npm.io/package/art-template.md) 3.0.x

## Recent versions

- 1.0.1 (latest) — 2016-09-25
- 1.0.0 — 2016-05-23

## README

# gulp-ztpl

> [tmodjs](https://github.com/aui/tmodjs)'s gulp version.

## Install

```sh
$ npm install gulp-ztpl --save-dev
```

## Usage

```javascript
var tmodjs = require('gulp-ztpl');

gulp.task('default', function(){

	return gulp.src('./test/tpl/**/*.html')
			.pipe(tmodjs({
				base: './test/tpl',
				combo: true,
				output: './test/dist'
			}));

});
```

## Watch

```javascript
gulp.task('watch', function(){
	return gulp.src('./test/tpl/**/*.html')
			.pipe(watch(function(files){
				files.pipe(tmodjs({
					base: './test/tpl',
					combo: true,
					output: './test/dist'
				}));
			}));
});
```
More see [gulp-watch](https://github.com/floatdrop/gulp-watch)

## Test

```sh
$ npm test
```

## More

See [__tmodjs__](https://github.com/aui/tmodjs)

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