Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] --warmup flag to only write cache #1170

Closed
ghost opened this issue Oct 17, 2016 · 2 comments
Closed

[feature] --warmup flag to only write cache #1170

ghost opened this issue Oct 17, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 17, 2016

Do you want to request a feature or report a bug?

Feature

What is the current behavior?

yarn add [package] and yarn install resolve packages and copies the node_modules structure. Dependant on flags it writes package.json and yarn.lock as-well.

If the current behavior is a bug, please provide the steps to reproduce.

N/A

What is the expected (extended) behavior?

The idea would be an extra flag --warmup, adding or installing packages with this flag would only write to the .yarn-cache, ignoring the link step. Since nothing would be linked it would also skip writing the package.json and yarn.lock file.

I believe it might come in useful while setting up a development environment for the first time, while getting everything up and running you could already warmup the .yarn-cache if you know for example a lot of your future projects will have react, babel, webpack,... dependencies before even ever starting. In the same way it could come in handy in some other smaller cases, ex. installing (preparing) dependencies from anywhere without being in the correct directory.

--warmup flag felt more intuitive to me, but it could of course just be yarn warmup [package] as well.

Please mention your node.js, yarn and operating system version.

N/A

@ghost ghost changed the title --warmup flag to only write cache [feature] --warmup flag to only write cache Oct 18, 2016
@gsklee
Copy link
Contributor

gsklee commented May 23, 2017

@bestander close

The scale of this feature request means that it needs to go through the proper RFC process.

@bestander
Copy link
Member

@ghost, the idea seems legit, send an RFC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants