ringojs 集成了包管理目前有几种方式

  • ringo-admin
  • rp

ringo-admin 安装包

ringo-admin install grob/rp

如果失败的话,可以使用:

ringo-admin install http://packages.ringojs.org/download/rp/latest

使用rp

  • 定义package.json
和nodejs 很像
{
"name": "mypackage",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"stick": ">= 0.4"
}
}
  • 安装依赖
rp install -y

参考资料

https://github.com/rongfengliang/ringojs-module-demo
https://ringojs.org/documentation/package_management/

 
 
 
 
05-15 20:34