Merge add and add-dev and remove ls

waldyrious/alt-syntax
vkolmakov 2016-10-16 18:46:48 -05:00
parent 81a9c4fedd
commit 165e1ded0b
1 changed files with 1 additions and 9 deletions

View File

@ -10,22 +10,14 @@
`yarn` `yarn`
- Install a module and save it as a dependency to the package.json: - Install a module and save it as a dependency to the package.json. Add --dev to save as a dev dependency:
`yarn add {{module_name}}@{{version}}` `yarn add {{module_name}}@{{version}}`
- Install a module and save it as a dev dependency to the package.json:
`yarn add {{module_name}}@{{version}} --dev`
- Uninstall a module and remove it from the package.json: - Uninstall a module and remove it from the package.json:
`yarn remove {{module_name}}` `yarn remove {{module_name}}`
- List a tree of installed modules:
`yarn ls`
- Interactively create a package.json file: - Interactively create a package.json file:
`yarn init` `yarn init`