tessl install tessl/npm-lerna--init@6.6.0Create a new Lerna repo or upgrade an existing repo to the current version of Lerna
Agent Success
Agent success rate when using this tile
75%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.36x
Baseline
Agent success rate without this tile
55%
Build a Node.js utility that sets up task caching for a monorepo project to optimize build and test performance. The utility should configure the monorepo to cache task outputs and define task dependencies for improved execution speed.
@generates
/**
* Initializes caching configuration for a monorepo project
* @param {string} projectPath - Path to the monorepo root directory
* @returns {Promise<void>}
*/
async function initializeCaching(projectPath) {
// IMPLEMENTATION HERE
}
/**
* Configures specific tasks as cacheable with their output patterns
* @param {Object} options - Configuration options
* @param {string[]} options.tasks - Array of task names to mark as cacheable
* @param {Object<string, string[]>} options.outputs - Map of task names to their output patterns
* @returns {Promise<void>}
*/
async function configureTasks(options) {
// IMPLEMENTATION HERE
}
/**
* Defines task execution dependencies (task pipeline)
* @param {Object<string, string[]>} dependencies - Map of tasks to their prerequisite tasks
* @returns {Promise<void>}
*/
async function defineTaskDependencies(dependencies) {
// IMPLEMENTATION HERE
}
module.exports = {
initializeCaching,
configureTasks,
defineTaskDependencies
};Provides monorepo management and caching configuration capabilities
@satisfied-by