Giter Site home page Giter Site logo

mzy911 / fork-ali-lowcode-code-generator-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alibaba/lowcode-code-generator-demo

1.0 0.0 0.0 153 KB

阿里集团低代码 - demo

Home Page: https://lowcode-engine.cn

License: MIT License

JavaScript 2.28% TypeScript 85.67% HTML 5.43% SCSS 6.62%

fork-ali-lowcode-code-generator-demo's Introduction

集团低代码引擎 - 出码插件(浏览器里进行出码)

简介

本项目是出码模块的对应的浏览器里进行出码的插件

使用方法

  1. 安装依赖 npm install --save @alilc/lowcode-plugin-code-generator
  2. 注册插件:
import { plugins } from '@alilc/lowcode-engine';
import CodeGenPlugin from '@alilc/lowcode-plugin-code-generator';

// 在你的初始化函数中:
await plugins.register(CodeGenPlugin);

// 如果您不希望自动加上出码按钮,则可以这样注册
await plugins.register(CodeGenPlugin, { disableCodeGenActionBtn: true });

然后运行你的低代码编辑器项目即可。

参考:低代码编辑器的 Demo: https://github.com/alibaba/lowcode-demo

插件 API

本插件提供了出码的 API,注册了插件后, 可以这么样来用:

import { plugins } from '@alilc/lowcode-engine';

const codeGenResult = plugins.codeGenerator.generateCode({
  solution: 'icejs',
  schema: await ctx.project.exportSchema(),
});

console.log('出码结果:', codeGenResult); // 这里就是出码结果

本地开发

常规两步即可开发调试:npm i && npm start

共建

欢迎参与共建,欢迎直接 fork 一份改改,补充您所需要的特性或修复 bug,然后提 PR 过来:

-- 代码仓库:https://github.com/alibaba/lowcode-code-generator-demo

fork-ali-lowcode-code-generator-demo's People

Contributors

clarence-pan avatar leoyuan avatar alibaba-oss avatar binyellow avatar cqcq6688 avatar liujuping avatar kltk avatar jacklian avatar

Stargazers

mzy1212 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.