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

thanos-cm

v1.0.192

Published

A GUI Editor & framework for cocos creator

Downloads

33

Readme

Thanos

基于cocos creator 3.8.x 版本的开发框架

使用教程

Thanos使用gulp工具编译生成cocos中使用的脚本文件, 自身工程是独立存在的。所以首先确保自己本机已经安装配置成功gulp。 如果没有配置, 请按下面进行安装配置。

Gulp安装

设置淘宝源

npm config set registry http://registry.npm.taobao.org/

还原

npm config set registry https://registry.npmjs.org/

1:全局方式安装gulp

npm install -g gulp

2:(正常情况需要这一步, 但我已经把gulp加入package.json中了, 所以不需要了)全局安装gulp后,还需要在每个要使用gulp的项目中都单独安装一次。把目录切换到你的项目文件夹中,然后在命令行中执行:

npm install gulp

项目初始化

安装成功gulp后, 就可以在thanos根目录运行npm命令, 来安装包依赖

npm install 或者 npm i

1.使用gulp构建工程

WebStom中使用

​ WebStom中使用工具运行 buildAll即可

vs code中使用
  1. cd 到thanos根路径

  2. npm run build

构建成功后, 会在项目根目录dist目录中, 生成thanos.mjs 和 thanos.d.ts 和 thanos.min.mjs 三个文件, 这两个文件就是最终需要用的的文件

2.上传构建成功的文件到npm包管理平台

​ 注意: thanos-cm在npm公共管理平台(https://www.npmjs.com/package/thanos-cm), 需要自己注册账号, 然后找管理员(caiyaguang)添加权限

  1. 修改根目录中package.json中version字段, 升级一个版本号, 比如 1.0.0 -> 1.0.1
  2. 运行 npm login 命令, 登录npm包平台, 会弹出网页认证, 输入邮箱验证码. 登录成功后会有登录缓存, 不需要每次都调用登录命令.
  3. 运行 npm publish 命令, 发布构建包
  4. 回到游戏工程根目录运行 npm update thanos-cm 即可完成更新, 可能需要重启cocos creator才能真正生效

框架使用教程

框架最顶层是 thanos-cm 命名空间, 所有类都在该命名空间下