Git Product home page Git Product logo

Comments (10)

aleclarson avatar aleclarson commented on May 13, 2024 1

I haven't tried yet, but wouldn't using yarn link (instead of yalc) in this scenario work just fine?

from yalc.

wclr avatar wclr commented on May 13, 2024

Currenlty while pushing (yalc push) it makes a lot of fs operations, first clears up cache folder copies there, clears up folders in installations and copies there fresh content, I'm not sure how well it would work with watching mode.

Well, I thought about such scenario too, and wanted to implement kind of --safe flag that would not remove old content and just copy fresh one on top, to less interfere with watches that my lock files/folders from removal.

So need to try. But really I refused to use this practice of instant updates, I make some more or less consistent changes to the package code then push it and check if works as expected.

from yalc.

wclr avatar wclr commented on May 13, 2024

If I need to check something quickly in the current project I may just to try to fix it in the node-modules, and then introduce the change in the package if it is needed. This is kind of workflow I use.

from yalc.

wclr avatar wclr commented on May 13, 2024

In my view if you really need instant updates of some code in your project it should probably be the real part of your project, not dependency package code. There is a certain balance needed.

from yalc.

akosyakov avatar akosyakov commented on May 13, 2024

Even without instant updates, it would be nice to run build on the dependent package and be sure that all local dependencies are up to date. Make it continuous could be the second step.

from yalc.

wclr avatar wclr commented on May 13, 2024

it would be nice to run build on the dependent package and be sure that all local dependencies are up to date.

You mean run build of dependency package from a dependant project? I think this an arguable idea.
But this command could be called yalc pull, everything is a stream 😄

from yalc.

akosyakov avatar akosyakov commented on May 13, 2024

It is a normal practice in more mature build systems as gradle for java. If one package has A script which relies on a result of B script in another package then performing A will make sure that result of B is up to date.

from yalc.

wclr avatar wclr commented on May 13, 2024

Then I'm not sure what particular workflow you mean.

from yalc.

akosyakov avatar akosyakov commented on May 13, 2024

You mean run build of dependency package from a dependant project? I think this an arguable idea.

I meant that is not arguable in other build systems, not in npm world, they just do it.

from yalc.

wclr avatar wclr commented on May 13, 2024

I think this may break the consistency, what would be the workflow?

  • Make some changes to dep package.
  • But you don't publish it (maybe because of inconsistent changes?)
  • Then dependant project you do pull and yalc publishes dep package and adds the latest to the project.

Why not just make push/publish after changes? This just more consistent.

from yalc.

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.