Add to git

This commit is contained in:
David
2018-04-29 16:26:44 +02:00
commit b060a71135
16 changed files with 325 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
var npm = require("npm");
var open = require("open");
npm.load(function(err) {
npm.commands.run(['webpack-production'], function(er, data) {
// log errors or data
if (er){
console.error(er);
}
if (data) {
console.log("Publish done!");
}
});
npm.on('log', function(message) {
// log installation progress
console.log(message);
});
});