Skip to content

Latest commit

Β 

History

History
111 lines (76 loc) Β· 2.23 KB

File metadata and controls

111 lines (76 loc) Β· 2.23 KB

Contributing to VueYous

Thank you for your interest in contributing to VueYous! This project is a resource for learning how to create reusable, maintainable, and extensible composable functions similar to VueUse.

Development Environment Setup

Prerequisites

  • mise - Runtime version manager
    • This will automatically install Node.js 24 and pnpm 10

Setup Steps

  1. Install mise (if not already installed):
$ curl https://mise.run | sh
  1. Fork and clone the repository:
$ git clone https://github.com/your-username/vueyous.git
$ cd vueyous
  1. Install tools and dependencies:
$ mise install
$ mise run setup
  1. Start the development server:
$ mise run docs:dev

Project Structure

vueyous/
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ core/           # Core composable functions
β”‚   β”œβ”€β”€ shared/         # Shared utilities
β”‚   β”œβ”€β”€ guide/          # Documentation (English)
β”‚   β”œβ”€β”€ ja/            # Documentation (Japanese)
β”‚   └── zh/            # Documentation (Chinese)
β”œβ”€β”€ package.json       # Root package configuration
└── vite.config.ts     # Vite configuration

How to Contribute

Adding New Composable Functions

  1. Create a new folder in the packages/core directory:
$ mkdir packages/core/useYourComposable
  1. Create the following files:

    • index.ts - Composable function implementation
    • index.md - Documentation
    • demo.vue - Demo component (if needed)
  2. Add the export to packages/core/index.ts

Documentation Updates

  • English documentation: packages/guide/
  • Japanese documentation: packages/ja/guide/
  • Chinese documentation: packages/zh/guide/

Coding Standards

  • Use TypeScript
  • Follow ESLint rules (check with mise run lint)
  • Code formatting is applied automatically

Development Commands

# Start development server
$ mise run docs:dev

# Build
$ mise run build

# Type check
$ mise run type-check

# Lint
$ mise run lint

# Lint auto-fix
$ mise run lint:fix

# Text lint (for Japanese documents)
$ mise run lint:text

# Build documentation
$ mise run docs:build

# Preview documentation
$ mise run docs:preview

Thank you for contributing! πŸŽ‰