GithubHelp home page GithubHelp logo

aisuda / amis-widget-cli Goto Github PK

View Code? Open in Web Editor NEW
52.0 52.0 14.0 2.68 MB

amis自定义组件开发工具

JavaScript 80.62% HTML 0.48% CSS 9.20% SCSS 2.04% Shell 0.09% Vue 4.61% TypeScript 2.64% Less 0.33%

amis-widget-cli's People

Contributors

wibetter avatar wleven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

amis-widget-cli's Issues

为什么我下载源码,安装依赖后,根据readMe的操作步骤会报错呢?

XXXXXX\node_modules\rollup-plugin-node-externals\dist\cjs\index.js:45
const pkg = JSON.parse((await fs.promises.readFile(packagePath)).toS
tring()) ?? {};

      ^

SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (D:\suning\platspringBoot\baseproject\amis-editor-vue-
snbsdk\node_modules\akfun\src\config\rollup.config.js:22:23)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm
and.

node版本也是符合要求的,v12.22.10。手动修改报错的js,把??去掉可以启动成功。

amis.config.js中的webpack改成webpack的全量配置项

amis.config.js中的webpack改成webpack的全量配置项,webpack是怎么配置这里就怎么配置。方便熟悉webpack的用户使用。
备注:amis.config.js中的dev、preview、linkDebug、build、build2lib仅作为运行环境变量。

使用自定义组件

请问如何把脚手架生成的自定义组件,引用到自己的项目中的amis渲染出来,还有如何引入到自己的编辑器

amis init -t=react 卡着不动

The authenticity of host 'github.com (140.82.114.3)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
image

react18支持

amis这边能够支持react18了
cli这边近期能否支持到react18

关于amis和amis-editor还有amis-widget-cli的疑问?

作者你好,关于amis和amis-editor还有amis-widget-cli有几个疑问,麻烦解答一下:
1.amis是不是只是对(json)做解析渲染,没有可视化的能力(就是可视化的制作)
2.如果想要可视化的制作是不是要用amis-editor
3.如果我一个项目(vue技术栈)里面,想要可视化编辑+解析json是不是要同时引入amis+amis-editor (js-sdk方式引入amis, amis-editor是不是只能使用react的技术栈)
4.vue的技术栈,通过amis-widget-cli制作一个vue的自定义组件,如何在amis以及amis-editor中使用?
(使用amis-widget-cli生成vue的模板npm run build2lib构建的产物,如何在amis中使用(amis通过js-sdk的引入方式))

amis init 出错

在node 14 16 上都试过了,没有别的提示,就一个红色的X
image

增加npm扩展包有效性检测功能

1、判断是否是有效的npm扩展包;
2、在本地将npm扩展包构建编辑器可用脚本,并提供静态资源托管(本地输出调试预览脚本);
3、页面设计器添加调试预览脚本,查看是否有可用的npm自定义组件。

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.