-
-
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
Upgrade to Yarn 1.0 #6362
Comments
And maybe it's just me, but for developing JHipster, Yarn 1.0.0 is totally broken...
Time to test NPM 5 again!!! Maybe move totally to NPM 5? It will ease installation, too. |
npm5 works fine except that it's not packaged by default with node 6.x. Also I found that on Fedora only yarn 1.0.0 was available while on Windows it was 1.0.1, so we should be careful to not require very latest version. |
yarn link has some open issues with binaries (prior 1.0.0), so you might be better not using the cli but using yo. |
Yes, but I'm using Node 8 without any trouble for some time now... I know we always recommend LTS, but maybe it's time to change. The main benefit for me is that there is one less thing to install for end-users - and for most Java developers, all this Node stuff is quite frightening. Then, I would like to test what we can do with NPM 5. I have one big issue with our current build: it takes a long time to generate because it downloads some non-cacheable assets like Sass. Most of those are useless (unless you select Sass, of course), and come as transitive dependencies (Sass comes from Angular CLI), so I would like to be able to exclude them. I haven't found a way to do it yet, and this would speed up and ease the build for a lot of people. Also, I would love to be able to do an "offline build", that would be so helpful for demos and conferences where you have no Wifi. |
Anyway, we still need to wait for a release of the front-end-maven plugin, so no hurry. Also personally, I have no problem building a JHipster app with my locally installed yarn 1.0.1. |
Node 8 will be LTS in October, so I'd prefer we wait for it so that our LTS version recommendation stays clear. |
New release of frontend-maven-plugin: https://github.com/eirslett/frontend-maven-plugin/releases/tag/frontend-plugins-1.6 |
I'm testing Yarn 1.1.0 and that looks better - I still get a few errors, but this is more usable -> I think we should migrate to it, as we can't stay with an old version anyway |
I already started to work on this, but :
|
@pascalgrimaud I got the whole thing working quite well, but I didn't test on Travis.... I'll do a branch to test |
Here it is: https://github.com/jhipster/generator-jhipster/tree/yarn_1_1_0 |
There is an error during this phase:
|
I'm still working on the https://github.com/jhipster/generator-jhipster/tree/yarn_1_1_0 branch |
Same for me. I'm wondering about switching back to NPM too... as I think you do the release with |
Yes @pascalgrimaud I have 3 issues with Yarn:
I had a quick look and migrating back to NPM seems to be quite a lot of work, unfortunately. And in that case, really, let's drop Yarn support: this is too much work to support both tools, for no added value (as our users don't care about that) |
No worry, I coded the support for Yarn and switching back to NPM would be trivial. |
Sorry but I dont understand why we should remove yarn support just because of one bug ! Yes it's an annoying one but yarn just had their 1.0 release and this is the way of things in the JavaScript world, I predict you will have the same kind of breakage between released of npm. Also yarn is much faster in my experience and has helped tremendously with fixing unreliable transitive dependencies. I'm also frustrated with yarn link issues for development but this should not be a reason to stop providing yarn support which works great for 100% of our users, just causing problem in Travis and for contributors. |
Agree with @PierreBesson |
@jdubois I guess the changes to this file https://github.com/jhipster/generator-jhipster/compare/yarn_1_1_0?expand=1#diff-b80b01c33d5b4fd96f0304dbc1446060L137 is not required as passing |
Overall what I would suggest is
|
Thanks @deepu105 : indeed there's a warning with |
Sorry @deepu105 to annoy you again with that |
And for the record my build broke again:
So no solution for the moment |
Hold on guys! I think I fixed the Travis build with Yarn 1.0 🤞 |
I hope you find a solution @pascalgrimaud |
@jdubois about |
Yarn 1.0 was just released, see https://github.com/yarnpkg/yarn/releases/tag/v1.0.0
Our current build works with the 0.27.5, but fails with 1.0.0. This needs to be fixed.
The text was updated successfully, but these errors were encountered: