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

quickgame-cli

v0.1.24

Published

quickgame cli

Downloads

318

Readme

quickgame-cli

快游戏开发者工具

升级npm到5.2.0+以上,nodejs安装 8.1.4+

安装

npm install quickgame -D

注意:微信小游戏编译成快游戏,请先执行 npx create-quickgame初始化项目后再安装此工具

使用

1、编译

1)编译debug版本

npm run build

2)编译release版本(release包需要release签名: 生成release签名

npm run release

3)自动监听文件,编译debug版本

npm run watch

4) 命令行参数说明

--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

2、启动服务

1)启动本地服务

npm run server

注:当端口号被占时,使用指定端口:npm run server -- --port 4000

3、本地调试

1)环境要求
  • chrome浏览器
2)启动调试服务
  • 打开游戏运行界面
  • 手机 USB 连接到 PC
  • 执行命令:npm run debug 会在chrome浏览器中自动启动调试界面
    • 如果希望手动打开调试界面:npm run debug -- --print-only 将命令行中的Debugger URL地址粘贴到chrome浏览器中打开

[注]:严格按照先运行游戏再启动调试功能的先后顺序

image-20190408181521717

常见问题

1、 npm install 安装失败
  • 解决方式:执行npm cache clean --force 清除npm缓存造成的影响