--- title: "Develop the Vue 3 Editor Package" description: "Set up a local copy of the Vue 3 editor repository, then format, lint, type-check and build it with the npm scripts that run before each package release." head: - - meta - name: robots content: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' - - meta - name: googlebot content: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' - - meta - name: bingbot content: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' ---
# Contributing to @erag/text-editor-vue Thanks for helping improve `@erag/text-editor-vue`. The editor is built from Vue 3 single-file components and Composition API composables written in TypeScript, and this guide shows how to clone it, check formatting and types, and build it locally. To use the editor rather than change it, see [installation](./installation.html) and the [introduction](./introduction.html). Local development, builds, and publishing require Node.js 24 or newer. Vue is a peer dependency, and the package intentionally has no runtime dependencies. The `src/` directory is organized into `types`, `commands`, `composables`, `config`, `constants`, `utils`, and `components`. --- ## Repository Setup 1. **Clone the repository**: ```bash git clone https://github.com/eramitgupta/text-editor-vue.git cd text-editor-vue ``` 2. **Install dependencies**: ```bash npm install ``` --- ## Available Development Scripts ```bash # Run Vite build in watch mode for development npm run dev # Run Prettier code formatting & ESLint fixes npm run lint # Check ESLint & Prettier without modifying files npm run lint:check # Run TypeScript typecheck without emitting output npm run typecheck # Build ESM bundle and TypeScript declaration files npm run build ``` --- ## Pre-publish Checklist Before creating a release or publishing, run: ```bash npm run prepublishOnly ``` This command automatically executes code formatting, ESLint checks, TypeScript verification, and the final production build.