@iconpark-miniprogram/cli
TypeScript icon, indicating that this package has built-in type declarations

0.0.26 • Public • Published

IconPark Mini Program Cli


icon-park 小程序组件构建

oclif Version Downloads/week License

特性

  • 自动检测分析项目根目录的 iconpark-miniprogram.json
  • 支持构建微信小程序的组件

使用方法

$ npm install -g @iconpark-miniprogram/cli
$ iconpark-miniprogram COMMAND
running command...
$ iconpark-miniprogram --help [COMMAND]
USAGE
  $ iconpark-miniprogram COMMAND
...

示例

⚠️ 如何获取iconpark的链接和数量 ⬇️

图片示例

1. 在小程序项目根目录创建 iconpark-miniprogram.json

  {
    "link": "https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/svg_4748_4.6e9e78e1ff1d1089dd55d318b7c8e76f.js", // iconpark svg 文件
    "total": 4, // 图标总数
    "path": "./components/iconParks/", // 组件保存路径
    "runtime": "weapp" // 运行平台 weapp | alipay
  }

2. 构建微信小程序支付宝小程序组件.

使用配置文件iconpark-miniprogram.json构建组件

$ iconpark-miniprogram // Automatic `iconpark-miniprogram.json` parsing 
// or
$ iconpark-miniprogram -c ./iconpark-miniprogram.example.json

3. 或者使用命令构建

$ iconpark-miniprogram --link https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/svg_4748_4.6e9e78e1ff1d1089dd55d318b7c8e76f.js --total 4 --path ./components/iconParks --runtime weapp

Readme

Keywords

Package Sidebar

Install

npm i @iconpark-miniprogram/cli

Weekly Downloads

0

Version

0.0.26

License

Apache-2.0

Unpacked Size

18.7 kB

Total Files

7

Last publish

Collaborators

  • yangger