Skip to content

Commit e4aaba9

Browse files
committed
docs: update build instructions in readme and contributing guide
1 parent 31d6ccd commit e4aaba9

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CONTRIBUTING.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ Before you submit a Pull Request, consider the following guidelines.
4242
```bash
4343
git clone [email protected]:NativeScript/nativescript-cli.git
4444
```
45+
* Install the node dependencies.
46+
```bash
47+
npm install --ignore-scripts
48+
```
4549
* Initialize the submodule.
4650
```bash
4751
git submodule init
@@ -57,15 +61,15 @@ Before you submit a Pull Request, consider the following guidelines.
5761
* Create your patch and include appropriate test cases.
5862
* Build your changes locally.
5963
```bash
60-
grunt
64+
./node_modules/.bin/grunt
6165
```
6266
* Ensure all the tests pass.
6367
```bash
64-
grunt test
68+
./node_modules/.bin/grunt test
6569
```
6670
* Ensure that your code passes the linter.
6771
```bash
68-
grunt lint
72+
./node_modules/.bin/grunt lint
6973
```
7074
* Commit your changes and create a descriptive commit message (the commit message is used to generate release notes).
7175
```bash

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ How to Build
432432
git clone https://github.com/NativeScript/nativescript-cli
433433
cd nativescript-cli
434434
git submodule update --init
435-
npm install
436-
grunt
435+
npm install --ignore-scripts
436+
./node_modules/.bin/grunt
437437
```
438438

439439
To use the locally built CLI instead `tns` you can call `PATH_TO_CLI_FOLDER/bin/tns`. For example:

0 commit comments

Comments
 (0)