From ff71ede1f66e87654f71dd16f96bbf9fb049a091 Mon Sep 17 00:00:00 2001 From: Daniel Hammer Date: Fri, 12 Dec 2025 22:47:30 +0100 Subject: [PATCH] Update usage.md with `npm_ping` and custom NPM task info Added documentation for the new npm ping task and custom task usage. --- docs/usage.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/usage.md b/docs/usage.md index 90619f1c..551c893f 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -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 ... ``` @@ -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