This is an automated email from the ASF dual-hosted git repository.

bigosmallm pushed a commit to branch feature/royale-cli
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 0676ad588453a465473f7191a677461edae9abf5
Author: Om Muppirala <omuppir...@mz.com>
AuthorDate: Wed Feb 14 22:46:48 2018 -0800

    remove unnecessary files
---
 npm/cli/server.js | 36 ------------------------------------
 1 file changed, 36 deletions(-)

diff --git a/npm/cli/server.js b/npm/cli/server.js
deleted file mode 100644
index 4d6ed2a..0000000
--- a/npm/cli/server.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var express = require('express');
-var http = require('http');
-var path = require('path');
-var reload = require('reload');
-var logger = require('morgan');
-var app = express();
-var fs = require('fs-extra');
-var chokidar = require('chokidar');
-
-var debugServer = module.exports = Object.create(null);
-debugServer.startDebugServer = function(p, port) {
-    //Rewrite index.html
-    var indexHTML = fs.readFileSync(path.join(p,'index.html'), 'utf8');
-    indexHTML = indexHTML.replace("</html>", '<script 
src="/reload/reload-client.js"></script></html>');
-    fs.writeFile(path.join(p,'index.html'), indexHTML);
-
-    //Start server
-    app.set('port', port);
-    app.use(logger('dev'));
-    app.use(express.static(p));
-    var server = http.createServer(app);
-    var reloadServer = reload(app);
-
-    //Watch and reload
-    chokidar.watch(p)
-        .on('change',
-            function(event, path){
-                console.log('Change detected...');
-                reloadServer.reload();
-            }
-        );
-
-    server.listen(app.get('port'), function () {
-        console.log('Web server listening on port ' + app.get('port'))
-    })
-}

-- 
To stop receiving notification emails like this one, please contact
bigosma...@apache.org.

Reply via email to