Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lichunqiang/gulp-tmod
grunt-tmod gulp version
https://github.com/lichunqiang/gulp-tmod
gu gulp tmodjs
Last synced: about 2 months ago
JSON representation
grunt-tmod gulp version
- Host: GitHub
- URL: https://github.com/lichunqiang/gulp-tmod
- Owner: lichunqiang
- Created: 2014-07-15T02:12:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-22T11:32:08.000Z (almost 9 years ago)
- Last Synced: 2024-04-29T04:04:51.329Z (8 months ago)
- Topics: gu, gulp, tmodjs
- Language: JavaScript
- Size: 26.4 KB
- Stars: 31
- Watchers: 4
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gulp-tmod [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][david-dm-image]][david-dm-url]
[npm-url]: https://badge.fury.io/js/gulp-tmod
[npm-image]: https://badge.fury.io/js/gulp-tmod.png
[travis-url]: https://travis-ci.org/lichunqiang/gulp-tmod
[travis-image]: https://travis-ci.org/lichunqiang/gulp-tmod.png?branch=master
[david-dm-url]: https://david-dm.org/lichunqiang/gulp-tmod
[david-dm-image]: https://david-dm.org/lichunqiang/gulp-tmod.png?theme=shields.io__Notice: Please read this [issue](https://github.com/lichunqiang/gulp-tmod/issues/7)__
> [tmodjs](https://github.com/aui/tmodjs)'s gulp version.
## Install
```sh
$ npm install gulp-tmod --save-dev
```## Options
Similar to [tmodjs options](https://github.com/aui/tmodjs#配置) with a bit of difference.
#### output
Default: `false`We use gulp steam other than tmodjs output, so set it to false prevent tmodjs create files.
#### runtime
Type: `String`Default: `template.js`
This will be use as a path pass to [gulp-util File](https://github.com/gulpjs/gulp-util#new-fileobj)
#### templateBase
Default: `__dirname`Your template basepath.
#### minify
Minify is deprecated, we should use [gulp-uglify](https://www.npmjs.com/package/gulp-uglify)#### watch
Watch is deprecated, we should use [gulp.watch](https://github.com/gulpjs/gulp/blob/master/docs/API.md#gulpwatchglob-opts-tasks)## Usage
```javascript
var tmodjs = require('gulp-tmod');gulp.task('default', function(){
var stream = gulp.src('template/**/*.html')
.pipe(tmodjs({
templateBase: 'template'
}))
.pipe(gulp.dest('dist'));
return stream;
});
```## Test
```sh
$ npm test
```## Changelog
#### 2.0.0
- Tt's a breaking change since 1.0.0.## More
See [__tmodjs__](https://github.com/aui/tmodjs)
[grunt-tmod](https://github.com/Jsonzhang/grunt-tmod)
_Issues should be reported on the tmodjs [issue tracker](https://github.com/aui/tmodjs/issues)_