
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
quickgame-cli
Advanced tools
快游戏开发者工具
升级npm到5.2.0+以上,nodejs安装 8.1.4+
npm install quickgame -D
注意:微信小游戏编译成快游戏,请先执行 npx create-quickgame初始化项目后再安装此工具
1)编译debug版本
npm run build
2)编译release版本(release包需要release签名: 生成release签名)
npm run release
3)自动监听文件,编译debug版本
npm run watch
--ignore [folders]
: 忽略不需要打包的文件(目前只支持排除文件夹)
// 忽略 test 文件夹
npm run build -- --ignore test
// 忽略 test src 等多个文件夹(用逗号隔开)
npm run build -- --ignore test,src
--disable-subpackages
: 关闭分包行为(在前提下默认开启)
前提:在manifest.json文件中配置过分包功能且minPlatformVersion>=1040
情况下,默认开启分包功能
--disable-stream-pack
: 关闭流式打包(默认开启)
--cocos-wx-game
: 编译时声明来自cocos IDE产出的微信小游戏
注:完成 npx create-quickgame
初始化构建操作后,cocos游戏编译成快游戏,需要在命令行后添加参数--cocos-wx-game
,如:npm run build -- --cocos-wx-game
或者 npx quickgame build --cocos-wx-game
1)启动本地服务
npm run server
注:当端口号被占时,使用指定端口:npm run server -- --port 4000
npm run debug
会在chrome浏览器中自动启动调试界面
npm run debug -- --print-only
将命令行中的Debugger URL
地址粘贴到chrome浏览器中打开[注]:严格按照先运行游戏再启动调试功能的先后顺序
npm install
安装失败npm cache clean --force
清除npm缓存造成的影响FAQs
quickgame cli
The npm package quickgame-cli receives a total of 24 weekly downloads. As such, quickgame-cli popularity was classified as not popular.
We found that quickgame-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.