-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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] Official support for Yarn #4317
Comments
@deepu105 as discussed in mail thread. |
no need of |
Yes I know, its just for consistency similar to we doing |
@sendilkumarn could you do a benchmark?
|
I'm all for supporting yarn when it is detected as globally installed. Yarm looks very promising and it's very simple to switch to it ! |
@PierreBesson as soon as yarnpkg/yarn#789 is merged and released we can try it for our travis |
Npm install @deepu105 the time is equal to what they show 😛 |
For a generator such as JHipster, this is a killer improvement ! |
On my machine (Macbook) measured using "time":
|
On mine:
|
lets roll out yarn then. |
For yarnpkg/yarn#789, maybe a workaround until the release:
|
For a generated project this issue would be blocking yarnpkg/yarn#616 |
I will test with our current Travis build [edit] after some tries, I think I will wait the issue on yarn resolved 😪 |
Hey guys, they only had 1.3K stars 3 days ago, now they have 13K... that's crazy! |
Big companies, lots of hype, more marketing and lots of frustrated npm Thanks & regards, On 15 Oct 2016 01:04, "Mathieu ABOU-AICHI" [email protected] wrote:
|
We should be able to switch to yarn now that @sendilkumarn 's PR is merged and released upstream: https://github.com/yarnpkg/yarn/releases/tag/v0.16.0 |
Not yet... yarn's support is not widely "on" right now (check TravisCi PR about it here for instance). If you guys wanna use it, you can as it's on top of NPM but don't expect to see big differences... it's the opposite right now (check JHipster Core's yarn-dedicated branch, or better this). Too much hype kills the hype (but not the hipster :)). |
Like @MathieuAA said, let's wait. Here what I tried:
I have one question: what is the equivalent of |
|
You can see every command here.... but I've yet to see a project fully support the bare minimum as people do with NPM. |
Thanks Matthieu! The last time I look, I didn't see it... |
yes lets wait |
I play with yarn since 0.16.1 and it seems working very well.
What do you think about adding I have this code already working on my branch, tell me if I should PR or not? |
Oh yes that would be cool!!! Le 3 nov. 2016 7:35 PM, "Pascal Grimaud" [email protected] a
|
How can we advance on it ? I see 3 solutions:
|
If that's not a lot of work, here's my proposal:
-> if the stats show we have less than 5% of people using NPM, we can ditch it without any problem. That's what I did for Java 7, and that was very successful (= no complaint at all!) |
|
Oh good question!
So if our final goal is to push Yarn, I would make it only a flag. |
For developers, are we supposed to use |
@gmarziou yep |
Yes and we should update the CONTRIBUTING.md file to document it. |
|
OK thanks |
Can we close this? It's fully working for me! |
There are few things to do like documentation, but we can follow this ticket #4703 for this |
Is it time to merge jhipster/jhipster-devbox#72 ? |
@cbornet only once JHipster 4 is released, at the moment we need NPM |
OK thanks @pascalgrimaud let's close this! |
Shouldn't we add yarn.lock file to the generator repo? |
For me it's the "good practice", so yes. But we haven't used this for long enough to be sure :-) |
Are we sure we can do it for all combination of options ? |
@cbornet I guess we can commit the one from the generator. Then, for each generated project, that's another story - yes we should commit it, but that's going to be a nightmare to generate... I would just let people commit it themselves after generation. |
Yes we should just let people add it to VCS. i dont think there is any
value in generating it
Thanks & Regards,
Deepu
…On Thu, Dec 22, 2016 at 9:57 PM, Julien Dubois ***@***.***> wrote:
@cbornet <https://github.com/cbornet> I guess we can commit the one from
the generator. Then, for each generated project, that's another story - yes
we should commit it, but that's going to be a nightmare to generate... I
would just let people commit it themselves after generation.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4317 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABDlF5bTBmiNhr6Eu8O_L0WUTItajdPEks5rKuQtgaJpZM4KUctC>
.
|
So what is the dev flow is mvn spring-boot:run and yarn? |
@allahbaksh this is for JHipster 4, it's not released yet, and not documented yet |
By the way if we install yarn through npm on MAC some time it has issues. Spent almost 3 hours on figuring out this. |
On Windows also there are issues, I could not make it work with nodist, I had to switch back to simpler standard installation of Node |
webpack is throwing error var shouldExtract = !!(options.allChunks || chunk.isInitial()); Got it worked by yarn add extract-text-webpack-plugin. Now have to resolve other issues. |
The discussion started here
So people from FB, Google, Tilde etc have joinly released Yarn (read npm killer)
yarn add <lib-name> --dev
for [imagemin-svgo, imagemin-jpegtran, imagemin-optipng, imagemin-gifsicle] as workaround)So once this is stable we can may be check if yarn is present and then trigger
yarn install
instead ofnpm install
post app generation, as its way way way faster.npm install
can be fallback for people who ahve not installed yarn@jhipster/developers what do you think, also it would be great if some of you can test this out on mac and linux
I would like to do some performance benchmark but im on a slow mobile network now so not sure if its ideal. So if someone on fast connection can benchmark that would be great
The text was updated successfully, but these errors were encountered: