egret-resource-manager
Last updated 3 years ago by wanderwang .
ISC · Original npm · Tarball · package.json
$ cnpm install egret-resource-manager 
SYNC missed versions from official npm registry.

Egret 资源管理框架

核心功能

友好的资源加载 API

  • 遵循 ES6 Promise 标准的异步语法
RES.loadConfig().then(()=>{
    RES.getResAsync("assets/bg.jpg");
}).then(()=>{
    RES.getResAsync("assets/icon.jpg");
});
  • 支持 ES2015 async / await 异步语法 ( 依赖白鹭引擎4.0版本 )
await RES.loadConfig()
await RES.getResAsync("assets/bg.jpg");
await RES.getResAsync("assets/icon.jpg");

版本控制支持

集成版本控制功能,无需额外配置即可支持素材热更新。可以帮助您的游戏或应用显著降低运维成本及用户的流量消耗。

针对不同平台发布不同的资源

更容易开发者进行扩展的结构

80% 兼容旧版 API

除了 RES.Analyzer相关 API 之外其他所有API均可向下兼容,并提供升级脚本帮助您将现有项目升级至新版本资源管理器

运行测试项目

执行 egret run test/es6-api 或者 egret run test/classic-api

如何调试

  • 安装 Egret Wing 或者 VSCode ,打开项目根目录
  • 在项目根目录下执行 npm install
  • 调试项目(F5),或执行 npm run debug

如何使用

  • 在命令行中执行 npm install egret-resource-manager -g 安装命令行工具

  • 执行 res upgrade { your-project } 将旧版 res 模块升级为新版本,升级过程会完成下述操作

    • egret-resource-manager 中包含的新版本资源管理系统的源代码复制到项目文件夹中

    • egretProperties.json 中的 res 字段修改为 resourcemanager

  • 当游戏资源发生变化后,执行res build { your_project },更新资源配置

文档

更多文档参见这里

Current Tags

  • 4.1.0                                ...           latest (3 years ago)
  • 5.0.0-12                                ...           next (3 years ago)
  • 5.0.1-13                                ...           nightly (3 years ago)

82 Versions

  • 5.0.1-13                                ...           3 years ago
  • 5.0.1-12                                ...           3 years ago
  • 5.0.1-11                                ...           3 years ago
  • 5.0.1-10                                ...           3 years ago
  • 5.0.1-9                                ...           3 years ago
  • 5.0.1-8                                ...           3 years ago
  • 5.0.1-7                                ...           3 years ago
  • 5.0.1-5                                ...           3 years ago
  • 5.0.1-4                                ...           3 years ago
  • 5.0.1-3                                ...           3 years ago
  • 5.0.1-2                                ...           3 years ago
  • 5.0.1-1                                ...           3 years ago
  • 5.0.0-21                                ...           3 years ago
  • 5.0.0-20                                ...           3 years ago
  • 5.0.0-19                                ...           3 years ago
  • 5.0.0-18                                ...           3 years ago
  • 5.0.0-17                                ...           3 years ago
  • 5.0.0-16                                ...           3 years ago
  • 5.0.0-15                                ...           3 years ago
  • 5.0.0-14                                ...           3 years ago
  • 5.0.0-13                                ...           3 years ago
  • 5.0.0-12                                ...           3 years ago
  • 5.0.0-11                                ...           3 years ago
  • 5.0.0-10                                ...           3 years ago
  • 5.0.0-9                                ...           3 years ago
  • 5.0.0-8                                ...           3 years ago
  • 5.0.0-7                                ...           3 years ago
  • 5.0.0-6                                ...           3 years ago
  • 5.0.0-4                                ...           3 years ago
  • 5.0.0-3                                ...           3 years ago
  • 5.0.0-2                                ...           3 years ago
  • 4.2.0-4                                ...           3 years ago
  • 4.2.0-3                                ...           3 years ago
  • 4.2.0-2                                ...           3 years ago
  • 4.2.0-1                                ...           3 years ago
  • 4.1.0                                ...           3 years ago
  • 4.0.4-25                                ...           3 years ago
  • 4.0.4-24                                ...           3 years ago
  • 4.0.4-23                                ...           3 years ago
  • 4.0.4-22                                ...           3 years ago
  • 4.0.4-21                                ...           3 years ago
  • 4.0.4-20                                ...           3 years ago
  • 4.0.4-19                                ...           3 years ago
  • 4.0.4-18                                ...           3 years ago
  • 4.0.4-17                                ...           3 years ago
  • 4.0.4-16                                ...           3 years ago
  • 4.0.4-15                                ...           3 years ago
  • 4.0.4-13                                ...           3 years ago
  • 4.0.4-11                                ...           3 years ago
  • 4.0.4-10                                ...           3 years ago
  • 4.0.4-9                                ...           3 years ago
  • 4.0.4-8                                ...           3 years ago
  • 4.0.4-7                                ...           3 years ago
  • 4.0.4-6                                ...           3 years ago
  • 4.0.4-5                                ...           3 years ago
  • 4.0.4-4                                ...           3 years ago
  • 4.0.4-3                                ...           3 years ago
  • 4.0.4-2                                ...           3 years ago
  • 4.0.4-1                                ...           3 years ago
  • 4.0.3                                ...           3 years ago
  • 4.0.3-4                                ...           3 years ago
  • 4.0.3-3                                ...           3 years ago
  • 4.0.3-1                                ...           3 years ago
  • 4.0.2-1                                ...           3 years ago
  • 4.0.2                                ...           3 years ago
  • 3.9.1-7.3                                ...           3 years ago
  • 3.9.1-7.2                                ...           3 years ago
  • 3.9.1-7.dev-20170213-1                                ...           3 years ago
  • 3.9.17-dev-20170213-1                                ...           3 years ago
  • 3.9.16                                ...           4 years ago
  • 3.9.15                                ...           4 years ago
  • 3.9.14                                ...           4 years ago
  • 3.9.13                                ...           4 years ago
  • 3.9.11                                ...           4 years ago
  • 3.9.9                                ...           4 years ago
  • 3.9.8                                ...           4 years ago
  • 3.9.7                                ...           4 years ago
  • 3.9.6                                ...           4 years ago
  • 3.9.5                                ...           4 years ago
  • 3.9.4                                ...           4 years ago
  • 3.9.3                                ...           4 years ago
  • 3.9.2                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (10)
Dev Dependencies (6)

Copyright 2014 - 2016 © taobao.org |