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

@winfe/cli-plugin-doc

v1.5.27

Published

在现有的项目中安装物料,请参考[技术方案文档](https://www.yuque.com/srmcc5/hrthg3/an7gty)

Downloads

13

Readme

@winfe/cli-plugin-add

在现有的项目中安装物料,请参考技术方案文档

设计意图

根据物料的技术方案可以看到,目前把物料分为业务组件、区块和页面,使用的形式也不相同,且物料信息由 @winfe/get-materials 提供,所以 winex-cli 提供了 add 命令来帮助开发者安装和使用物料。

关于物料的详细信息,请参考物料开发模板

开始

$ winex add --plugin <plugin> --pm [pm]

业务组件

$ winex add --plugin components-name

1.从 @winfe/get-materials 查找,获取元数据

2.执行 npm/cnpm/yarn install components-name -save

区块、页面

$ winex add --plugin block-name

1.从 @winfe/get-materials 查找,获取元数据

2.确定区块或者页面的存放路径

3.是否需要安装区块或者页面所依赖的 dependencies

如果安装的依赖检测到跟现有的项目依赖有主版本的差异,则会给出提示信息

参数

| 选项名称(option) | 缩写 | 选项说明 | 可选值 | |---------- |-------- |-------- |-------- | | --plugin | -p | 物料包名称 | - | |--pm | -pm | 设置node包管理工具 | yarn(默认)/npm/cnpm|