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

ka-offline-data-load

v1.0.2

Published

用于内部下载离线数据 (不适合其他开发者)

Downloads

2

Readme

当前脚本用于下载当前项目 3d 场景离线数据 🚀

👨‍💻 用法

安装

# 安装包 ka-offline-data-load
pnpm install ka-offline-data-load

准备配置

在项目的根目录位置建立一个 ka-offline-constant.json 文件,并且在文件内写入对应的参数

{
    "staticDirPaths": ["src", "static"],
    "Authorization": "",
    "jobs": [{ "sceneId": "", "pid": "" }]
}
  • Authorization: 需在 hub 平台登录 在登录后的 hub api 请求头获取 Authorization,让 3d 设计师赋予开发者编辑权限才能请求到数据。
  • sceneId:
  • sceneId, pid: 找 3d 设计师 获取 项目中用到的 3d 场景 uid,projectId

构建

在和构建的命令行前面写入 ka-offline 也是就是我们执行更新场景数据的命令。例如:

"build": "ka-offline && vite build",
"ka.offline": "ka-offline --file=ka-offline-config.json",

--file=ka-offline-config.json file 参数可选,默认 file 值为 ka-offline-config.json

注意 🌟

如果在本地单独执行 ka-offline 的话会可能触发一个 commit。且离线数据体积比较大,建议将离线数据 ignore