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

small-game-sdk

v1.0.0

Published

## 上线流程(功能分支、集成分支或 xx 分支测试通过后)

Downloads

7

Readme

Small Game SDK

上线流程(功能分支、集成分支或 xx 分支测试通过后)

  1. 相关分支合入 master
  2. 重要!!! 打开 small-game-sdk 项目,确保 node_modules 中 bili-small-game-framework 中依赖文件中代码与 small-app 项目中 game/master 分支一致 (可以手动替换或者自己脚本等)(如果 small-app 项目中有相应改动,需要将相应分支合入 game/master)
  3. Small-game-sdk 项目内 npm run build
  4. 打开 small-game 项目(此项目专门用来发布小游戏框架),将 lib 文件夹内文件全部替换为刚刚构建出来的 dist 文件内的文件。并修改 package.json 中版本号。commit 信息写清楚完整
  5. npm login => npm publish
  6. 过个 10 分钟左右通知 qa 回归
  7. qa 回归完通知 cp

小游戏 sdk

  • 基于bili-small-game-frameworkbl api在小游戏框架下的扩展
  • 实现小游戏webview方案中的shell.game.htmlsubContext.html
  • 实现小游戏jsCore Binding方案的shell.game.jsadapter.*.js
  • 实现三大引擎对应的weapp-adapter.js修改

文件结构

    src
     ├─ adapter  # adapter.*.js
     ├─ blapp-adapter-cocos  # blapp-adapter for cocos2d
     ├─ blapp-adapter-egret  # blapp-adapter for egret
     ├─ blapp-adapter-laya  # blapp-adapter for laya
     ├─ entries  # 构建入口
     │     ├─ native  # Native引擎入口
     │     │     ├─ mainContext  # 主域入口
     │     │     └─ subContext  # 开放域入口
     │     └─ webview  # webview引擎入口
     │           ├─ mainContext  # 主域入口
     │           └─ subContext  # 开放域入口
     ├─ lib  # bl api的实现目录
     ├─ adapter.game.js  # 这个没用
     ├─ shell.game.html  # 主域html页面模板
     └─ subContext.html  # 开放域html模板

小游戏引擎

小游戏在代码经过gulp构建后文件夹结构应该为:

    ┌─ _base
    │     ├─ adapter.android.js
    │     ├─ adapter.android.opendata.js
    │     ├─ adapter.ios.js
    │     ├─ adapter.ios.opendata.js
    │     ├─ shell.game.js
    │     └─ shell.opendata.game.js
    ├─ game.js
    ├─ game.json
    ├─ 其他游戏依赖文件
    ├─ shell.game.html
    └─ subContext.html

Native

相关依赖:

  • adapter/adapter.*.js:将 Native 层实现的 API 转换为 JS 层,其中实现了部分bl api
  • entries/native/*:Native 引擎用入口,用于构建shell.game.jsshell.game.opendata.js

Webview

相关依赖:

  • entries/webview/*:Webview 引擎用入口,用于构建shell.game.htmlsubContext.html中的 js 部分
  • shell.game.htmlsubContext.html:Webview 引擎壳