CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-lerna--init

tessl install tessl/npm-lerna--init@6.6.0

Create 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%

task.mdevals/scenario-4/

Monorepo Cache Configuration Utility

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.

Capabilities

Initialize Caching Configuration

  • Creates a basic caching configuration for a monorepo project @test
  • Generates configuration file that enables task caching @test

Configure Cacheable Tasks

  • Marks specific npm scripts as cacheable (e.g., "build", "test") @test
  • Defines output directories for cacheable tasks @test
  • Supports multiple cacheable tasks in configuration @test

Define Task Dependencies

  • Specifies that certain tasks must run after others (e.g., test runs after build) @test
  • Creates a task execution order based on dependencies @test

Implementation

@generates

API

/**
 * 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
};

Dependencies { .dependencies }

lerna { .dependency }

Provides monorepo management and caching configuration capabilities

@satisfied-by

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/@lerna/init@6.6.x
tile.json