nx-import

Import code, projects, and Git history into an Nx workspace.

8.9k|947|Updated Feb 5, 2020
One-click install
npx skills add https://github.com/tsparticles/tsparticles --skill nx-import-tsparticles
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-import
Source: https://github.com/tsparticles/tsparticles/tree/main/.cursor/skills/nx-import
Command: npx skills add https://github.com/tsparticles/tsparticles --skill nx-import-tsparticles

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the adoption of Nx across multiple repositories or the migration of projects into an Nx monorepo, preserving commit history and ensuring a smooth transition.

Core Features & Use Cases

  • Monorepo Adoption: Integrate existing codebases into a new or existing Nx workspace.
  • Code Migration: Move projects from standalone repositories into a monorepo structure.
  • History Preservation: Maintain the full Git history of imported projects.
  • Use Case: You have several independent Node.js projects and want to consolidate them into a single Nx monorepo to manage dependencies and build processes more efficiently.

Quick Start

Use the nx-import skill to import the contents of the '/path/to/source/repo' directory into the 'apps/new-app' directory of the current Nx 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 monorepo?

To import a repository into an Nx monorepo, use the `nx import` command to migrate code, projects, and Git history. This Skill streamlines moving standalone projects into a workspace while preserving commit history and resolving configuration mismatches.

Does migrating a standalone project to an Nx monorepo preserve Git history?

Yes, migrating a standalone project to an Nx monorepo preserves the full Git history. The nx-import Skill ensures a smooth transition by maintaining commit history while integrating code into the new workspace structure.

What is the best way to consolidate multiple independent Node.js projects into a single Nx workspace?

The best way to consolidate independent Node.js projects is using the nx-import Skill, which integrates existing codebases into an Nx workspace. This allows you to manage dependencies and build processes more efficiently across a monorepo.

How does this handle pnpm workspace globs and TypeScript project references during code migration?

During code migration, the Skill addresses common issues like pnpm workspace globs and TypeScript project references. It resolves these configuration mismatches and dependency conflicts automatically to ensure a seamless transition into the Nx workspace.

Can I merge code from external repositories into an existing Nx workspace without losing dependencies?

Yes, you can merge code from external repositories into an existing Nx workspace without losing dependencies. The Skill handles dependency conflicts and configuration mismatches, ensuring a smooth adoption of Nx across multiple repositories.

Why are my pnpm workspace globs causing issues during an Nx monorepo migration?

Pnpm workspace globs can cause issues during an Nx monorepo migration due to configuration mismatches. The nx-import Skill specifically addresses these common issues, alongside TypeScript project references and dependency conflicts, to facilitate a smooth transition.