Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kflorence/gulp-data-json

Loads JSON data from companion files and stores it in `file.data`
https://github.com/kflorence/gulp-data-json

Last synced: 7 days ago
JSON representation

Loads JSON data from companion files and stores it in `file.data`

Awesome Lists containing this project

README

        

# gulp-data-json

Loads JSON data from companion files and stores it in `file.data` via
[gulp-data](https://github.com/colynb/gulp-data).

## Install

`npm install gulp-data-json --save-dev`

## Example

```javascript
var gulp = require("gulp");
var hb = require("gulp-hb");
var dataJson = require("gulp-data-json");

gulp.task("handlebars", function() {
return gulp.src("src/**/*.hbs")
.pipe(dataJson())
.pipe(hb())
.pipe(gulp.dest("dest"));
});
```

## License

MIT