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

@bairong1/antd-lowcode-materials

v1.0.0

Published

Antd for LowCode

Downloads

1

Readme

antd-lowcode-materials

  • 所有的原子组件

开发

  1. 在根目录执行 yarn start
  2. 进入 antd-lowcode-materials 目录,yarn lowcode:dev
  3. 配置 XSwitch 代理
  4. 访问 http://localhost:8000

XSwitch 代理如下

{
  "proxy": [
    [
      "https://unpkg.com/@seada/antd-materials@latest/build/lowcode/view.js",
      "http://localhost:5551/view.js"
    ],
    [
      "https://unpkg.com/@seada/antd-materials@latest/build/lowcode/meta.js",
      "http://localhost:5551/meta.js"
    ]
  ]
}

发布

  1. 首先进行构建:npm run lowcode:build
  2. 发布组件:npm publish

这里我发布的组件是 my-material-demo。在发布之后我们就会有两个重要的文件:

我们也可以从 https://unpkg.com/[email protected]/build/lowcode/assets-prod.json 找到我们的资产包描述。

{
  "packages": [
    {
      "package": "my-material-demo",
      "version": "0.1.0",
      "library": "BizComp",
      "urls": [
        "https://unpkg.com/[email protected]/build/lowcode/render/default/view.js",
        "https://unpkg.com/[email protected]/build/lowcode/render/default/view.css"
      ],
      "editUrls": [
        "https://unpkg.com/[email protected]/build/lowcode/view.js",
        "https://unpkg.com/[email protected]/build/lowcode/view.css"
      ],
      "advancedUrls": {
        "default": [
          "https://unpkg.com/[email protected]/build/lowcode/render/default/view.js",
          "https://unpkg.com/[email protected]/build/lowcode/render/default/view.css"
        ]
      },
      "advancedEditUrls": {}
    }
  ],
  "components": [
    {
      "exportName": "MyMaterialDemoMeta",
      "npm": {
        "package": "my-material-demo",
        "version": "0.1.0"
      },
      "url": "https://unpkg.com/[email protected]/build/lowcode/meta.js",
      "urls": {
        "default": "https://unpkg.com/[email protected]/build/lowcode/meta.js"
      },
      "advancedUrls": {
        "default": [
          "https://unpkg.com/[email protected]/build/lowcode/meta.js"
        ]
      }
    }
  ],
}

使用

我们将刚刚发布的组件的 assets-prod.json 的内容放到 demo 的 src/universal/assets.json 中。

最好放到最后,防止因为资源加载顺序问题导致出现报错。 如图,新增 packages 配置

如图,新增 components 配置

这时候再启动 DEMO 项目,就会有新的低代码物料了。接下来就按照你们的需求,继续扩展物料吧。