Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhuowenli/gulp-ztpl
https://github.com/zhuowenli/gulp-ztpl
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zhuowenli/gulp-ztpl
- Owner: zhuowenli
- Created: 2016-05-23T03:16:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-25T14:25:51.000Z (about 8 years ago)
- Last Synced: 2024-10-12T09:11:13.989Z (about 1 month ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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)