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

@shed/cli

v0.2.1

Published

mini-shed 命令行工具

Downloads

20

Readme

@shed/cli

:hammer: mini-shed 主要的命令行工具,用来创建,编译小游戏,还提供一些辅助功能。

安装

由于是命令行工具,需要全局安装

npm install -g @shed/cli

或使用 yarn

yarn global add @shed/cli

安装完成后,在命令行中调用 shed 命令,如果有提示则表示安装成功。

shed -h  # -h显示所有命令的 help 信息

用法

安装成功之后即可在命令行中调用shed命令,shed -h 查看帮助。

通常为 shed + 命令 + --参数 的方式使用命令行

所有命令

创建一个新的小游戏

> shed create myGame  # 在当前目录下创建一个新游戏叫做 `myGame`

进入 myGame 目录,安装依赖

> cd myGame
> npm install # 或者 yarn install

进入开发模式,实时编译,web预览

> shed build h5 --watch

--watch 参数可以实时监视代码修改,实时编译。

还可以加 --debug 参数,会生成 sourcemap ,并且不会压缩代码, 方便调试。

编译到小游戏平台

> shed build wx   # 微信小游戏
> shed build qq   # 手Q小游戏
> shed build tt   # 头条小游戏
> shed build oppo # oppo小游戏
> shed build h5   # web网页版本

通常调用后会发布到一个独立文件夹下,打开对应的开发者工具导入该文件夹,根据需要修改对应平台的参数。

各平台不同,且在发展之中,但大同小异,具体参数还需参看各小游戏平台参考文档,做相应的修改。

创建一个spritesheet

命令为 shed + spritesheet + 文件夹

此命令需要提前安装 ImageMagick 6.X

> shed spritesheet ./images   #将./images目录下所有图片打包成一个 spritesheet

fnt 格式转 json

命令 shed + fnt + 文件名 可将fnt格式转换成 mini-shed 支持的 json 格式

shed fnt ./myfont.fnt  # 将./myfont.fnt 转换成 ./myfont.json

显示帮助信息

shed -h

小游戏平台参考文档

  • OPPO https://open.oppomobile.com/wiki/doc#id=10516
  • 快应用 https://doc.quickapp.cn/framework/manifest.html

Contributors

License

The MIT License