Skip to content

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 and the introduction.

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
  1. 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.