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 🙏

© 2025 – Pkg Stats / Ryan Hefner

tgf-cli

v0.0.26

Published

专为天功坊设计的 CLI 工具

Downloads

44

Readme

tgf-cli 🚀

NPM version NPM downloads License

专为天功坊设计的脚手架工具,旨在提升组件的开发效率和规范性。


📦 安装

全局安装 tgf-cli,即可在任何地方使用 tgf 命令。

npm install -g tgf-cli

或者,如果您使用 pnpm:

pnpm add -g tgf-cli

🚀 快速上手

安装完成后,创建组件只需一步:

tgf create vue2

接下来,CLI 会引导您完成初始化配置:

? 请输入组件名称 (camelCase): myAwesomeWidget
? 请输入组件中文名称: 第一个组件
? 请选择平台: 移动端
✔ 组件 myAwesomeWidget 创建成功!
✨ 文件已生成在: /path/to/your/project/myAwesomeWidget

一个功能完备的组件模板就创建好了!

📖 命令参考

基础命令

| 命令 | 别名 | 描述 | | --------------- | ---- | -------------------------------- | | tgf --version | -v | 显示当前 tgf-cli 版本号 | | tgf --help | -h | 显示帮助信息和所有可用命令的列表 |

创建命令

| 命令 | 描述 | | ------------------------- |----------------| | tgf create vue2 [名称] | 创建一个新的 Vue2 组件 | | tgf create block [名称] | 创建一个新的 积木块 |

使用示例:

# 创建 Vue2 组件
tgf create vue2 myComponent

# 创建 Blockly 块
tgf create block myBlock

# 交互式创建(会提示输入相关信息)
tgf create vue2
tgf create block

工具命令

| 命令 | 描述 | | ------------ |----------------------| | tgf doctor | 检查本地开发环境是否满足开发要求 | | tgf docs | 在浏览器中打开 tgf-cli 相关文档 | | tgf run | 打开天功坊平台的应用地址 |

功能说明:

  • doctor: 检查 Node.js 版本、pnpm 安装状态等开发环境
  • docs: 快速访问官方文档和使用指南
  • run: 直接跳转到天功坊平台,方便上传和调试组件

提示: tgf create vue3 等更多功能正在开发中,敬请期待!