Skip to content

Conversation

@yekalkan
Copy link
Member

Resolves #24743

Enhanced InstallLibsService to detect and handle JavaScript frameworks (React Native, React, Vue, Next.js) by parsing package.json and running yarn accordingly. Updated project discovery to include these frameworks while avoiding overlap with Angular and .NET projects.

How to test it?

  1. Build Volo.Abp.Cli Project.
  2. Create a solution with react-native mobile app. (via ABP Studio)
  3. Run dotnet volo.abp.cli.dll install-libs -wd {your-solution-path} in abp\framework\src\Volo.Abp.Cli\bin\Debug\net10.0 directory.
  4. Check if node_modules directory is present in react-naative project.

Enhanced InstallLibsService to detect and handle JavaScript frameworks (React Native, React, Vue, Next.js) by parsing package.json and running yarn accordingly. Updated project discovery to include these frameworks while avoiding overlap with Angular and .NET projects.
@yekalkan yekalkan added this to the 10.1-final milestone Jan 26, 2026
Copilot AI review requested due to automatic review settings January 26, 2026 08:38
Copy link
Contributor

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 extends the install-libs CLI command so it can detect and install client-side dependencies for JavaScript-based front-end projects (React Native, React, Vue, Next.js) in ABP solutions, in addition to existing Angular and .NET support. It does this by scanning for relevant project files, parsing package.json to infer the framework, and then running yarn in the detected project directories.

Changes:

  • Introduced JavaScriptFrameworkType and DetectFrameworkTypeFromPackageJson to classify JS frameworks based on dependencies/devDependencies in package.json.
  • Updated InstallLibsService.InstallLibsAsync to recognize package.json projects for supported JS frameworks and run yarn in those directories with framework-specific logging.
  • Refactored FindAllProjects to still discover .csproj and angular.json projects while also discovering standalone JS framework projects via package.json, avoiding overlap with Angular and .NET projects.

maliming and others added 2 commits January 26, 2026 16:51
…ervice.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ervice.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@oykuermann oykuermann merged commit 1de44a9 into rel-10.1 Jan 26, 2026
3 checks passed
@oykuermann oykuermann deleted the issue/24743 branch January 26, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants