Skip to content

Commit 2d58960

Browse files
author
Carlos Hernández
committed
Updated cli readme.md and minor bugs fixes.
1 parent 8caf3cf commit 2d58960

4 files changed

Lines changed: 11 additions & 21 deletions

File tree

README.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The CocoonJS command line tools let you build Cordova-based applications that be
66
> The Webview+ provide you a consistent rendering engine independently of the Android 4.x version, so your app/game will run using the same rendering engine, with the fastest javascript engine in the world (V8).
77
88
## Requirements ##
9-
Please refer to [Cordova prerequisites](https://github.com/apache/cordova-cli#requirements) to set up your environment.
9+
Install cordova-cli 3.2 or higher (Cordova 3.5 is recommended). Please refer to [Cordova prerequisites](https://github.com/apache/cordova-cli#requirements) to set up your environment.
1010

1111
After installing Cordova in your computer, execute the following command to install the CocoonJS CLI tools:
1212

@@ -22,23 +22,11 @@ Use any valid cordova command with the CocoonJS-CLI to manage your project, eg:
2222
$ cocoonjs create /path/ com.ludei.test LudeiTest
2323
$ cocoonjs platform add android
2424
$ cocoonjs plugin add com.ludei.webview.plus
25-
$ cocoonjs build
2625
$ cocoonjs run
2726
```
2827

29-
CocoonJS Cloud project managment
30-
There is a command reserved to handle CocoonJS cloud based projects (http://cloud.ludei.com), the command is called "cloud" and can be used as follows:
31-
```
32-
$ cocoonjs cloud
33-
```
34-
35-
This command *is still* in development and should be avoid its usage for now.
36-
37-
3828
#### Regarding cordova versions ####
3929

40-
cordova-cli 3 and higher is required.
41-
4230
The CocoonJS command line tool automatically detects the Cordova version installed in your computer. However, if you have multiple versions installed locally, you can explicitly point to a specific path using the --cordova-path argument to force that cordova binary to execute, eg:
4331

4432

@@ -70,4 +58,4 @@ limitations under the License.
7058

7159
### About the author ###
7260

73-
Ludei is a San Francisco based company, creators of CocoonJS. Ludei aims to empower HTML5 industry with a set of tools that eases the adoption of HTML5 as the target platform for every mobile development.
61+
[Ludei](http://www.ludei.com) is a San Francisco based company, creators of [CocoonJS](https://www.ludei.com/cocoonjs/). Ludei aims to empower HTML5 industry with a set of tools that eases the adoption of HTML5 as the target platform for every mobile development.

RELEASENOTES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
# CocoonJS-cli Release Notes
22

3+
### 1.0.0-0.3.0 ()
4+
* checkRequirements() now uses the correct cordova-cli provided by getCordovaCMD()
5+
* Minor changes made to the readme.md
6+
7+
### 1.0.0-0.2.0 ()
8+
* Fixed a bug that makes the Android platform detection fail.
9+
310
### 1.0.0-0.1.0 ()
411
* Public release

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cocoonjs",
3-
"version": "1.0.0-0.2.0",
3+
"version": "1.0.0-0.3.0",
44
"preferGlobal": "true",
55
"description": "CocoonJS command line tool",
66
"main": "cli",

src/lib/cordova-lib.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,10 @@ CordovaLib.prototype.init = function(){
3636
CordovaLib.prototype.checkRequirements = function(){
3737

3838
var options = {
39-
avoidCordovaCMD : true,
4039
silent : true
4140
};
4241

43-
if(util.inWindows){
44-
return this._cmd.exec("where cordova", options);
45-
}else{
46-
return this._cmd.exec("which cordova", options);
47-
}
42+
return this._cmd.exec(" --version", options);
4843
};
4944

5045
CordovaLib.prototype.getCordovaLib = function(command){

0 commit comments

Comments
 (0)