GithubHelp home page GithubHelp logo

Comments (3)

SpencerCDixon avatar SpencerCDixon commented on June 17, 2024

@tajo any thoughts? Also how do you guys do development of the components? Do you have a package that runs a webpack server to test everything out?

from cf-ui.

tajo avatar tajo commented on June 17, 2024

@SpencerCDixon

  1. Not at all. Having a single entry point cf-ui would not scale when you start counting modules in hundreds. Various components can export Button without need to use some prefixes as DropdownButton, PaginationButton.

  2. Yes!

  3. You can place your application into the same yarn workspace as your UI kit. Everything gets symlinked. You can even take it a step further and alias all package imports through babel, so when you are deving, there is not difference between "main" code and UI kit code.

Also how do you guys do development of the components? Do you have a package that runs a webpack server to test everything out?

Yes, we have a special app that serves as a "canvas" for developing components in isolation. We also have a command to alias source of these components into our main application, so we can tweak it there as well.

from cf-ui.

SpencerCDixon avatar SpencerCDixon commented on June 17, 2024

Sweeeeet, thank you for answering all my questions! I've been using this setup for the past couple months now and am really enjoying it. I've even been able to publish and reuse some form/util packages between web and react native.

The separate packages for importing has been pivotal for keeping bundle sizes small when code splitting!

Thanks again for the inspiration

Cheers 🍻

Edit: for others curious I set up styleguidist for component development/documentation and I have my web app in the packages dir as web and it's a private package

from cf-ui.

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.