Comments (10)
I haven't tried yet, but wouldn't using yarn link
(instead of yalc) in this scenario work just fine?
from yalc.
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.
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.
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.
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.
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.
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.
Then I'm not sure what particular workflow you mean.
from yalc.
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.
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)
- 'yalc push' does not trigger 'npm prePublishOnly' script.
- hopes to add a hot update mode
- `yalc dir` shows 'null/.yalc' as the store-folder
- `yalc link` broken after adding/removing packages
- Is there a way to remove the published packages in the StoreMainDir ? HOT 2
- How to pass aditional args to npm update on pushing
- Is this project still active? HOT 13
- Dependencies not being installed when using `--link` HOT 1
- package version dependent? HOT 1
- yalc link across 2 monorepos not working HOT 2
- Resolve dependencies of a package with a specific value
- Import statements not resolving when using `yalc link`
- Importing `axios` is not executed crrectly
- Invalid "file:.yalc/<package name>" from the root project HOT 1
- Support push to remote and pull from local
- [Bug] I need to re-add the dependency every time it updates after I re-push it HOT 1
- Yalc add shows "Could not find package" HOT 1
- [BUG] yalc add does not include the same files as npm pack & publish HOT 1
- Allow specifying store-folder as an environment variable.
- How to render yalc add dynamically HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yalc.