merging-devtools-module
Installation
SKILL.md
Workflow: Merging a DevTools Submodule into its Parent
This document outlines the process for merging a submodule (e.g., panels/timeline/extensions) into its parent module (e.g., panels/timeline) within the DevTools build system. The goal is to simplify the build configuration by consolidating BUILD.gn files while keeping the original source file directory structure.
Prerequisites
You will need the following information:
- Parent Module Path: The path to the directory containing the primary module.
- Child Module Path: The path to the directory of the submodule to be merged.
Workflow Steps
1. Analyze Build Configurations
Read the contents of the BUILD.gn file from both the child module and the parent module. Identify the following from the child's BUILD.gn:
- The list of
sourcesin thedevtools_module. - The list of
ts_deps(and non-TypeScriptdeps) in thedevtools_module. - The
entrypointfor thedevtools_entrypoint("bundle").