UNPKG

webappengine

Version:

A web application platform that can host multiple web apps running with Node.js.

12 lines (10 loc) 285 B
var fs = require('fs'); var execSync = require('child_process').execSync, var files = fs.readdirSync(process.cwd()); for (var i = 0; i < files.length; i++) { var file = files[i]; var stat = fs.statSync(file); if (stat.isDirectory()) { execSync('npm publish ' + file); } }