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

km-card-layout-component-miniprogram

v0.1.10

Published

本仓库只保留了 TDesign 小程序组件库的**编译、发布与 Demo 骨架**,方便你快速复用发布流程,再按需补充自己的组件代码。

Downloads

632

Readme

TDesign Miniprogram Starter

本仓库只保留了 TDesign 小程序组件库的编译、发布与 Demo 骨架,方便你快速复用发布流程,再按需补充自己的组件代码。

包含内容

  • src/:干净的组件源码目录,当前自带一个 demo-card 示例组件。
  • script/gulpfile.js:精简版构建流程,负责编译 src、同步到 miniprogram_dist,并把结果拷贝到 Demo。
  • example/:最小可运行示例,会自动依赖 miniprogram_dist 中的组件。

快速开始

npm install
npm run dev      # 实时监听 src/ 与 example/,输出到 miniprogram_dist / example_dist
npm run build    # 进行一次完整的编译与 Demo 同步

首次或执行 npm run build 之后,将 example_dist 目录导入微信开发者工具即可预览。

开发自己的组件

  1. src/components 下复制 demo-card,调整文件名与实现代码。
  2. example/pages/home/index.json(或你自己的页面)里通过 usingComponents 引入新的组件。
  3. 运行 npm run dev,组件改动会实时同步到 Demo。

发布流程

  1. npm run build
  2. 检查 miniprogram_dist(产物)与 example_dist(示例)是否符合预期。
  3. miniprogram_dist 可直接发布到 npm / 私有仓库,example_dist 可作为 WeChat Demo。

下一步可以做什么?

  • 增加更多组件文件夹并在 example 中编写页面示例。
  • 根据项目需要扩展 script/gulpfile.js(如压缩、Less、单测等)。
  • 接入你自己的发布脚本或 CI。