malta-notify
v1.0.5
Published
Malta plugin to notify via email at every build
Downloads
4
Maintainers
Readme
This plugin can be used on all files
Options :
- configFile : path for a json file that is expected to contain all information needed to send the email, this path is relative to the template folder:
{
"smtp" : "smtp.xxxxxxxx.com",
"account" : "[email protected]",
"pwd": "xxxxxxxxxxxxxx",
"from" : "'xxxxxxx yyyyyyy 👥'' <[email protected]>",
"port": 465,
"subject" : "%fname% compiled",
"content" : {
"txt" : "The new content is :\n\n\n%content%",
"html" : "<b>The new content is:</b><br/><br/><br/><textarea style=\"width:100%;height:500px;background-color:#444;color:#0f0;font-size:2em\">%content%</textarea>"
}
}
then the destination address: - to : a valid email address
Sample usage:
malta app/source/index.js public/docs -plugins=malta-notify[configFile:\"mailer/params.json\",to:\"[email protected]\"]
or in the .json file :
"app/source/index.js" : "public/docs -plugins=malta-notify[configFile:\"mailer/params.json\",to:\"[email protected]\"]"
or in a script :
var Malta = require('malta');
Malta.get().check([
'app/source/index.js',
'public/docs',
'-plugins=malta-notify[configFile:\"mailer/params.json\",to:\"[email protected]\"]',
'-options=showPath:false,watchInterval:500,verbose:0'
]).start(function (o) {
var s = this;
console.log('name : ' + o.name)
console.log("content : \n" + o.content);
'plugin' in o && console.log("plugin : " + o.plugin);
console.log('=========');
});