-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(rust-plugins): 🎸 modular UI component build plugin for Farm. #101
Conversation
@@ -0,0 +1,114 @@ | |||
name: Building Rust Binding And Upload Artifacts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
插件内部的 workflow 文件应该都可以删掉 统一用外面的就可以了,需要在最外面的 build.yaml 最后加一行这个插件的上传配置。以及 rust-plugins.yml
的 38
行加一下你的文件名。
@@ -0,0 +1,36 @@ | |||
|
|||
[net] | |||
git-fetch-with-cli = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个文件好像应该也不用
@@ -0,0 +1,3 @@ | |||
[toolchain] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个文件可以删除一下呢 ci 会读最外面的,里面声明的话 有的包会安装不到
// Return a `PluginTransformHookResult` containing the modified content | ||
return Ok(Some(PluginTransformHookResult { | ||
content: modified_content.to_string(), | ||
module_type: None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
module_type
似乎是原来的 module_type
,None
是有啥特殊用途吗
|
参数感觉可以用驼峰命名呢 在 js 传递参数的时候 比较符合 js 的规范 |
1 |
@farmfe/plugin-modular-import
Modular UI library build plugin for Farm.
Install
Plugin
Usage
Via
farm.config.ts
.Example
Default Usage
Converts
To
Set
libDir
UsageConverts
To
Set
camel2Dash
UsageConverts
To
Set
styleLibDir
UsageConverts
To
Set
styleLibraryName
UsageConverts
To
Set
styleLibraryPath
UsageConverts
To