This commit is contained in:
Philipp Kunz
2015-11-03 20:14:41 +01:00
parent 57c90ca504
commit 8d8d7e7ff4
7 changed files with 38 additions and 17 deletions

View File

@@ -1,12 +1,16 @@
/// <reference path="typings/tsd.d.ts" />
var through = require("through2");
var path = require("path");
var pr = require("pushrocks");
var fs = require("fs");
module.exports = (jadeTemplate,mojo = undefined) => {
return through.obj((file, enc, cb) => {
//run callback function to signal end of plugin process.
return cb(null, file);
});
var smartfile:any = {
//read File to string
readFileToString: (filePath) => {
var fileString;
fileString = fs.readFileSync(filePath, "utf8");
return fileString;
}
};
module.exports = smartfile;