Yarn: Add shortcut for saving dependencies

Created on 11 Oct 2016  Â·  8Comments  Â·  Source: yarnpkg/yarn

Add shortcut commands like -S for --save & -D for --dev

cat-feature

Most helpful comment

Kind of a duplicate of #649 - please see https://github.com/yarnpkg/yarn/issues/649#issuecomment-252983006 for why adding shortcuts might not be a good idea.

All 8 comments

using yarn add <pkg-name> does that, however I don't see how to do it for dev-dep

yarn add --dev $pkg works, but it's going to take a while for my muscle memory to adapt to --dev instead of -D…

Yea it would be good to have as more as possible mappings of npm commands/flags

@montogeek - oh, managed to miss docs link. ty!

Yeah I was gonna alias npm=yarn but typing npm triggers muscle memory and I'd mess it all up, haha.

Kind of a duplicate of #649 - please see https://github.com/yarnpkg/yarn/issues/649#issuecomment-252983006 for why adding shortcuts might not be a good idea.

Fixed by #1618 and #1653.

Was this page helpful?
0 / 5 - 0 ratings