Skip to content

Conversation

m0ksem
Copy link
Collaborator

@m0ksem m0ksem commented Jul 7, 2025

No description provided.

Copy link

netlify bot commented Jul 7, 2025

Deploy Preview for vuestic-docs ready!

Name Link
🔨 Latest commit d9e8d43
🔍 Latest deploy log https://app.netlify.com/projects/vuestic-docs/deploys/686b31666c77160008c75f55
😎 Deploy Preview https://deploy-preview-4539--vuestic-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 46 (🔴 down 9 from production)
Accessibility: 98 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Jul 7, 2025

Deploy Preview for vuestic-storybook ready!

Name Link
🔨 Latest commit d9e8d43
🔍 Latest deploy log https://app.netlify.com/projects/vuestic-storybook/deploys/686b3166f8c319000817d462
😎 Deploy Preview https://deploy-preview-4539--vuestic-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@m0ksem m0ksem requested a review from Copilot July 7, 2025 02:31
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the compiler’s ergonomics by auto-detecting project environment, scaffolding missing config files, and improving parsing and logging behavior.

  • Introduces a shared getProjectEnv helper and updates the main Vite plugin to conditionally enable features based on installed dependencies.
  • Extends the config-types plugin to generate a default vuestic.config.ts if none exists.
  • Migrates TS config parsing to JSON5 and refines alias resolution in the config resolver.

Reviewed Changes

Copilot reviewed 13 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/compiler/vuestic-config/plugins/use-config.ts Improved error message for missing entry functions
packages/compiler/vuestic-config/plugins/config-types.ts Scaffold default config file when missing
packages/compiler/vuestic-config/plugins/config-resolver.ts Refactored virtual alias resolution logic
packages/compiler/vite-plugin/index.ts Auto-detect project environment and adjust plugin defaults
packages/compiler/tsconfig-plugin/plugin.ts Switched from JSON.parse to JSON5 parser
packages/compiler/shared/project-env.ts New module for dependency and environment detection
packages/compiler/playground/vuestic.config.ts Updated demo primary color
packages/compiler/playground/src/pages/TestButtonBase.vue Simplified color binding
packages/compiler/playground/package.json Removed unused npm-run-all2 dependency
packages/compiler/package.json Bumped version, added type:module, refined exports
packages/compiler/devtools/client/vite.config.ts Cast vue() plugin and added optimizeDeps
packages/compiler/auto-import/plugin.ts Added explicit Plugin cast
.nvmrc Updated Node.js version reference


function checkModuleExists(moduleName: string): boolean {
try {
import.meta.resolve?.(moduleName)
Copy link
Preview

Copilot AI Jul 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The synchronous checkModuleExists uses import.meta.resolve without awaiting it, which will always return a Promise or undefined. Consider using require.resolve for a synchronous check or properly awaiting import.meta.resolve.

Suggested change
import.meta.resolve?.(moduleName)
require.resolve(moduleName);

Copilot uses AI. Check for mistakes.

@@ -1,7 +1,10 @@
import { Plugin } from 'vite'
import { resolveVuesticConfigPath} from './config-resolver'
import { writeFile, mkdir } from 'fs/promises'
Copy link
Preview

Copilot AI Jul 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The mkdir import is never used in this file. Remove it to avoid dead code.

Copilot uses AI. Check for mistakes.

import { Plugin } from 'vite'
import { existsSync } from 'node:fs'
import { readFile } from 'node:fs/promises'
import { dirname, resolve } from 'node:path'
Copy link
Preview

Copilot AI Jul 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dirname import is not used anywhere. It can be removed to clean up unused imports.

Suggested change
import { dirname, resolve } from 'node:path'
import { resolve } from 'node:path'

Copilot uses AI. Check for mistakes.

@m0ksem m0ksem merged commit 16459e2 into epicmaxco:develop Jul 7, 2025
6 checks passed
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.

1 participant