<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> 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 </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 </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>
author | coderabbitcrypto |
---|---|
permlink | this-is-yarn |
category | development |
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"} |
created | 2017-12-28 03:38:48 |
last_update | 2017-12-28 03:38:48 |
depth | 0 |
children | 2 |
last_payout | 2018-01-04 03:38:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 47.674 HBD |
curator_payout_value | 0.671 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,920 |
author_reputation | 6,113,455,729,644 |
root_title | "This is Yarn!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 25,621,248 |
net_rshares | 4,346,038,387,770 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
wackou | 0 | 339,604,112,010 | 5% | ||
pharesim | 0 | 102,494,307,762 | 0.28% | ||
kushed | 0 | 55,385,434,944 | 25% | ||
stone1 | 0 | 3,453,581,548 | 25% | ||
steemychicken1 | 0 | 47,295,566,340 | 25% | ||
joseph | 0 | 58,507,083,740 | 25% | ||
coderabbit | 0 | 10,258,992,800 | 100% | ||
aizensou | 0 | 73,193,445,641 | 25% | ||
b0y2k | 0 | 249,537,313,278 | 25% | ||
frankyfrank10 | 0 | 266,462,954 | 6.25% | ||
stoner19 | 0 | 11,485,808,821 | 25% | ||
raphaelom | 0 | 18,776,885,620 | 100% | ||
razvanelulmarin | 0 | 23,692,379,093 | 25% | ||
roelandp | 0 | 348,021,635,713 | 5% | ||
fabio | 0 | 279,209,305,451 | 25% | ||
coderabbitcrypto | 0 | 34,872,438,038 | 100% | ||
strangerarray | 0 | 5,712,500,306 | 25% | ||
anyx | 0 | 225,824,764,245 | 25% | ||
raymondspeaks | 0 | 1,307,954,562 | 25% | ||
pkattera | 0 | 530,688,484,300 | 25% | ||
knozaki2015 | 0 | 485,990,170,632 | 25% | ||
shawnamawna | 0 | 7,317,737,987 | 25% | ||
hagie | 0 | 33,919,956,306 | 25% | ||
coinbar | 0 | 5,537,818,057 | 25% | ||
thebluepanda | 0 | 47,791,780,940 | 25% | ||
yoshiko | 0 | 38,985,236,601 | 25% | ||
thisisbenbrick | 0 | 8,584,137,397 | 25% | ||
sirwinchester | 0 | 27,410,527,962 | 25% | ||
einsteinpotsdam | 0 | 7,720,353,633 | 25% | ||
zahnspange | 0 | 609,826,180,736 | 25% | ||
steemsquad | 0 | 2,105,369,128 | 25% | ||
allesgruen | 0 | 3,238,207,889 | 25% | ||
dannystravels | 0 | 10,207,253,959 | 25% | ||
jerryblanceton | 0 | 7,297,901,795 | 25% | ||
platinum-blue | 0 | 27,062,381,280 | 25% | ||
timbernana | 0 | 10,754,397,657 | 25% | ||
sherlockcupid | 0 | 28,078,375,579 | 25% | ||
dark.horse | 0 | 5,123,515,358 | 25% | ||
adventureevryday | 0 | 6,834,031,682 | 22.5% | ||
toyman | 0 | 12,705,042,086 | 25% | ||
i-gordan | 0 | 18,367,122,728 | 25% | ||
buzzbeergeek | 0 | 20,954,786,651 | 25% | ||
bigdaddy | 0 | 25,335,985,422 | 25% | ||
kingsmind | 0 | 4,500,968,921 | 25% | ||
romedog | 0 | 313,554,779,247 | 25% | ||
anejosua | 0 | 1,631,372,230 | 25% | ||
sunshinetraveler | 0 | 13,015,276,232 | 25% | ||
spg | 0 | 8,959,322,299 | 25% | ||
freefuture | 0 | 6,837,032,576 | 25% | ||
kinakomochi | 0 | 17,480,583,424 | 25% | ||
derrick829 | 0 | 34,533,710,555 | 2.5% | ||
professorbromide | 0 | 5,814,540,485 | 25% | ||
sammosk | 0 | 44,970,929,710 | 25% | ||
biancajapan | 0 | 8,870,241,702 | 25% | ||
stitchybitch | 0 | 8,241,113,927 | 25% | ||
duekie | 0 | 68,367,611 | 5.43% | ||
rachelhanson10 | 0 | 2,160,362,514 | 25% | ||
proba1 | 0 | 555,519,876 | 100% | ||
animagic | 0 | 797,027,724 | 7.5% | ||
tawasi | 0 | 296,078,282 | 100% | ||
idlebright | 0 | 2,762,339,224 | 100% | ||
babysteps | 0 | 252,092,600 | 50% |
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/
author | demoran |
---|---|
permlink | re-coderabbitcrypto-this-is-yarn-20171230t220849208z |
category | development |
json_metadata | {"tags":["development"],"links":["https://yarnpkg.com/blog/2017/05/31/determinism/"],"app":"steemit/0.1"} |
created | 2017-12-30 22:08:45 |
last_update | 2017-12-30 22:08:45 |
depth | 1 |
children | 0 |
last_payout | 2018-01-06 22:08:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 461 |
author_reputation | 0 |
root_title | "This is Yarn!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 26,115,783 |
net_rshares | 0 |
Thank you wanna try that out
author | rudee |
---|---|
permlink | re-coderabbitcrypto-this-is-yarn-20171228t042207857z |
category | development |
json_metadata | {"tags":["development"],"app":"steemit/0.1"} |
created | 2017-12-28 04:22:15 |
last_update | 2017-12-28 04:22:15 |
depth | 1 |
children | 0 |
last_payout | 2018-01-04 04:22:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 28 |
author_reputation | 3,389,003,598,774 |
root_title | "This is Yarn!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 25,625,619 |
net_rshares | 1,050,164,663 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
rudee | 0 | 1,050,164,663 | 100% |