evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A command-line tool that inspects an Nx workspace and provides detailed project information in a structured format.
Build a CLI tool that retrieves and displays detailed information about a specific project in an Nx workspace. The tool should accept a project name as input and output comprehensive project details.
The tool should be able to show information about specific build targets within a project.
The tool should provide functionality to list all projects in the workspace with optional filtering.
/**
* Retrieves detailed configuration for a specific project
*
* @param {string} projectName - The name of the project to inspect
* @returns {Promise<Object>} Project configuration object
* @throws {Error} If project is not found
*/
async function getProjectConfiguration(projectName) {}
/**
* Retrieves information about a specific target within a project
*
* @param {string} projectName - The name of the project
* @param {string} targetName - The name of the target (e.g., 'build', 'test')
* @returns {Promise<Object>} Target configuration object
* @throws {Error} If project or target is not found
*/
async function getTargetConfiguration(projectName, targetName) {}
/**
* Lists all projects in the workspace with optional filtering
*
* @param {Object} options - Filtering options
* @param {string} [options.type] - Filter by project type ('application' or 'library')
* @returns {Promise<Array>} Array of project objects with name and type
*/
async function listProjects(options = {}) {}
module.exports = {
getProjectConfiguration,
getTargetConfiguration,
listProjects
};Provides workspace inspection and project graph APIs for querying Nx workspace configuration and structure.