From 9ebd2486ef04b6d7882cc6bdc8eeb2e3fb4a1f9d Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Tue, 27 Nov 2018 17:33:36 +0000 Subject: [PATCH] yarn: make the install example more explicit Also format code in other examples with backticks --- pages/common/yarn.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/common/yarn.md b/pages/common/yarn.md index aef8c0cb5..3852b7f1c 100644 --- a/pages/common/yarn.md +++ b/pages/common/yarn.md @@ -6,19 +6,19 @@ `yarn global add {{module_name}}` -- Install all dependencies referenced in the package.json file: +- Install all dependencies referenced in the `package.json` file (the `install` is optional): -`yarn` +`yarn install` -- Install a module and save it as a dependency to the package.json file (add --dev to save as a dev dependency): +- Install a module and save it as a dependency to the `package.json` file (add `--dev` to save as a dev dependency): `yarn add {{module_name}}@{{version}}` -- Uninstall a module and remove it from the package.json file: +- Uninstall a module and remove it from the `package.json` file: `yarn remove {{module_name}}` -- Interactively create a package.json file: +- Interactively create a `package.json` file: `yarn init`