nx-import

Import external repositories into an Nx workspace with Git history.

11|2|Updated Apr 17, 2023
One-click install
npx skills add https://github.com/Eventiva/Eventiva --skill nx-import-eventiva
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-import
Source: https://github.com/Eventiva/Eventiva/tree/main/.cursor/skills/nx-import
Command: npx skills add https://github.com/Eventiva/Eventiva --skill nx-import-eventiva

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the complex process of migrating existing code repositories or projects into an Nx workspace, preserving history and ensuring compatibility.

Core Features & Use Cases

  • Monorepo Adoption: Adopt Nx across multiple repositories or consolidate projects into a single monorepo.
  • Code Migration: Bring code and Git history from external or internal repositories into your Nx workspace.
  • Use Case: You have a legacy project in a separate Git repository and want to integrate it into your existing Nx monorepo. This Skill handles the import, configuration, and dependency management.

Quick Start

Use the nx import skill to bring code from the source repository into 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 Git repository into an Nx monorepo?

To import an existing Git repository into an Nx monorepo, use the `nx import` command to migrate code, preserve Git history, and automatically manage workspace configurations.

What is the best way to consolidate multiple projects into a single Nx workspace?

The best way to consolidate multiple projects into a single Nx workspace is using `nx import`, which handles monorepo adoption by migrating code and preserving the original Git history.

Does nx import work with Next.js and Vite project configurations?

Yes, nx import works with Next.js and Vite configurations, automatically addressing framework-specific settings, TypeScript project references, and root dependencies during the repository migration process.

How do I handle pnpm workspace globs when migrating code to an Nx workspace?

When migrating code to an Nx workspace, the import process automatically handles common issues like pnpm workspace globs, ensuring your monorepo configuration remains compatible after consolidation.

Can I import only a subdirectory from an external repository into Nx?

Yes, you can import a subdirectory from an external repository into Nx, as the import process supports both whole-repo and subdirectory migrations while preserving Git history and managing configurations.