GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — lowcode-tools/packages/build-plugin-lowcode at main · alibaba/lowcode-tools

Expand file tree

/

build-plugin-lowcode

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

build-plugin-lowcode

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
demo
demo
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
README.md
README.md
 
 
package.json
package.json
 
 

README.md

Outline

概述

使用文档

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
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.