Comments (12)
👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.
Please review the labels and make any necessary changes.
from amis.
不编译 jssdk 不需要 fis
from amis.
不用fis怎么编译呢?我看整个项目的打包流程用的都是fis conf
from amis.
意思是需要把整个打包流程改一遍吗,去掉fis的依赖?
from amis.
意思是需要把整个打包流程改一遍吗,去掉fis的依赖?
https://fex-team.github.io/fis3/docs/beginning/install.html fis官网有对node版本要求,建议你用nvm:v17.4.0。如果打包esm/lib 不需要使用fis,它是使用rollup打包的。打包sdk才会使用到fis(/packages/amis/build.sh)
from amis.
意思是需要把整个打包流程改一遍吗,去掉fis的依赖?
https://fex-team.github.io/fis3/docs/beginning/install.html fis官网有对node版本要求,建议你用nvm:v17.4.0。如果打包esm/lib 不需要使用fis,它是使用rollup打包的。打包sdk才会使用到fis(/packages/amis/build.sh)
说的该不会是这个吧😭😭
#!/bin/bash
#./node_modules/fis3/bin/fis.js release gh-pages -c
rm -rf public
./node_modules/fis3/bin/fis.js release public -c
./node_modules/fis3/bin/fis.js release gh-pages -c
from amis.
意思是需要把整个打包流程改一遍吗,去掉fis的依赖?
https://fex-team.github.io/fis3/docs/beginning/install.html fis官网有对node版本要求,建议你用nvm:v17.4.0。如果打包esm/lib 不需要使用fis,它是使用rollup打包的。打包sdk才会使用到fis(/packages/amis/build.sh)
另外多问下用nvm本质不也是维护多套nodejs环境吗?这样我还是要持续保留一个低版本的node环境用于fis的运行?
from amis.
关键是你要不要编译 jssdk,如果你通过 npm 引用 amis 使用,可以自己把编译 jssdk 部分的逻辑干掉,就可以不依赖 fis 了
from amis.
不编译 jssdk 不需要 fis
这里的编译jssdk,包括编译react,echarts那些吗,还是仅仅说import了fis的地方?
项目里有很多用react的地方,但除了构建以外没有单独引用fis module的地方
(而且我对fis的认知还是个跟gulp等价的东西,fis应该只是构建用的吧)
from amis.
https://aisuda.bce.baidu.com/amis/zh-CN/docs/start/getting-started
amis 有两种用法,如果是第二种用法,不需要 fis
from amis.
简单看了下项目大多的函数是 schema2component,schema就是amis各组件对应的json配置,schema2component实现是转成react的component
import * as React from 'react';
import {
render as renderSchema
} from 'amis';
import { getEnv } from 'mobx-state-tree';
import { inject, observer } from 'mobx-react';
import { withRouter, RouteComponentProps } from 'react-router';
import * as qs from 'qs';
import { Action } from 'amis/lib/types';
interface RendererProps {
schema?:any;
[propName:string]:any;
};
@inject("store")
@withRouter
@observer
export default class AMisRenderer extends React.Component<RendererProps> {
这样看起来对应第二种?那应该就是把打包过程用webpack重做一遍可以解决?
from amis.
是第二种, 把这一段逻辑去掉即可 https://github.com/baidu/amis/blob/master/packages/amis/build.sh#L22-L24
from amis.
Related Issues (20)
- 点击不同按钮的dialog会发生classname被继承
- 弹窗输入框使用本地存储 设置默认值失败 HOT 1
- 自定义 scss 主题。打包编译后在 sdk 文件夹中不存在 HOT 1
- 如何对弹窗内容的对象重新赋值????
- 如何在react项目中获取amis的context、变量数据
- 6.4.1版本编辑器中使用表格2.0组件,渲染出来的页面上点击查看和编辑未弹框出来,其余新增、删除以及批量删除都弹框正确 HOT 1
- crud 动态表头固定列无效 amis6.4.1
- input-table delete事件自定义js中ajax的返回结果无法在下个action中获取
- crud2表格2.0 columnsTogglable:true 自定义列不显示
- tabs 在 form 中使用,如果 tabs 使用 source 会出现 tab 切换无法正常获取到值
- select的source是表达式时,数据域发生变化后已选值不会自动清空
- validateApi 验证 联动数据时, 即使设置了 ``"validateOnChange": true,`` , 也只会验证第一次时候的数据 HOT 1
- amis打包后体积太大了怎么办 amis 6.4.1占用了5g HOT 2
- 如何重写crud排序的action?
- 要不要出个LTS版本 HOT 2
- 【amis-editor】编辑schema时格式化异常,删除的内容又还原了 HOT 1
- 想要取消增删改查组件的列选择器失败! HOT 2
- 标签选择器自定义标签背景色
- 更新 `6.5.0` 后, 项目无法运行
- 请问amis-admin内部nodejs是有什么作用吗 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amis.