Add support for JS frameworks in InstallLibsService#24746
Merged
oykuermann merged 3 commits intorel-10.1from Jan 26, 2026
Merged
Add support for JS frameworks in InstallLibsService#24746oykuermann merged 3 commits intorel-10.1from
oykuermann merged 3 commits intorel-10.1from
Conversation
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.
Contributor
There was a problem hiding this comment.
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
JavaScriptFrameworkTypeandDetectFrameworkTypeFromPackageJsonto classify JS frameworks based ondependencies/devDependenciesinpackage.json. - Updated
InstallLibsService.InstallLibsAsyncto recognizepackage.jsonprojects for supported JS frameworks and runyarnin those directories with framework-specific logging. - Refactored
FindAllProjectsto still discover.csprojandangular.jsonprojects while also discovering standalone JS framework projects viapackage.json, avoiding overlap with Angular and .NET projects.
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/LIbs/InstallLibsService.cs
Outdated
Show resolved
Hide resolved
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/LIbs/InstallLibsService.cs
Outdated
Show resolved
Hide resolved
…ervice.cs Co-authored-by: Copilot <[email protected]>
…ervice.cs Co-authored-by: Copilot <[email protected]>
maliming
approved these changes
Jan 26, 2026
oykuermann
approved these changes
Jan 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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?
dotnet volo.abp.cli.dll install-libs -wd {your-solution-path}inabp\framework\src\Volo.Abp.Cli\bin\Debug\net10.0directory.