Contributing & Development
Thank you for contributing to @erag/text-editor-vue! This guide explains how to set up the development environment, run linters, check types, and build the project.
Local development, builds, and publishing require Node.js 24 or newer. Vue is a peer dependency, and the package intentionally has no runtime dependencies.
Repository Setup
- Clone the repository:
bash
git clone https://github.com/eramitgupta/text-editor-vue.git
cd text-editor-vue- Install dependencies:
bash
npm installAvailable 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 buildPre-publish Checklist
Before creating a release or publishing, run:
bash
npm run prepublishOnlyThis command automatically executes code formatting, ESLint checks, TypeScript verification, and the final production build.