npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

egret-resource-manager

v4.1.0

Published

Downloads

43

Readme

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 },更新资源配置

文档

更多文档参见这里