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

fusion-to-antd

v1.0.19

Published

fusion迁移到antd

Readme

fusion-to-antd 工具包使用说明

命令

plugin

npx fusion-to-antd plugin

当前目录为ice+fusion脚手架时,fusion-to-antd 会为当前项目添加antd依赖及相关插件,并自动补全antd全局样式配置。 此命令适合基于ice.js的组件迁移。 如果该工程为ice-script,请手动添加antd依赖及相关插件,步骤如下:

  1. tnpm i antd @ant-design/icons ice-plugin-antd --save-dev
  2. 在ice.config.js中找到属性plugin,新增
    ['ice-plugin-antd', {
      themeConfig: {
        "primary-color": "#5050E6",
        "border-radius-base": "4px",
        "font-size-base": "12px",
        "text-color": "#333",
        "text-color-secondary": "#999",
      },
    }],

replace

npx fusion-to-antd replace

当前项目目录使用的是fusion时,fusion-to-antd 会做以下事情

  • 检索当前项目路径下所有的ts,js,tsx,jsx文件,不包含node_module、.umi、.ice目录。
  • 将文件内包含fusion组件的引入替换为antd组件引入,包含fusion物料。
  • 将文件内含有fusion组件(含fusion物料)进行antd(版本4.9.1)替换,替换顺序如下:
    1. 替换 fusion及物料包引用 -> antd引用
    2. 过滤 fusion组件不被antd支持的api
    3. 替换 fusion组件api -> antd组件相关api
    4. 补全 基于步骤2补全antd关联的属性和键值(通常在fusion某个api对应antd多个api时触发)
    5. 销毁 原有fusion组件api(只销毁已完全被antd支持的api,保留尚未完全被支持的api)。
  • 返回替换结果,差异及冲突输出在当前目录下的fta.log日志中。

你也可以指定路径深度,可以深度到指定某个文件,如

npx fusion-to-antd replace src/components
或
npx fusion-to-antd replace src/components/layout/layout.ts

fusion-to-antd

支持替换的组件列表

  1. affix
  2. avatar
  3. badge
  4. breadcrumb
  5. button
  6. calendar
  7. card
  8. cascader
  9. checkbox
  10. collapse
  11. ~~datepicker~~
  12. divider
  13. drawer
  14. ~~dropdown~~
  15. form
  16. grid
  17. input
  18. list
  19. ~~menu~~
  20. message
  21. modal
  22. ~~notification~~
  23. ~~inputnumber~~
  24. ~~pagination~~
  25. progress
  26. popover
  27. radio
  28. row
  29. rate
  30. ~~slider~~
  31. steps
  32. switch
  33. Select
  34. spin
  35. tooltip
  36. typography
  37. tabs
  38. ~~table~~
  39. tag
  40. ~~timepicker~~
  41. timeline
  42. ~~transfer~~
  43. ~~tree~~
  44. ~~upload~~

其它

fusion-2-antd.gif