Skip to content

Commit 085212c

Browse files
authored
Update usage.md with npm_ping and custom NPM task info (#343)
Added documentation for the new npm ping task and custom task usage.
1 parent a5a3dbc commit 085212c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/usage.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ All npm command can also be invoked using underscore notation based on a gradle
7373
```bash
7474
$ gradle npm_update
7575
$ gradle npm_list
76+
$ gradle npm_ping
7677
$ gradle npm_cache_clean
7778
...
7879
```
@@ -84,6 +85,12 @@ be used for dependency declarations, such as:
8485
npm_audit.dependsOn(npm_cache_clean)
8586
```
8687

88+
A custom NPM task named `"my-custom-task"` declared in `package.json` in the `"scripts"`-block, can be referenced:
89+
90+
```bash
91+
$ gradle npm_run_my-custom-task
92+
```
93+
8794
More arguments can be passed via the `build.gradle` file:
8895

8996
```gradle

0 commit comments

Comments
 (0)