nx-import

Import external repositories into an Nx workspace while preserving Git history.

246|65|Updated Apr 27, 2019
One-click install
npx skills add https://github.com/udayvunnam/xng-breadcrumb --skill nx-import-udayvunnam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-import
Source: https://github.com/udayvunnam/xng-breadcrumb/tree/main/.gemini/skills/nx-import
Command: npx skills add https://github.com/udayvunnam/xng-breadcrumb --skill nx-import-udayvunnam

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of bringing external codebases or repositories into an existing Nx workspace, enabling monorepo adoption and consolidation.

Core Features & Use Cases

  • Monorepo Integration: Seamlessly import projects from standalone repositories or other monorepos into your current Nx workspace.
  • History Preservation: Maintains the Git commit history of the imported code.
  • Use Case: You have a separate microservice repository and want to integrate it as a new application within your main Nx monorepo. This Skill handles the migration, configuration, and dependency management.

Quick Start

Use the nx-import skill to import the repository located at 'https://github.com/example/my-repo' into the 'apps/my-imported-app' directory of the current workspace.

Frequently Asked Questions about nx-import

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I import an existing repository into an Nx workspace while preserving Git history?

To import a repository into an Nx workspace while preserving Git history, use the `nx import` command to integrate external codebases and manage project configurations during monorepo consolidation.

Can I import a subdirectory from another repository into my Nx monorepo?

Yes, you can import a subdirectory from an external repository into your Nx monorepo. This allows you to bring in specific project folders rather than entire repositories during code integration.

What do I need to consider when migrating a standalone microservice into an Nx workspace?

When migrating a standalone microservice into an Nx workspace, you need to handle package manager configurations, root dependencies, and project references to ensure the imported code integrates correctly.

Does the nx import command manage package dependencies when consolidating repositories?

Yes, the nx import process manages package dependencies by addressing root dependencies and package manager configurations required to successfully integrate external code repositories into your Nx workspace.

What is the best way to consolidate multiple separate repositories into a single Nx monorepo?

The best way to consolidate separate repositories into a single Nx monorepo is using the `nx import` command, which handles project configuration and dependency management for monorepo adoption.

Are there limitations when merging cross-repository code into an Nx workspace?

When merging cross-repository code into an Nx workspace, limitations include the need for careful handling of package manager configurations and project references to avoid breaking the existing monorepo setup.