From 942e89a19ddd7f72e0ffb7d10e17c272cfda57ef Mon Sep 17 00:00:00 2001 From: Victor Savkin Date: Tue, 3 May 2022 13:52:37 -0400 Subject: [PATCH] feat(misc): add noop executor for cases when we need to define a target hat does nothing --- packages/nx/src/executors/noop/noop.impl.ts | 3 +++ packages/nx/src/executors/noop/schema.json | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 packages/nx/src/executors/noop/noop.impl.ts create mode 100644 packages/nx/src/executors/noop/schema.json diff --git a/packages/nx/src/executors/noop/noop.impl.ts b/packages/nx/src/executors/noop/noop.impl.ts new file mode 100644 index 0000000000..3d8be5edac --- /dev/null +++ b/packages/nx/src/executors/noop/noop.impl.ts @@ -0,0 +1,3 @@ +export default async function () { + return { success: true }; +} diff --git a/packages/nx/src/executors/noop/schema.json b/packages/nx/src/executors/noop/schema.json new file mode 100644 index 0000000000..b2b80b665c --- /dev/null +++ b/packages/nx/src/executors/noop/schema.json @@ -0,0 +1,9 @@ +{ + "title": "Noop", + "description": "An executor that does nothing", + "type": "object", + "cli": "nx", + "outputCapture": "pipe", + "properties": {}, + "additionalProperties": false +}