UNPKG

@nx/nuxt

Version:

The Nuxt plugin for Nx contains executors and generators for managing Nuxt applications and libraries within an Nx workspace. It provides: - Integration with libraries such as Vitest, Playwright, Cypress, and Storybook. - Generators for applications, l

17 lines (16 loc) 714 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = createAiInstructionsForNuxt; const path_1 = require("path"); const fs_1 = require("fs"); async function createAiInstructionsForNuxt(tree) { const pathToAiInstructions = (0, path_1.join)(__dirname, 'files', 'ai-instructions-for-nuxt-4.md'); if (!(0, fs_1.existsSync)(pathToAiInstructions)) { return; } const contents = (0, fs_1.readFileSync)(pathToAiInstructions); tree.write('tools/ai-migrations/MIGRATE_NUXT_4.md', contents); return [ `We created 'tools/ai-migrations/MIGRATE_NUXT_4.md' with instructions for an AI Agent to help migrate your Nuxt projects to Nuxt 4.`, ]; }