Skip to content

Commit

Permalink
Lab #17
Browse files Browse the repository at this point in the history
  • Loading branch information
christianliebel committed Oct 7, 2024
1 parent c2974cc commit 093ccdf
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions tools/my-plugin/src/executors/echo/executor.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
import { PromiseExecutor } from '@nx/devkit';
import { PromiseExecutor, runExecutor as run } from '@nx/devkit';
import { EchoExecutorSchema } from './schema';

const runExecutor: PromiseExecutor<EchoExecutorSchema> = async (options) => {
const runExecutor: PromiseExecutor<EchoExecutorSchema> = async (options, context) => {
console.log(options.value);

const result = await run({
target: 'build',
project: context.projectName,
configuration: 'production'
}, {}, context);

for await (const res of result) {
if (!res.success) return res;
}

return {
success: true,
};
Expand Down

0 comments on commit 093ccdf

Please sign in to comment.