Comments (5)
你意思是可以解析 npm 里的组件信息吗?
from minapp.
想要探讨一下有没有通用解决方案?
假定通用配置为components.json
解析npm组件信息会读取components.json、
解析项目中定义的公共components.json
from minapp.
我觉得格外为了给这个插件提供一个配置文件,对使用者来说是一个额外的负担;
最好的方式是通过小程序自身的特点来自动解析,实在无法解析可以通过 vscode 的配置方式来配置全局的组件
from minapp.
我觉得这个算是一个feature,对于使用者来说是无感知的。
我的出发点有两个:
- 对于组件开发者,有一个统一的地方维护组件定义。对于插件来说只需要索引一次组件定义即可,不需要动态去查询。
- 减少对组件json的影响(大小等)
from minapp.
嗯,3.0 的时候考虑
from minapp.
Related Issues (20)
- 原生开发过程中如何使用wxp? HOT 3
- wx/wxp缺少拓展接口支持 HOT 2
- Interface 'BaseComponent<D, A>' cannot simultaneously extend types 'Component' and 'Options' HOT 1
- 接口“BaseComponent<D, A>”不能同时扩展类型“Component”和“Options”。“Component”和“Options”类型的命名属性“properties”不完全相同
- Promise<any>不存在finally属性 HOT 3
- <feature request> Page增加watch功能
- example 跑不起来 HOT 2
- Featuring minapp in Docusaurus HOT 1
- 初始化项目时,Style Lauguage选择less,会报错 HOT 2
- UglifyJsPlugin 造成WXS报错 HOT 1
- BaseApp获取不到新增page的URL HOT 1
- 可以增加不输入"<"都触发标签名的补全吗?
- 请教一些关于 webpack 问题~ HOT 2
- 引入vant-weapp 或其他外部组件
- 请教一下:导航栏 中文显示乱码的问题 HOT 2
- 已有项目如何安装
- 如何在mina里接入alt数据监控
- 为什么.vsvode/settings.json中的忽略了packages HOT 2
- 本地图片资源的问题 HOT 4
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 minapp.