Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added yarn commands in cheatSheet #172

Merged
merged 1 commit into from
Oct 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions CheatSheets/yarn-cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,24 @@
| Command | Description |
| ------------------------------- | ----------------------------------- |
| `yarn` | Install dependencies |
| `yarn init` | Create a new package |
| `yarn add [packeage]` | Install package |
| `yarn add --dev [packeage]` | Install dev package |
| `yarn remove [package]` | Uninstall package |
| `yarn remove [package]` | Uninstall dev package |
| `yarn upgrade` | Updated |
| `yarn upgrade [package]` | Update package |
| `yarn add [package]` | Install package |
| `yarn add --dev [package]` | Install dev package |
| `yarn autoclean` | Frees up unnecessary files and folders from dependencies|
| `yarn cache clean` | Remove the shared cache files |
| `yarn global add [package]` | Global install package |
| `yarn global remove [package]` | Global uninstall package |
| `yarn run <scriptName>` | Run a script defined in the package.json |
| `yarn help` | Accessing the list of commands |
| `yarn info` | See information related to packages |
| `yarn init` | Create a new package |
| `yarn link <destination>` | Connect the local project to anotherone |
| `yarn npm login` | Store new login info to access the npm registry |
| `yarn npm logout` | Logout of the npm registry |
| `yarn npm publish` | Publish the active workspace to the npm registry |
| `yarn cache clean` | Remove the shared cache files |
| `yarn info` | See information related to packages |
| `yarn pack` | Generate a tarball from the active workspace |
| `yarn remove [package]` | Uninstall package |
| `yarn remove [package]` | Uninstall dev package |
| `yarn run <scriptName>` | Run a script defined in the package.json |
| `yarn set version <version>` | Lock the Yarn version used by the project |
| `yarn up [package]` | Upgrade dependencies across the project|
| `yarn upgrade` | Updated |
| `yarn upgrade [package]` | Update package |