# nuxt-monaco-editor **Repository Path**: gridsoft/nuxt-monaco-editor ## Basic Information - **Project Name**: nuxt-monaco-editor - **Description**: No description available - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-13 - **Last Updated**: 2024-01-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Nuxt Monaco Editor [![npm version](https://badge.fury.io/js/nuxt-monaco-editor.svg)](https://badge.fury.io/js/nuxt-monaco-editor) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/8b4585be9901491795f8b3c2f5dbb680)](https://www.codacy.com/gh/e-chan1007/nuxt-monaco-editor/dashboard?utm_source=github.com&utm_medium=referral&utm_content=e-chan1007/nuxt-monaco-editor&utm_campaign=Badge_Grade) [![Test result](https://github.com/e-chan1007/nuxt-monaco-editor/actions/workflows/test.yml/badge.svg)](https://github.com/e-chan1007/nuxt-monaco-editor/actions/workflows/test.yml) Integrate [monaco-editor](https://microsoft.github.io/monaco-editor/) with Nuxt ## Install ```sh # npm npm install -D monaco-editor nuxt-monaco-editor # yarn yarn add -D monaco-editor nuxt-monaco-editor # pnpm pnpm add -D monaco-editor nuxt-monaco-editor ``` Don't forget to install `monaco-editor`. ## Setup 1. Add this module to the Nuxt config ```ts export default defineNuxtConfig({ modules: [ 'nuxt-monaco-editor' ] }) ``` 2. (Optional) Configure the module ```ts export default defineNuxtConfig({ monacoEditor: { // These are default values: locale: 'en', componentName: { codeEditor: 'MonacoEditor', diffEditor: 'MonacoDiffEditor' } } }) ``` 3. Use the component in your pages or components ```vue ``` ## Development - Run `npm run dev:prepare` to generate type stubs. - Use `npm run dev` to start [playground](./playground) in development mode.