Skip to content

Add comprehensive GitHub Copilot instructions for development workflow #695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Aug 11, 2025

This PR adds a comprehensive .github/copilot-instructions.md file that provides GitHub Copilot with detailed instructions for working effectively in the unplugin-vue-router codebase.

What's included

The instructions cover all essential development workflows with validated commands and timing:

  • Build and setup: Complete dependency installation with pnpm, build processes using tsdown
  • Testing: Unit tests with Vitest, type checking, and coverage reporting
  • Validation: Playground-based testing scenarios for route generation and functionality
  • Development tools: Linting with Prettier, documentation building with VitePress
  • Repository structure: Key directories, file organization, and important files to check after changes

Key features

  • All commands validated: Every command mentioned has been tested with actual timing measurements
  • Timeout guidance: Specific timing expectations with "NEVER CANCEL" warnings for long-running operations
  • Functional validation: Step-by-step scenarios for testing file-based routing functionality in the playground
  • CI requirements: Exact commands that must pass for the GitHub Actions workflow to succeed

Example validation workflow

The instructions guide developers through complete testing scenarios:

  1. Make changes to route generation logic
  2. Run pnpm run build to rebuild the library
  3. Start playground with pnpm run play
  4. Test dynamic routes like /users/[id] and verify TypeScript completions
  5. Run pnpm run lint and pnpm run vitest before committing

This ensures that GitHub Copilot can provide accurate guidance for both new contributors and experienced developers working on this Vue Router plugin.

Fixes #694.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@Copilot Copilot AI assigned Copilot and posva Aug 11, 2025
Copy link

cloudflare-workers-and-pages bot commented Aug 11, 2025

Deploying unplugin-vue-router with  Cloudflare Pages  Cloudflare Pages

Latest commit: f7e0d20
Status: ✅  Deploy successful!
Preview URL: https://a02c0265.unplugin-vue-router.pages.dev
Branch Preview URL: https://copilot-fix-694.unplugin-vue-router.pages.dev

View logs

… and timing

Co-authored-by: posva <664177+posva@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] ✨Set up Copilot instructions Add comprehensive GitHub Copilot instructions for development workflow Aug 11, 2025
@Copilot Copilot AI requested a review from posva August 11, 2025 09:37
Copilot finished work on behalf of posva August 11, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨Set up Copilot instructions
2 participants