Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ All npm command can also be invoked using underscore notation based on a gradle
```bash
$ gradle npm_update
$ gradle npm_list
$ gradle npm_ping
$ gradle npm_cache_clean
...
```
Expand All @@ -84,6 +85,12 @@ be used for dependency declarations, such as:
npm_audit.dependsOn(npm_cache_clean)
```

A custom NPM task named `"my-custom-task"` declared in `package.json` in the `"scripts"`-block, can be referenced:

```bash
$ gradle npm_run_my-custom-task
```

More arguments can be passed via the `build.gradle` file:

```gradle
Expand Down