evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A Node.js utility that executes specific tasks in an Nx workspace using programmatic APIs or CLI commands.
Given a project name and target, the utility should execute that specific task in the workspace.
The utility should support passing configuration options to the task execution.
The utility should provide information about task execution results.
/**
* Executes a single task for a specific project in an Nx workspace.
*
* @param {string} project - The name of the project
* @param {string} target - The target to execute (e.g., 'build', 'test')
* @param {Object} options - Optional configuration
* @param {string} options.configuration - The configuration to use (e.g., 'production')
* @returns {Promise<Object>} Execution result with success status
*/
async function executeTask(project, target, options = {}) {
// IMPLEMENTATION HERE
}
module.exports = { executeTask };Provides workspace task execution capabilities including the runExecutor function and target parsing utilities.