jonnyzzz / TeamCity.Node

Node.js, NPM and Phantom.JS runners for TeamCity
Apache License 2.0
309 stars 49 forks source link

Yarn support #116

Closed kmathmann closed 7 years ago

kmathmann commented 7 years ago

Is it posible to support Yarn in a future release?

jonnyzzz commented 7 years ago

Could you please elaborate. How do we support it in NPM runner? Do we need an extra runner for that or just a checkbox? What is the right way to fetch Yarn to have it fetch the rest?

kmathmann commented 7 years ago

Yarn is a new alternative NPM Client. It can be installed over npm npm install --global yarn or with the yarn installer from their website. For example yarn caches npm packages and is so much faster than the original NPM Client. Yarn dont need any special files, it can be used simultaneously to the original NPM Client.

short Article about Yarn

I don't know how TeamCity Plugins work. But Yarn is not a part of npm so i think that it needs an own runner.

Is that what you need to know?

jonnyzzz commented 7 years ago

Thanks

What is a common practice for yard. Do one expect it to be installed on every agent? Or will it ok to download it for every build?

On Oct 21, 2016 10:27 AM, "Kevin Mathmann" notifications@github.com wrote:

Yarn https://yarnpkg.com/ is a new alternative NPM Client. It can be installed over npm npm install --global yarn or with the yarn installer from their website. For example yarn caches npm packages and is so much faster than the original NPM Client. Yarn dont need any special files, it can be used simultaneously to the original NPM Client.

short Article about Yarn https://medium.com/@shuvohabib/from-npm-to-yarn-should-i-go-for-it-or-not-8d71480ed270

I don't know how TeamCity Plugins work. But Yarn is not a part of npm so i think that it needs an own runner.

Is that what you need to know?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jonnyzzz/TeamCity.Node/issues/116#issuecomment-255323911, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPpr2xFI6CjUGmjf7RzX8tWRBuICjfCks5q2HdpgaJpZM4KcP9V .

kmathmann commented 7 years ago

The common practise is to install yarn gloabally like you did it with npm. I think "installed on every agent" is global. Install yarn on every agent should be the best solution.

johnson-brown commented 7 years ago

Is there any news about the support of yarn in TeamCity ?

jonnyzzz commented 7 years ago

PR is very welcome too! I'll try to find some time to fix that, but no estimate for now

replete commented 7 years ago

I'm watching this repository for Yarn support - it's much faster than npm in benchmarks, better caching and eliminates 'bad installs' with it's deterministic algorithm.

Great work on this package, btw.

fkrauthan commented 7 years ago

I started creating a pull request #120 to add yarn support to this plugin.