Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alifd/build-plugin-lowcode

Package Overview
Dependencies
Maintainers
26
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alifd/build-plugin-lowcode

build plugin for component-to-lowcode

  • 0.4.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
decreased by-52.27%
Maintainers
26
Weekly downloads
 
Created
Source

概述

使用文档

export interface LowcodeOptions {
  builtinAssets?: Array<string|Assets>; // 会作为内置资产保存到构建产物中
  extraAssets?: Array<string|Assets>; // 只在调试环境加载到资产包中
  noParse?: boolean; // 关闭自动解析生成 lowcode meta
  categories?: string[]; // 组件在组件面板中的分类
  groups?: string[]; // 组件在组件面板中的 tab 分组
  baseLibrary?: 'react'|'rax';
  setterMap?: SetterMap; // 注入 setter
}

export interface SetterMap {
  [SetterName: string]: string;
}

export type Assets = {
  package: string;
  version: string;
  urls: string[];
  library: string;
};
// 示例
// {
//   package: 'antd',
//   version: '4.17.3',
//   urls: [
//     'https://g.alicdn.com/code/lib/antd/4.17.3/antd.min.js',
//     'https://g.alicdn.com/code/lib/antd/4.17.3/antd.min.css',
//   ],
//   library: 'antd',
// }

开发调试

组件开发

demo/component目录下是测试组件的项目,改项目引用了 build-plugin-lowcode,相关配置在在 demo/component/build.lowcode.js 中;

可以修改 build-plugin-lowcode 的代码、修改 demo/component/build.lowcode.js 的配置进行调试;

# 在 build-plugin-lowcode 根目录下执行启动调试环境
npm run component:dev

Keywords

FAQs

Package last updated on 28 Jul 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc