Coder Social home page Coder Social logo

Comments (7)

chriskacerguis avatar chriskacerguis commented on August 17, 2024

@chalettu can you do a little research, and provide your thoughts here?

from manageiq-ui-service.

chalettu avatar chalettu commented on August 17, 2024

Sure, I can take a look. I had been reading about it earlier today but can
explore it to see its possible viability for node package management for
our projects

On Tue, Oct 11, 2016 at 4:09 PM, Chris Kacerguis [email protected]
wrote:

@chalettu https://github.com/chalettu can you do a little research, and
provide your thoughts here?

β€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#245 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOElfHLq4qA8Obm2MbzCXOWp1eD1YIMks5qy_r-gaJpZM4KT_m3
.

Chris Hale

Senior Software Engineer
[email protected]
512-585-7286
https://bluejeans.com/chhale

from manageiq-ui-service.

jjlangholtz avatar jjlangholtz commented on August 17, 2024

I spent a brief amount of time playing with yarn and from what I have seen so far it is an improvement over npm for a few reasons.

  1. The yarn.lock file is a much more robust solution than npm-shrinkwrap.json. The former works just like Gemfile.lock, automatically generating a new lock file after running yarn. As long as this lock file is commited in source control, every developer will be using the same dependency versions. Shrinkwrap on the other hand has a few flaws. It must be maintained by hand which is error-prone and puts the onus on the developer updating dependencies to remember updating the shrinkwrap file as well.

  2. In very rudimentary benchmarks, yarn is faster and generates less noise during package installations. (For this benchmark I removed the bower install and gulp builds from package.json)

    rm -rf node_modules && npm cache clean && time npm install
    npm install  56.05s user 16.14s system 39% cpu 3:04.96 total
    
    rm -rf node_modules && yarn cache clean  && time yarn
    yarn  40.14s user 17.83s system 39% cpu 2:26.26 total
    
  3. The command line interface is much cleaner both in output and in running commands with or without options. When yarn is installing packages it runs in distinct steps that are easy to understand and leave no mystery as to what is going on.

Again, I have only tried using yarn briefly but I am already happy using it over npm. The fact that it shares the same registry for packages as npm and is backed by large companies like Facebook and Google already leads me to believe that it will be adopted rapidly.

from manageiq-ui-service.

AllenBW avatar AllenBW commented on August 17, 2024

Yep, looked, sold. Lets do it! Just keep that documentation πŸ†• and :fresh: ( πŸ‡ instead of :fresh: ❓ ) gotta point users to here for instillation and update steps.

A question this raises can we remove requirement for npm? (at least from the readme).

Snap, yarn install saul' ya need to get rolling on this, for sure sold (big fan of things that are easy to use).

from manageiq-ui-service.

chalettu avatar chalettu commented on August 17, 2024

So the thing I think that is left to look at will be to see how we can get travis ci to use yarn as i was reading and travis ci uses npm by default and since yarn is new, I don't believe they have support for it just yet.

from manageiq-ui-service.

AllenBW avatar AllenBW commented on August 17, 2024

also this is AWESOME

from manageiq-ui-service.

chriskacerguis avatar chriskacerguis commented on August 17, 2024

Let's move forward with this! Sending to @chalettu for implementation!

from manageiq-ui-service.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.