Skip to content

Commit 85c97f2

Browse files
authored
Merge pull request #56 from bikecoders/migrate-to-yarn
chore: migrate to yarn
2 parents 2098772 + 80406b5 commit 85c97f2

File tree

6 files changed

+5208
-7397
lines changed

6 files changed

+5208
-7397
lines changed

docs/README_contributors.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# README for contributors <!-- omit in toc -->
22

3-
## Table of content <!-- omit in toc -->
3+
## Table of content <!-- omit in toc -->
44

55
- [How to start](#how-to-start)
66
- [Local development](#local-development)
77
- [1. Angular CLI](#1-angular-cli)
8-
- [2. npm link](#2-npm-link)
8+
- [2. yarn link](#2-yarn-link)
99
- [3. Adding to an Angular project --ng-add](#3-adding-to-an-angular-project---ng-add)
1010
- [4. Testing](#4-testing)
1111
- [5. Debugging](#5-debugging)
@@ -51,9 +51,9 @@ Follow the instructions for [checking and updating the Angular CLI version](#ang
5151
ng update @angular/cli @angular/core
5252
```
5353

54-
### 2. npm link
54+
### 2. yarn link
5555

56-
Use the following instructions to make `ngx-deploy-npm` available locally via `npm link`.
56+
Use the following instructions to make `ngx-deploy-npm` available locally via `yarn link`.
5757

5858
1. Clone the project
5959

@@ -66,20 +66,20 @@ Use the following instructions to make `ngx-deploy-npm` available locally via `n
6666

6767
```sh
6868
cd src
69-
npm install
69+
yarn install
7070
```
7171

7272
3. Create a local version of the package:
7373

7474
```sh
75-
npm run link
75+
yarn run link
7676
```
7777

7878
Read more about the `link` feature in the [official NPM documentation](https://docs.npmjs.com/cli/link).
7979

8080
### 3. Adding to an Angular project --ng-add
8181

82-
Once you have completed the previous steps to `npm link` the local copy of `ngx-deploy-npm`, follow these steps to use it in a local Angular project.
82+
Once you have completed the previous steps to `yarn link` the local copy of `ngx-deploy-npm`, follow these steps to use it in a local Angular project.
8383

8484
1. Enter the project directory
8585

@@ -90,7 +90,7 @@ Once you have completed the previous steps to `npm link` the local copy of `ngx-
9090
2. Add the local version of `ngx-deploy-npm`.
9191

9292
```sh
93-
npm link ngx-deploy-npm
93+
yarn link ngx-deploy-npm
9494
```
9595

9696
3. Now execute the `ng-add` schematic.
@@ -133,12 +133,12 @@ There are two ways of debug:
133133
To debug your builder you need to:
134134

135135
1. Place `debugger` statement, where you want your deployer stops.
136-
2. Follow the steps of [npm link](#2-npm-link) described here. compile, link and install linked in a local project
136+
2. Follow the steps of [yarn run link](#2-**yarn-link)\*\* described here. compile, link and install linked in a local project
137137
3. Now, on the project that you linked the deployer, run it on debug mode using:
138-
| Normal Command | Command on Debug Mode |
139-
| :--------------------- | :------------------------------------------------------------------------ |
140-
| `ng deploy` | `node --inspect-brk ./node_modules/@angular/cli/bin/ng deploy` |
141-
| `ng add YOUR_DEPLOYER` | `node --inspect-brk ./node_modules/@angular/cli/bin/ng add YOUR_DEPLOYER` |
138+
| Normal Command | Command on Debug Mode |
139+
| :--------------------- | :------------------------------------------------------------------------ |
140+
| `ng deploy` | `node --inspect-brk ./node_modules/@angular/cli/bin/ng deploy` |
141+
| `ng add YOUR_DEPLOYER` | `node --inspect-brk ./node_modules/@angular/cli/bin/ng add YOUR_DEPLOYER` |
142142

143143
4. Use your favorite [Inspector Client](https://nodejs.org/de/docs/guides/debugging-getting-started/#inspector-clients) to debug
144144

@@ -153,7 +153,7 @@ To debug your builder you need to:
153153
First do:
154154

155155
1. Place `debugger` statement or a red-point, where you want your deployer stops.
156-
2. Follow the steps of [npm link](#2-npm-link) described here. compile, link and install linked in a local project
156+
2. Follow the steps of [yarn link](#2-yarn-link) described here. compile, link and install linked in a local project
157157

158158
On VsCode, just create a [_JavaScript Debug Terminal_](https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_javascript-debug-terminal) and execute the command that you want to debug
159159

@@ -200,6 +200,6 @@ and test your flaming changes 🔥
200200

201201
```sh
202202
cd src
203-
npm release # to create a new version
204-
npm deploy
203+
yarn release # to create a new version
204+
yarn deploy
205205
```

0 commit comments

Comments
 (0)