Code Monkey home page Code Monkey logo

Comments (2)

threepointone avatar threepointone commented on June 15, 2024

modular was designed for applications, but honestly it seems like a good fit for building multi-package libraries too. Some concerns:

  • it's a factor in renaming widgets -> modules #39 However...
  • if modules aren't necessarily react components now, what will the widgets map look like? While generating the widget map won't really 'break' anything, anyone enumerating the keys of the widget map to get a list of available widgets will be mistaken. Which means we either need an opt-in metadata for widget folders/modules, or an opt-out metadata for those that aren't. (so, conceptually widget:true in widget package.jsons, or widget:false in non-widget ones. or, a widgets: [...names] field in the root package.json)
  • we could try to be fancy like nx/etc and try to only publish updates to changed files, but in practice that just leads to a mad cluster in package.json of differing version numbers. Instead, let's just do it like React and update all package versions together.
  • shared/* shouldn't be used for libs (else, it'll have to be published too). But now that modules/* doesn't have to be just components, devs can just make a module called 'shared' (and remember to scope it).

So what would it look like? I propose no new configuration, and two commands -

  • modular lib build: creates a dist/ folder, and built versions of each package under modules
  • modular lib publish: publishes the built modules.

I'll go ahead with this once we take a call on how to identify widgets/non-widgets.

from modular.

threepointone avatar threepointone commented on June 15, 2024

Tracking this work in #253

from modular.

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.