Usage
First, install gulp-extend
as a development dependency:
npm install gulp-extend --save-dev
Then, add it to your gulpfile.js
:
Extend the contents of json files
var extend = ; gulp ;
Extend the contents of a json file and then wrap them in a code block
var extend = ;var wrap = ; gulp
API
extend(fileName[, deep [, jsonSpace]])
fileName
Type: String
The output filename
deep
Type: Boolean
Default: true
If the extend should be deep.
jsonSpace
Type: String
or Number
Default: undefined
JSON.stringify's space attribute for pretty-printing the resulting JSON.
See MDN docs on JSON.stringify() for more information.