尝试使用ManifoldJS

本文详细介绍了在Windows系统中通过安装Node.js和ManifoldJS,使用命令行工具完成iOS项目的生成过程,并提供了关键步骤的说明和实际生成的项目结构概述。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

github:https://github.com/manifoldjs/ManifoldJS

wiki:https://github.com/manifoldjs/manifoldJS/wiki/Getting-Started


windows下,首先安装node.js

https://nodejs.org/en/

安装5.0最新版,默认安装npm


cmd下安装manifoldjs

npm install -g manifoldjs
用了10分钟


C:\Users\XXXXXXXXX\AppData\Roaming\npm\node_modules\manifoldjs\node_modules\cordova-lib\node_modules\

中少了2个文件夹,cordova-app-hello-world 和 elementtree

从C:\Users\XXXXXXXXX\AppData\Roaming\npm\node_modules\manifoldjs\node_modules\

复制过去


生成项目主要依赖网站中的manifest.json文件。

具体写法:https://github.com/manifoldjs/manifoldJS/wiki/Getting-Started

会用到一些图标神马的


执行下面命令可以生成一个ios项目

C:\Users\XXXXX>manifoldjs http://shiftr.azurewebsites.net -d C:\Users\XXXXXX\
Desktop -l debug -p ios -b

实际生成出来的代码:

├─cordova
│  ├─hooks
│  ├─platforms
│  │  └─ios
│  │      ├─cordova
│  │      │  ├─lib
│  │      │  └─node_modules
│  │      │      ├─nopt
│  │      │      │  ├─lib
│  │      │      │  └─node_modules
│  │      │      │      └─abbrev
│  │      │      ├─q
│  │      │      └─shelljs
│  │      ├─CordovaLib
│  │      │  ├─Classes
│  │      │  └─CordovaLib.xcodeproj
│  │      ├─platform_www
│  │      │  └─cordova-js-src
│  │      ├─Shiftr
│  │      │  ├─Classes
│  │      │  ├─Plugins
│  │      │  └─Resources
│  │      │      ├─icons
│  │      │      └─splash
│  │      ├─Shiftr.xcodeproj
│  │      └─www
│  │          ├─css
│  │          ├─img
│  │          └─js
│  ├─plugins
│  │  ├─cordova-plugin-hostedwebapp
│  │  │  ├─assets
│  │  │  │  ├─defaultImages
│  │  │  │  │  ├─android
│  │  │  │  │  ├─ios
│  │  │  │  │  ├─windows
│  │  │  │  │  └─wp8
│  │  │  │  └─windows
│  │  │  ├─scripts
│  │  │  │  └─test
│  │  │  │      └─assets
│  │  │  │          ├─fullAccessRules
│  │  │  │          │  └─www
│  │  │  │          ├─fullUrlForScope
│  │  │  │          │  └─www
│  │  │  │          ├─jsonPropertiesMissing
│  │  │  │          │  └─www
│  │  │  │          ├─normalFlow
│  │  │  │          │  └─www
│  │  │  │          ├─shortNameMissing
│  │  │  │          │  └─www
│  │  │  │          ├─shortNameWithSlashes
│  │  │  │          │  └─www
│  │  │  │          ├─wildcardSubdomainForScope
│  │  │  │          │  └─www
│  │  │  │          └─xmlEmptyWidget
│  │  │  │              └─www
│  │  │  ├─src
│  │  │  │  ├─android
│  │  │  │  ├─ios
│  │  │  │  └─windows
│  │  │  └─www
│  │  └─cordova-plugin-whitelist
│  │      └─src
│  │          ├─android
│  │          └─ios
│  ├─resources
│  │  ├─android
│  │  │  └─icons
│  │  ├─chrome
│  │  │  └─icons
│  │  ├─firefox
│  │  │  └─icons
│  │  ├─windows
│  │  │  ├─icons
│  │  │  └─screens
│  │  └─wp8
│  │      ├─icons
│  │      └─screens
│  └─www
│      ├─css
│      ├─img
│      └─js
└─ios
    ├─cordova
    │  ├─lib
    │  └─node_modules
    │      ├─nopt
    │      │  ├─lib
    │      │  └─node_modules
    │      │      └─abbrev
    │      ├─q
    │      └─shelljs
    ├─CordovaLib
    │  ├─Classes
    │  └─CordovaLib.xcodeproj
    ├─platform_www
    │  └─cordova-js-src
    ├─Shiftr
    │  ├─Classes
    │  ├─Plugins
    │  └─Resources
    │      ├─icons
    │      └─splash
    ├─Shiftr.xcodeproj
    └─www
        ├─css
        ├─img
        └─js


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值