@acoustic-content-sdk/tooling-pkg-mgr 中文文档教程

发布于 4年前 浏览 16 更新于 3年前

npm

实现对功能模块支持的工具功能。

API Documentation

Home > @acoustic-content-sdk/tooling-pkg-mgr

tooling-pkg-mgr package

实现对功能模块的支持的工具函数。

Enumerations

EnumerationDescription
PackageManagerEnumeration of the supported package managers

Functions

FunctionDescription
getPackageManager(aRoot)Decodes the supported workspace from the host
rxSupportsNpm()Tests if we have an npm installation
rxSupportsYarn()Tests if we have a yarn installation
rxYarnHasPackage(aName, aRange)Tests if we have a matching package installation

Variables

VariableDescription
VERSIONVersion and build number of the package

Home > @acoustic-content-sdk/tooling-pkg-mgr > PackageManager

PackageManager enum

Enumeration of the supported package managers

Signature:

export declare enum PackageManager 

Enumeration Members

MemberValueDescription
NPM"npm"
YARN"yarn"

首页 > @acoustic-content-sdk/tooling-pkg-mgr > getPackageManager

getPackageManager() function

从主机解码支持的工作区

签名:

export declare function getPackageManager(aRoot: string): Observable<PackageManager>;

Parameters

ParameterTypeDescription
aRootstringthe root dir to test

返回:

Observable

the supported package manager

Home > @acoustic-content-sdk/tooling-pkg-mgr > rxSupportsNpm

rxSupportsNpm() function

测试我们是否有 npm 安装

签名:

export declare function rxSupportsNpm(): Observable<boolean>;

返回:

Observable< ;boolean>

true if we have an installation, else false

Home > @acoustic-content-sdk/tooling-pkg-mgr > rxSupportsYarn

rxSupportsYarn() function

测试我们是否安装了 yarn

签名:

export declare function rxSupportsYarn(): Observable<boolean>;

返回:

Observable< ;boolean>

true if we have an installation, else false

Home > @acoustic-content-sdk/tooling-pkg-mgr > rxYarnHasPackage

rxYarnHasPackage() function

测试我们是否有匹配的包安装

签名:

export declare function rxYarnHasPackage(aName: string, aRange: string): Observable<boolean>;

Parameters

ParameterTypeDescription
aNamestringpackage name
aRangestring

返回:

Observable< codeboolean> >

true if we have such a package

Home > @acoustic-content-sdk/tooling-pkg-mgr > VERSION

VERSION variable

软件包的版本和构建号

签名

VERSION: {
    version: {
        major: string;
        minor: string;
        patch: string;
        branch: string;
    };
    build: Date;
}

npm

Tooling functions to implement support for feature modules.

API Documentation

Home > @acoustic-content-sdk/tooling-pkg-mgr

tooling-pkg-mgr package

Tooling functions to implement support for feature modules.

Enumerations

EnumerationDescription
PackageManagerEnumeration of the supported package managers

Functions

FunctionDescription
getPackageManager(aRoot)Decodes the supported workspace from the host
rxSupportsNpm()Tests if we have an npm installation
rxSupportsYarn()Tests if we have a yarn installation
rxYarnHasPackage(aName, aRange)Tests if we have a matching package installation

Variables

VariableDescription
VERSIONVersion and build number of the package

Home > @acoustic-content-sdk/tooling-pkg-mgr > PackageManager

PackageManager enum

Enumeration of the supported package managers

Signature:

export declare enum PackageManager 

Enumeration Members

MemberValueDescription
NPM&quot;npm&quot;
YARN&quot;yarn&quot;

Home > @acoustic-content-sdk/tooling-pkg-mgr > getPackageManager

getPackageManager() function

Decodes the supported workspace from the host

Signature:

export declare function getPackageManager(aRoot: string): Observable<PackageManager>;

Parameters

ParameterTypeDescription
aRootstringthe root dir to test

Returns:

Observable<PackageManager>

the supported package manager

Home > @acoustic-content-sdk/tooling-pkg-mgr > rxSupportsNpm

rxSupportsNpm() function

Tests if we have an npm installation

Signature:

export declare function rxSupportsNpm(): Observable<boolean>;

Returns:

Observable<boolean>

true if we have an installation, else false

Home > @acoustic-content-sdk/tooling-pkg-mgr > rxSupportsYarn

rxSupportsYarn() function

Tests if we have a yarn installation

Signature:

export declare function rxSupportsYarn(): Observable<boolean>;

Returns:

Observable<boolean>

true if we have an installation, else false

Home > @acoustic-content-sdk/tooling-pkg-mgr > rxYarnHasPackage

rxYarnHasPackage() function

Tests if we have a matching package installation

Signature:

export declare function rxYarnHasPackage(aName: string, aRange: string): Observable<boolean>;

Parameters

ParameterTypeDescription
aNamestringpackage name
aRangestring

Returns:

Observable<boolean>

true if we have such a package

Home > @acoustic-content-sdk/tooling-pkg-mgr > VERSION

VERSION variable

Version and build number of the package

Signature:

VERSION: {
    version: {
        major: string;
        minor: string;
        patch: string;
        branch: string;
    };
    build: Date;
}
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文