This commit is contained in:
Rico Sta. Cruz 2016-10-12 11:58:02 +08:00
parent 2d09a4ca26
commit bee77a26c7
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 22 additions and 0 deletions

22
yarn.md Normal file
View File

@ -0,0 +1,22 @@
---
title: Yarn
category: JavaScript libraries
---
| npm | yarn |
| --- | ---- |
| `npm install` | `yarn` |
| `npm install gulp` | `yarn add gulp` |
| `npm install gulp --save-dev --save-exact` | `yarn add gulp --dev --exact` |
| `npm install -g gulp` | `yarn global add gulp` |
| `./node_modules/.bin/gulp` | `yarn run gulp` |
## yarn add
```
--dev
--peer
--optional
--exact
--tilde
```