1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2025-06-16 07:07:37 +02:00

yarn: update

This commit is contained in:
Rico Sta. Cruz 2017-08-30 01:48:29 +08:00
parent 108cb2cc41
commit ef3ac2be70
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A

View File

@ -1,8 +1,12 @@
--- ---
title: Yarn title: Yarn
category: JavaScript libraries category: JavaScript libraries
layout: 2017/sheet
weight: -3
--- ---
### npm equivalents
| npm | yarn | | npm | yarn |
| --- | ---- | | --- | ---- |
| `npm install` | `yarn` | | `npm install` | `yarn` |
@ -10,8 +14,9 @@ category: JavaScript libraries
| `npm install gulp --save-dev --save-exact` | `yarn add gulp --dev --exact` | | `npm install gulp --save-dev --save-exact` | `yarn add gulp --dev --exact` |
| `npm install -g gulp` | `yarn global add gulp` | | `npm install -g gulp` | `yarn global add gulp` |
| `./node_modules/.bin/gulp` | `yarn run gulp` | | `./node_modules/.bin/gulp` | `yarn run gulp` |
{: .-left-align.-headers}
## yarn add ### yarn add
``` ```
--dev --dev
@ -20,3 +25,5 @@ category: JavaScript libraries
--exact --exact
--tilde --tilde
``` ```
These options are available for `yarn add`.