cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject cordova-cli git commit: CB-5578 Adds `clean` command to cordova-cli.
Date Wed, 10 Jun 2015 09:10:18 GMT
Repository: cordova-cli
Updated Branches:
  refs/heads/master 559a072ee -> 9fcc4e6ff


CB-5578 Adds `clean` command to cordova-cli.

This closes #216


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/9fcc4e6f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/9fcc4e6f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/9fcc4e6f

Branch: refs/heads/master
Commit: 9fcc4e6ff92ce858735b407107c52d5c6c381295
Parents: 559a072
Author: Vladimir Kotikov <v-vlkoti@microsoft.com>
Authored: Wed Jun 10 12:10:15 2015 +0300
Committer: Vladimir Kotikov <v-vlkoti@microsoft.com>
Committed: Wed Jun 10 12:10:15 2015 +0300

----------------------------------------------------------------------
 doc/clean.txt   | 8 ++++++++
 doc/cordova.txt | 1 +
 src/cli.js      | 2 +-
 3 files changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/9fcc4e6f/doc/clean.txt
----------------------------------------------------------------------
diff --git a/doc/clean.txt b/doc/clean.txt
new file mode 100644
index 0000000..a49b189
--- /dev/null
+++ b/doc/clean.txt
@@ -0,0 +1,8 @@
+Synopsis
+
+    cordova clean [PLATFORM..]
+
+Cleans the build artifacts for the specified platform, or all platforms
+by running platform-provided clean script.
+
+To provide platform specific options, you must include them after `--`.

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/9fcc4e6f/doc/cordova.txt
----------------------------------------------------------------------
diff --git a/doc/cordova.txt b/doc/cordova.txt
index 08e2da2..35b1ac8 100644
--- a/doc/cordova.txt
+++ b/doc/cordova.txt
@@ -18,6 +18,7 @@ Project Commands
 
     prepare ............................ Copy files into platform(s) for building
     compile ............................ Build platform(s)
+    clean .............................. Cleanup project from build artifacts
 
     run ................................ Run project
                                             (including prepare && compile)

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/9fcc4e6f/src/cli.js
----------------------------------------------------------------------
diff --git a/src/cli.js b/src/cli.js
index 2c76ad4..f0ae5d3 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -186,7 +186,7 @@ function cli(inputArgs) {
     };
 
 
-    if (cmd == 'emulate' || cmd == 'build' || cmd == 'prepare' || cmd == 'compile' || cmd
== 'run') {
+    if (cmd == 'emulate' || cmd == 'build' || cmd == 'prepare' || cmd == 'compile' || cmd
== 'run' || cmd === 'clean') {
         // All options without dashes are assumed to be platform names
         opts.platforms = undashed.slice(1);
         var badPlatforms = _.difference(opts.platforms, known_platforms);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message