cordova 命令详解

 cordova command [options]

Global Commands
    create ............................. Create a project
    help ............................... Get help for a command

Project Commands

    info ............................... Generate project information

    requirements ....................... Checks and print out all the requirements for platforms specified


    platform ........................... Manage project platforms
    plugin ............................. Manage project plugins

    prepare ............................ Copy files into platform(s) for building
    compile ............................ Build platform(s)
    clean .............................. Cleanup project from build artifacts

    run ................................ Run project                                        (including prepare && compile)
    serve .............................. Run project with a local webserver                                            (including prepare)

aliases:
    build -> cordova prepare && cordova compile
    emulate -> cordova run --emulator


Command-line Flags/Options
    -v, --version ...................... prints out this utility's version

    -d, --verbose ...................... debug mode produces verbose log output for all activity,including output of sub-commands cordova invokes


详解:

1.create 命令用来创建项目, 使用方法 cordova create chuan com.xgzkj.chuan chinaship  

在当前目录下创建文件夹chuan,用来存放项目的代码,com.xgzkj.chuan 是项目的标识符,在src中也是包的路径,chinaship是项目的名称。结果:

cordova 命令详解_第1张图片


你可能感兴趣的:(android)