tinymce-editor/build/4_publish.js
2020-06-09 03:09:43 +02:00

26 lines
771 B
JavaScript

/*jslint node:true, curly:false */
"use strict";
var runner = require('child_process');
var msg = ( process.argv[2] ? process.argv[2] : "updates");
console.log("");
runner.exec("git add . && git commit -m '"+msg+"' && git push", {cwd: './_master/'},
function (err, stdout, stderr) {
if(err) console.log(err);
else if(stderr) console.log(stderr);
else console.log("master branch updated");
}
);
runner.exec("git add . && git commit -m '"+msg+"' && git push", {cwd: './_module/'},
function (err, stdout, stderr) {
if(err) console.log(err);
else if(stderr) console.log(stderr);
else console.log("module branch updated");
}
);
process.on('exit', function (code) {
console.log('publishing finished');
});