https://github.com/jstransformers/gulp-jstransformer
Run JSTransformers through Gulp.
https://github.com/jstransformers/gulp-jstransformer
Last synced: over 1 year ago
JSON representation
Run JSTransformers through Gulp.
- Host: GitHub
- URL: https://github.com/jstransformers/gulp-jstransformer
- Owner: jstransformers
- License: mit
- Created: 2015-06-01T20:00:04.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T02:27:04.000Z (about 6 years ago)
- Last Synced: 2025-01-21T20:15:54.209Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://npm.im/gulp-jstransformer
- Size: 54.7 KB
- Stars: 3
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# gulp-jstransformer
[Gulp](http://gulpjs.com) support for [JSTransformers](http://github.com/jstransformers).
[](https://travis-ci.org/jstransformers/gulp-jstransformer)
[](https://codecov.io/gh/jstransformers/gulp-jstransformer)
[](http://david-dm.org/jstransformers/gulp-jstransformer)
[](https://www.npmjs.org/package/gulp-jstransformer)
## Install
```
npm install gulp-jstransformer --save
```
## Usage
```js
'use strict';
var gulp = require('gulp');
var rename = require('gulp-rename');
var jstransformer = require('gulp-jstransformer');
var options = {
engine: 'octet'
};
var locals = {
hello: 'Hello'
};
gulp.task('default', function () {
return gulp.src('test/*.octet')
.pipe(jstransformer(options, locals))
.pipe(rename(function (path) {
path.basename = 'expected'
path.extname = ".html"
}))
.pipe(gulp.dest('dest/'));
});
```
or just `git clone` this repository and run `gulp`
## License
MIT