美文网首页
Cordova插件制作

Cordova插件制作

作者: LvyCode | 来源:发表于2018-10-16 13:51 被阅读12次

    1.安装 plugman
    npm install -g plugman
    2.创建工程
    (1)plugman create --name helloworld_plug --plugin_id Hello --plugin_version 1.0.0
    (2)cd helloworld_plug
    (3)增加ios, 和android平台支持,并且生成框架代码
    plugman platform add --platform_name android
    plugman platform add --platform_name ios
    (4)生成package.json文件
    plugman createpackagejson .

    相关文章

      网友评论

          本文标题:Cordova插件制作

          本文链接:https://www.haomeiwen.com/subject/ckhhzftx.html