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


The following commit(s) were added to refs/heads/feature/royale-cli by this 
push:
     new 455fbff  Fix README.md; fix help messages, cleanup comments
455fbff is described below

commit 455fbff488851c9d27fca549fbfbd53a870ed033
Author: Om Muppirala <omuppir...@mz.com>
AuthorDate: Wed Feb 14 23:56:54 2018 -0800

    Fix README.md; fix help messages, cleanup comments
---
 npm/cli/README.md  | 6 +++++-
 npm/cli/connect.js | 7 ++-----
 npm/cli/index.js   | 7 ++++---
 3 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/npm/cli/README.md b/npm/cli/README.md
index 08fe92c..3a2adb3 100644
--- a/npm/cli/README.md
+++ b/npm/cli/README.md
@@ -5,6 +5,11 @@ npm install @apache-royale/cli
 
 ## How to use
 
+####Help
+```
+royale help
+```
+
 ####Setup
 ```cmd
 royale new  my-royale-app 
@@ -33,4 +38,3 @@ royale serve:release
 * Starts a http server and serves the files from the bin/js-release directory
 * Opens the default browser and navigates to http://localhost:3001
 
-
diff --git a/npm/cli/connect.js b/npm/cli/connect.js
index 0769e13..e5aeb26 100644
--- a/npm/cli/connect.js
+++ b/npm/cli/connect.js
@@ -1,19 +1,16 @@
 var path = require('path');
 var connect  = require('connect');
 var static = require('serve-static');
-var fs = require('fs-extra');
 
 var debugDirPath = path.join(process.cwd(), 'bin', 'js-debug');
-
 var server = connect();
-server.use(  static(debugDirPath));
+server.use(static(debugDirPath));
 server.listen(3000);
 
 var livereload = require('livereload');
 var lrserver = livereload.createServer();
-//lrserver.watch(debugDirPath);
 
 process.on('message', function(msg){
-    console.log('received message: %s', msg.message);
+    console.log('Reloading browser');
     lrserver.refresh(debugDirPath);
 });
\ No newline at end of file
diff --git a/npm/cli/index.js b/npm/cli/index.js
index 80c4d25..f9457cf 100644
--- a/npm/cli/index.js
+++ b/npm/cli/index.js
@@ -30,9 +30,10 @@ var livereload = require('livereload');
 
 var args = require('yargs')
     .usage('Usage: royale <command>')
-    .example('royale new my-royale-project', 'Creates a new Apache Royale 
project in the myFirstRoyaleProject directory')
-    .example('royale serve:debug', 'Builds debug version and starts server on 
localhost:6000; also watches the directory for changes')
-    .example('royale serve:release', 'Builds release version and starts server 
on localhost:6001')
+    .example('royale new my-royale-project', 'Creates a new Apache Royale 
project in the my-royale-project directory')
+    .example('royale serve:debug', 'Builds debug version and starts server on 
http://localhost:3000; also watches the ' +
+        'my-royale-project/src directory for changes')
+    .example('royale serve:release', 'Builds release version and starts server 
on http://localhost:3001')
     .help('h')
     .alias('h', 'help')
     .epilog('Email: us...@royale.apache.org | Github: 
https://github.com/apache/royale-asjs')

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

Reply via email to