UNPKG

tgomadev

Version:

A package to expediate and simplify tgoma game development

52 lines (44 loc) 1.15 kB
var fse = require("fs-extra") var FtpDeploy = require('ftp-deploy'); function main(){ var ftpDeploy = new FtpDeploy(); var config = fse.readJsonSync("./tgomaproj.json").ftpOpts; console.log("deploy app over ftp with opts: ", config) ftpDeploy.deploy(config, function(err) { if (err) console.log(err) else console.log('finished'); }); } module.exports = main; // var ftpopts = { // host:"10.33.1.135", // port:2121, // user:"edward", // pass:"edward", // local:".", // remote: "./Android/data/com.tgoma.trampolineapp.sandbox/files/www/mygame", // ignore:[ // ".git", // "scripts", // "src", // "build", // "./.**", // "./*.json" // ] // } // // ftpsync.settings = ftpopts; // ftpsync.run(function(err, result){ // if(err){ // console.error(err) // } // }) // // var FTP = new ftp({ // }) // // FTP.ls("/Android/data/com.tgoma.trampolineapp.sandbox/files/www/mygame", function(err, res) { // res.forEach(function(file) { // console.log(file.name); // }); // });