A yarn/npm plugin for Oh My Fish.
$ omf install yadd
- Update yarn/npm dependencies with one command.
- Add new dependencies.
- Fallback to yarn if npm isn't installed.
- Specify whether to use yarn or npm.
- Specify whether to update dependencies or devDependencies.
# it's as simple as this:
yadd
# specify that you want to use npm:
yadd -n # or yadd --npm
# specify that you want to update devDependencies:
yadd -d # or yadd --dev
# do both of the above:
yadd -nd # or yadd --npm --dev
# add new dependencies:
yadd new-package
# use npm and add new dependencies:
yadd -n new-package
# if running the command yadd doesn't make sense you can use the alias yup
# it does the exact same thing and autocompletion works the same as well
yup