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 🙏

© 2026 – Pkg Stats / Ryan Hefner

tcloud-test-cli

v3.0.11

Published

CLI for easily bootstrapping modern react libraries

Downloads

60

Readme

tcloud-test-cli

modify by https://github.com/transitive-bullshit/create-react-library

安装cli工具

npm i tcloud-test-cli -g

创建一个组件

tcloud

开发

本地开发分为两个部分.

首先, 你可以运行rollup去监听你的src/模块, 当你有任何更改会自动编译到dist/

npm start # 运行rollup和监听更改

然后, 在本地开发中需要在example/目录中链接你的模块

# (打开新的终端窗口中)
cd example
npm link <your-module-name> # 如果使用yarn可以跳过这步
npm start # 运行 create-react-app dev server 可以开你的示例程序

现在, 当你对库的src/目录或演示程序的example/src目录有任何更改, create-react-app会重新加载本地开发服务, 这样就能很愉快的对你的组件进行快速开发迭代.

发布到NPM

将库发布到 npm 时请务必要确保所有的依赖模块已经正确添加在了peerDependencies中, rollup会自动识别peerDependencies配置选项, 而不会将它捆绑在你的模块中(或者可以叫他外部依赖).

然后就可以愉快的发布拉

# 注意下面的命令会编译`commonjs`和`es`的版本到你模块的dist/目录中
npm publish

Github Pages

将示例部署到github pages相当简单, 我们需要先给example编译一个生产版本, 这个example用于演示你的库. 然后运行gh-pages来部署生成的bundle文件到github.

npm run deploy

License

MIT © Travis Fischer