From 9799ac5b690caaa292eae691e4cca12dbdfe02b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20J=2E=20Cort=C3=A9s?= Date: Mon, 28 Oct 2024 16:12:15 -0600 Subject: [PATCH] feat: add new npm proxy command --- src/Robo/Plugin/Commands/NpmCommand.php | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/Robo/Plugin/Commands/NpmCommand.php diff --git a/src/Robo/Plugin/Commands/NpmCommand.php b/src/Robo/Plugin/Commands/NpmCommand.php new file mode 100644 index 0000000..7408323 --- /dev/null +++ b/src/Robo/Plugin/Commands/NpmCommand.php @@ -0,0 +1,29 @@ + + * + * @param $args The npm command you would like to execute. + */ + public function npm(array $args) { + $env = Robo::config()->get('local_environment'); + $this->taskExec("$env npm")->args($args)->run(); + } + +}