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

kggame-cmd

v1.3.11

Published

深圳快狗互动开发常用工具。

Downloads

7

Readme

kggame-cmd

深圳快狗互动开发常用工具。

版本更新

1.0.2

初始化不指定平台,创建工程时再指定对应平台。

1.0.3

增加 Code 指令

1.0.4

优化 Code 指令

1.0.5

增加 json 指令

1.0.6

json 增加##column

1.0.8

增加 json2 指令

1.0.12

json2 增加 def 参数

1.0.15

多维数组

1.0.17

中间使用##注释行

1.0.18

Tags 功能

1.0.19

优化复制,优化jshaman

1.1.0

修复最后一行不能注释

1.2.0

app分支功能 app -b xxx

1.3.0

优化加密代码指令

1.3.1

加密代码 增加--uglifyjs

1.3.5

json2 增加导出路径

1.3.6

json2 增加 -f 过滤 如json2 -f data1 data2 表示只导出data1 data2 如果-f !data1 则除了data1都导出

安装

npm i kggame-cmd -g

加密代码 code

  • 参数说明可参考框架https://obfuscator.io/

  • 指令中未显示的参数,原框架有的可以通过kgCmdConfig.json配置

  • 常用指令说明

    • -i 要加密文件
    • -o 加密后导出文件名,默认覆盖原文件
    • -f 平展控制流
    • --config 加密配置,当该数参数有值时,会使用配置或将配置替换。

加密参数列表 | 参数 | 类型 | 内容 | | ------------------------------ | -------- | --------------------------------------- | | compact | bool | 是否启用压缩代码,值为true或false | | controlFlowFlattening | bool | 是否启用平展控制流,值为true或false | | controlFlowFlatteningThreshold | number | 平展控制流阈值,默认0.75 | | deadCodeInjection | bool | 是否启用僵尸代码植入,值为true或false | | stringArray | bool | 是否启用字符串阵列化,值为true或false | | stringArrayEncoding | string[] | 加密方式 ['none','base64','rc4'] | | debugProtection | bool | 是否启用反浏览器调试,值为true或false | | disableConsoleOutput | bool | 是否启用禁用命令行输出,值为true或false | | domainLock | string[] | 域名内容 | | reservedNames | string[] | 保留字 | | numbersToExpressions | bool | 加密数字 | | deadCodeInjection | bool | 僵尸代码植入 |

发布 App(Laya)

初始化

在对应的 Laya 项目中初始化,在项目中生成 kgAppConfig.js。

kggame-cmd app

生成 Andriod 工程 -c

如果已经对接好的 Andriod 工程无须再生成,直接更新 DCC 即可。

kggame-cmd app -c

更新 DCC -u

更新 layadcc 到项目路径 appUpdate 中

kgame-cmd app -u

更新平台 -p

可以针对不同 Andriod 工程,进行自动更新打包

增加平台

kgame-cmd app -p topon D:\topon 233 D:\233

删除平台

kgame-cmd app -p topon 233 -d

更新平台 DCC

kgame-cmd app -u -p

//指定平台
kgame-cmd app -u -p 233 topon

//或更新所有平台
kgame-cmd app -u -p all

自动打包 Apk -g

工程本身必须已经对接好,并确保可以通过 gradle 打包

kgame-cmd app -u -p -g

//指定平台
kgame-cmd app -u -p 233 -g

//或更新所有平台
kgame-cmd app -u -p all -g