New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@winfe/cli-plugin-doc

Package Overview
Dependencies
Maintainers
5
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@winfe/cli-plugin-doc

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

latest
Source
npmnpm
Version
1.5.27
Version published
Weekly downloads
14
-65%
Maintainers
5
Weekly downloads
 
Created
Source

@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

FAQs

Package last updated on 22 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts