Skip to content

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

License

Notifications You must be signed in to change notification settings

kflorence/gulp-data-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-data-json

Loads JSON data from companion files and stores it in file.data via gulp-data.

Install

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

Example

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published