Giter Club home page Giter Club logo

Comments (5)

qiu8310 avatar qiu8310 commented on June 20, 2024

你意思是可以解析 npm 里的组件信息吗?

from minapp.

landn172 avatar landn172 commented on June 20, 2024

想要探讨一下有没有通用解决方案?
假定通用配置为components.json
解析npm组件信息会读取components.json、
解析项目中定义的公共components.json

from minapp.

qiu8310 avatar qiu8310 commented on June 20, 2024

我觉得格外为了给这个插件提供一个配置文件,对使用者来说是一个额外的负担;

最好的方式是通过小程序自身的特点来自动解析,实在无法解析可以通过 vscode 的配置方式来配置全局的组件

from minapp.

landn172 avatar landn172 commented on June 20, 2024

我觉得这个算是一个feature,对于使用者来说是无感知的。
我的出发点有两个:

  1. 对于组件开发者,有一个统一的地方维护组件定义。对于插件来说只需要索引一次组件定义即可,不需要动态去查询。
  2. 减少对组件json的影响(大小等)

from minapp.

qiu8310 avatar qiu8310 commented on June 20, 2024

嗯,3.0 的时候考虑

from minapp.

Related Issues (20)

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.