Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    David First
    @davidfirst
    @molnarzs , I just merged a fix for this into master.
    teambit/bit#1921
    With this fix, it doesn't run the Angular compiler to parse the entire project, so all these errors should be gone.
    We're going to release a new version very soon.
    Tally Barak
    @Tallyb
    @CristianTurcios Hi. Basically, you can share any javascript code. That also include Angular Elements. However, a dedicated compiler does not yet exist for Elements. It is on our list with some of the other web components frameworks out there.
    Cristian Turcios
    @CristianTurcios
    @Tallyb perfect, thanks for the explication, I will be pending when the new compiler out there
    moreno-nt
    @moreno-nt
    hi all, is it possible somewhere to find the time a change has been pushed to a component in the bit ui ?
    itay mendelawy
    @itaymendel_twitter
    Each component page shows how long ago the version was exported
    moreno-nt
    @moreno-nt
    Hi all, is there a way for bit to automatically add new component dependencies ? We are trying to automate our workflow with CI but everytime we add a new file in a component we need to add it manually to the component
    itay mendelawy
    @itaymendel_twitter
    hi @moreno-nt you can add several files to the same component in a single command (or an entire directory). additionally you can track many components with a single command.
    right now the way to do it is by pre-tracking the components before ci, and commit it... so the CI will be the one running the tag command.
    Bit does not know how to model the components for you. understanding if a file should be a part of the component - or be a part of another component is not a simple task.
    we have build an internal service that can do just that, but this is not GA at the moment.
    moreno-nt
    @moreno-nt
    Alright, so right now it's not possible to have a fully automated CI :/ Or what's your tool like ? Is that something difficult to make ?
    itay mendelawy
    @itaymendel_twitter
    if you mean that you want a CI that automatically understand if there are new components and can isolate them perfectly automatically - no. sadly this is not available.
    however, if you simply run bit add and isolate the new components, and commit the changes to git, you can have bit tag and export the components.
    if no new components/files where added, Bit will be ablet o export all modified components
    we are working on a service to resolve it, but it'll take a while. requires a lot of statistics to properly understand how to properly isolate components in many use cases
    moreno-nt
    @moreno-nt
    well the thing is when it's a new component we made it work by doing bit add src/components/ for example, then it adds the new but it tracks everything as components even new files. It would be good to have a bit add files for example which check which is the closest main file and attach the files to it
    I understand yes
    itay mendelawy
    @itaymendel_twitter
    you can automate such action using Bit's SDK
    if you have a specific convention you use, and all components support it - it should work.
    moreno-nt
    @moreno-nt
    Ok, so if we have the same structure accross our repo, let's say all main files are src/components/main.tsx and dependencies src/components/static/ , when we add a new file into static we can automatically do it with this bit SDK without doing manually bit add filename --id component ?
    Just checking cause there is no clear documentation in this sdk
    and thanks btw :)
    itay mendelawy
    @itaymendel_twitter
    the SDK is not well documented... but you can do that.
    it gives you APIs to the bit add command. So you can use JavsScript code to create the components.
    in your case, if you have a specific convention, you can build a tree of components from that convention during CI, and push it to the bit.addMany command.
    if any of the components you are trying to add is already tracked by Bit - it will be discarded.
    so only new components and dependencies will be added.
    https://github.com/GiladShoham/bit-add-many-example/blob/master/addMany.js
    this file builds the components from the very specific file tree
    there's not much Bit code in there.... but if you have specific questions about the API, please open a github issue so the answers will be well documented.
    Gilad Shoham
    @GiladShoham
    Hi @moreno-nt
    You might find this issue relevant for you:
    teambit/bit#1945
    It's another user doing the same as you.
    He wrote some scripts to automate the process.
    Also, if you need more help with the addMany API, let me know.
    moreno-nt
    @moreno-nt
    @itaymendel_twitter @GiladShoham thanks a lot !, when you say he wrote some scripts, can we see those scripts somewhere ? I only see the bit-add-many example in the thread
    ok actually I guess we'll have to go with the addMany and configure it our own way
    Well not sure where to start with the script yet
    We appreciate your responsiveness in our team :)
    itay mendelawy
    @itaymendel_twitter
    i think that Valdas wants to use addMany instead of his bash scripts.
    please ping use either here or github for support with this automation.
    moreno-nt
    @moreno-nt
    yes right looks like it
    We will try to use the addMany script, I'll ping you if we encounter issues
    moreno-nt
    @moreno-nt
    in the example it's just adding new components,but not dependencies with it right ?
    so I guess there should be a "handleDep" function ?
    itay mendelawy
    @itaymendel_twitter
    use addMany for all components (and their dependencies). Bit handles figuring out the dependency graph between them automatically.
    moreno-nt
    @moreno-nt
    well it does not detect and attach automatically new files in a component
    or you mean it does thanks to addMany ?
    and sorry when I mean dependency I mean any new files in the compenent (not another component import)
    itay mendelawy
    @itaymendel_twitter
    Bit does not detect and track files for you. But if you track a file that a component depends on - Bit will set it as the missing dependency.
    itay mendelawy
    @itaymendel_twitter
    Bit understands the relationship between tracked files
    Aleksander Vines
    @aleksandervines
    How can I use components in a private collection when building and deploying apps with npm on Heroku?
    I guess the part that's unclear to me is how to authenticate and get access to private collection from the Heroku build step.
    itay mendelawy
    @itaymendel_twitter
    Check this blog post
    Sry, full link
    Aleksander Vines
    @aleksandervines
    looks like it answers my question. Thanks