TODO ...
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.initConfig({
pebbletools: {
options: {
},
deploy: {
outputTemplates: ['path/to/template/_file'],
},
compress: {
outputTemplates: ['path/to/template/_file'],
},
extract: {
outputTemplates: ['path/to/template/_file'],
},
compile: {
},
setup: {
},
json2xml: {
input: 'input/file.json',
output: 'output/file.json'
},
xml2json: {
input: 'input/file.json',
output: 'output/file.json'
},
prettify: {
input: 'input/file.json',
output: 'output/file.json',
mode: 'json'
},
minify: {
input: 'input/file.json',
output: 'output/file.json',
mode: 'json'
},
changeSpec: {
input: 'input/file.json',
output: 'output/file.json',
tableFilter: function(table) {
var name = table.getTagName();
if (name === 'theModel_ ....') {
return table;
}
},
changePeb: function (peb, data) {
var longRef = peb.getRef(".");
if (longRef && longRef.indexOf("theModel") != -1) {
var newRef = longRef.replace("theModel", "wootwoot");
peb.setRef(".", newRef);
}
var recs = peb.getRecords(".");
for (var i = 0; i < recs.length; i++) {
var rec = recs[i];
data.changePeb(rec, data);
}
}
}
},
});