create account

This is Yarn! by coderabbitcrypto

View this thread on: hive.blogpeakd.comecency.com
· @coderabbitcrypto ·
$48.35
This is Yarn!
<html>
<p><br>
<br>
<br>
</p>
<p><img src="https://i.imgur.com/C6pYNE8.png" width="600" height="269"/></p>
<p><br></p>
<p>Hey all,</p>
<p>Recently I was running a few projects and got a weird behavior my npm runs were taking too long ** devs will understand the frustration of having to wait long times for the entire script to finish running :( ** .</p>
<p>So after all that pain I was talking to a friend the introduced me to Yarn(<a href="https://yarnpkg.com/">https://yarnpkg.com/</a>), a package manager like the classic NPM but with a amazing performance doing the same tasks with a similar language.</p>
<p>How to Install Yarn:<br>
<br>
<a href="https://yarnpkg.com/en/docs/install">https://yarnpkg.com/en/docs/install</a></p>
<p>&nbsp;in this link you'll find the installation process to each OS, just pick yours and go for it.</p>
<p><br></p>
<p>I know now you thinking "Why would I bother, they probably don't even have an extensive library of packages!" I thought that too until I found out the Yarn works with the same library NPM uses.<br>
<br>
So if you're used to run like&nbsp;</p>
<blockquote>npm install font-awesome</blockquote>
<p>With Yarn you can just do this</p>
<blockquote>yarn add font-awesome</blockquote>
<p><img src="https://i.imgur.com/N43slUT.jpg" width="229" height="220"/></p>
<p>and voilá, all good! :D&nbsp;</p>
<p>And wasn't just speed but with npm sometimes controlling versions of packages can become a mess once the list starts to get bigger and Yarn let you have a better handle on them.<br>
<br>
Overall I'm not telling anyone they should pick NPM or Yarn over all both have their good sides and bad sides, the best to be done is really see what works better for you and which one you get more used to work with it.</p>
<p>The goal in reality is just improve your workflow.<br>
<br>
Well that's all for now, see you guys in the next post :D<br>
<br>
<br>
</p>
<p><br></p>
</html>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorcoderabbitcrypto
permlinkthis-is-yarn
categorydevelopment
json_metadata{"tags":["development","web","code","programming","javascript"],"image":["https://i.imgur.com/C6pYNE8.png","https://i.imgur.com/N43slUT.jpg"],"links":["https://yarnpkg.com/","https://yarnpkg.com/en/docs/install"],"app":"steemit/0.1","format":"html"}
created2017-12-28 03:38:48
last_update2017-12-28 03:38:48
depth0
children2
last_payout2018-01-04 03:38:48
cashout_time1969-12-31 23:59:59
total_payout_value47.674 HBD
curator_payout_value0.671 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,920
author_reputation6,113,455,729,644
root_title"This is Yarn!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id25,621,248
net_rshares4,346,038,387,770
author_curate_reward""
vote details (62)
@demoran ·
Yarn is great.  But there's a caveat to introducing it into your ecosystem:

Yarn uses a file called `yarn.lock` to remember package versions, and this file is incompatible (and will remain incompatible) with npm's `package-lock.json`.

Since you want to commit the lockfile with the rest of your code, if you're using yarn you should be adding the package-lock.json file to your ignore list (eg .gitignore).

cf https://yarnpkg.com/blog/2017/05/31/determinism/
properties (22)
authordemoran
permlinkre-coderabbitcrypto-this-is-yarn-20171230t220849208z
categorydevelopment
json_metadata{"tags":["development"],"links":["https://yarnpkg.com/blog/2017/05/31/determinism/"],"app":"steemit/0.1"}
created2017-12-30 22:08:45
last_update2017-12-30 22:08:45
depth1
children0
last_payout2018-01-06 22:08:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length461
author_reputation0
root_title"This is Yarn!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id26,115,783
net_rshares0
@rudee ·
Thank you wanna try that out
👍  
properties (23)
authorrudee
permlinkre-coderabbitcrypto-this-is-yarn-20171228t042207857z
categorydevelopment
json_metadata{"tags":["development"],"app":"steemit/0.1"}
created2017-12-28 04:22:15
last_update2017-12-28 04:22:15
depth1
children0
last_payout2018-01-04 04:22:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length28
author_reputation3,389,003,598,774
root_title"This is Yarn!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id25,625,619
net_rshares1,050,164,663
author_curate_reward""
vote details (1)