mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Add optional PackageManagerName Option to use alternative Package Managers like Yarn #11
Closed
opened 2025-08-09 17:14:39 +00:00 by fergalmoran
·
0 comments
No Branch/Tag Specified
master
rybrande/masterToSrc
pakrym/no-console-fb
release/2.2
pakrym/remove-obsole-api-usage
maestro/release/2.2
maestro/master
release/2.1
release/2.0
rybrande/MergeRelease21IntoDev
rel/2.0.0-extensions
angular-animations-example
fix-angular-material-publishing
rel/2.0.0-templates
httpwithstatetransfer-example
rel/2.0.0-preview2-templates
aspnet-webpack-react-2.x
angular4-prerender-data-example
version-1.x
angular2-lazy-loading-example
581-isomorphic-react-cookies-example
example-using-typescript-paths-for-494
v1.0.x
angular2-materialize-example
redux-typed-1-x
primeng-example
font-awesome-example
karma-testing-example
2.2.0
2.2.0-preview3
2.2.0-preview2
2.2.0-preview1
2.1.1
2.1.0
2.0.4
2.1.0-rc1-final
2.1.0-preview2-final
2.0.3
2.1.0-preview1-final
2.0.2
2.0.1
rel/2.0.0
rel/2.0.0-preview2
Labels
Clear labels
2 - Working
2 - Working
3 - Done
3 - Done
3 - Done
3 - Done
3 - Done
3 - Done
3 - Done
angular
angular
angular
angular
angular
bug
bug
bug
bug
bug
bug
bug
bug
bug
core
core
core
core
core
core
core
duplicate
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
external
external
P1
P1
P1
P1
P1
P1
P2
P2
P2
P2
P2
P2
P2
P2
P2
PRI: 1 - Required
react
react
task
task
up-for-grabs
up-for-grabs
up-for-grabs
waiting
waiting
waiting
waiting
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
fergalmoran
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github/JavaScriptServices#11
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @KraigWalker on 10/18/2018
While the issue in #1760 can mostly be addressed by changing the package install scripts in the .csproj to use yarn instead of npm to install packages, SpaService will still use npm as the package manager of choice when executing
npmScripts(i.estart)While cross-play between yarn and npm has got a lot more stable, mixing use of npm and yarn can still lead to undesired side-effects and problems. Some users may also want to use Yarn specific features, not available in npm.
Yarn shares the same
run-scriptscli api as npm thanks to its' shorter "run" alias, so all that's left to do is to specify that the user wants to useyarnto perform the command instead ofnpm.This PR introduces an optional
PackageManagerNameOption toSPABuilderwhich allows the user to define the name of the package manager executable they wish to use at runtime.This doesn't change the requirement that the executable be available in the system's PATH as is the case with npm, but if gives the user the flexibility to define which package manager they wish to use. In combination with editing the package install commands created in the spa-templates, users can now yarn, or another alternative package manager to npm.
In the absense of a specific option, the spaBuilder will continue to default to
npmA future improvement may be to also allow the user to define their own "run-scripts-alias" part, in the possible event a new killer javascript package manager comes along that has a different label for the
run-scriptbehaviour (e.g "r")