Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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`
- Host: GitHub
- URL: https://github.com/kflorence/gulp-data-json
- Owner: kflorence
- License: mit
- Created: 2014-12-07T08:41:01.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-09T22:05:19.000Z (almost 10 years ago)
- Last Synced: 2024-10-01T16:22:10.787Z (about 1 month ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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