Class ProjectNpmPackageAdder
Inheritance
object
ProjectNpmPackageAdder
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.Cli.Core.dll
Syntax
public class ProjectNpmPackageAdder : ITransientDependency
Constructors
ProjectNpmPackageAdder(CliHttpClientFactory, IJsonSerializer, SourceCodeDownloadService, AngularSourceCodeAdder, IRemoteServiceExceptionHandler, IInstallLibsService, ICmdHelper)
Declaration
public ProjectNpmPackageAdder(CliHttpClientFactory cliHttpClientFactory, IJsonSerializer jsonSerializer, SourceCodeDownloadService sourceCodeDownloadService, AngularSourceCodeAdder angularSourceCodeAdder, IRemoteServiceExceptionHandler remoteServiceExceptionHandler, IInstallLibsService installLibsService, ICmdHelper cmdHelper)
Parameters
Properties
AngularSourceCodeAdder
Declaration
public AngularSourceCodeAdder AngularSourceCodeAdder { get; }
Property Value
CmdHelper
Declaration
public ICmdHelper CmdHelper { get; }
Property Value
InstallLibsService
Declaration
public IInstallLibsService InstallLibsService { get; }
Property Value
JsonSerializer
Declaration
public IJsonSerializer JsonSerializer { get; }
Property Value
Logger
Declaration
public ILogger<ProjectNpmPackageAdder> Logger { get; set; }
Property Value
RemoteServiceExceptionHandler
Declaration
public IRemoteServiceExceptionHandler RemoteServiceExceptionHandler { get; }
Property Value
SourceCodeDownloadService
Declaration
public SourceCodeDownloadService SourceCodeDownloadService { get; }
Property Value
Methods
AddAngularPackageAsync(string, string, string, bool)
Declaration
public Task AddAngularPackageAsync(string directory, string npmPackageName, string version = null, bool withSourceCode = false)
Parameters
| Type |
Name |
Description |
| string |
directory |
|
| string |
npmPackageName |
|
| string |
version |
|
| bool |
withSourceCode |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
AddAngularPackageAsync(string, NpmPackageInfo, string, bool)
Declaration
public Task AddAngularPackageAsync(string directory, NpmPackageInfo npmPackage, string version = null, bool withSourceCode = false)
Parameters
| Type |
Name |
Description |
| string |
directory |
|
| NpmPackageInfo |
npmPackage |
|
| string |
version |
|
| bool |
withSourceCode |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
AddMvcPackageAsync(string, NpmPackageInfo, string, bool)
Declaration
public Task AddMvcPackageAsync(string directory, NpmPackageInfo npmPackage, string version = null, bool skipInstallingLibs = false)
Parameters
| Type |
Name |
Description |
| string |
directory |
|
| NpmPackageInfo |
npmPackage |
|
| string |
version |
|
| bool |
skipInstallingLibs |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
DownloadAngularSourceCode(string, NpmPackageInfo, string)
Declaration
protected virtual Task DownloadAngularSourceCode(string angularDirectory, NpmPackageInfo package, string version = null)
Parameters
| Type |
Name |
Description |
| string |
angularDirectory |
|
| NpmPackageInfo |
package |
|
| string |
version |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Implements
Extension Methods