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

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

npm

工具函数来实现对特性模块的支持。

API Documentation

Home > @acoustic-content-sdk/tooling-contributions

tooling-contributions package

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

Enumerations

EnumerationDescription
ArtifactModeArtifact modes, the values need to match the option selections for the Page Contribution type 354743b2-f89a-482b-b447-2b5a2367c8bd

Functions

FunctionDescription
createNgDriverArtifacts(aHost, aReadDir, aSchema)Generates the content items that describe a driver based on an Angular build output
createPackageArtifacts(aHost, aSchema, aLogSvc)Generates the content items that describe a driver based on an Angular build output

Interfaces

InterfaceDescription
CreateNgDriverArtifactsSchema
CreatePackageFromArtifactsSchema

Variables

VariableDescription
VERSIONVersion and build number of the package

Home > @acoustic-content-sdk/tooling-contributions > ArtifactMode

ArtifactMode enum

Artifact 模式,值需要与Page Contribution 类型的选项选择相匹配 354743b2-f89a-4822b4762b437b4b5 /code>

Signature:

export declare enum ArtifactMode 

Enumeration Members

MemberValueDescription
ALWAYS"always"
LIVE"live"
PREVIEW"preview"

Home > @acoustic-content-sdk/tooling-contributions > createNgDriverArtifacts

createNgDriverArtifacts() function

根据 Angular 构建输出生成描述驱动程序的内容项

签名:

export declare function createNgDriverArtifacts(aHost: ReadTextFile, aReadDir: ReadDirectory, aSchema?: CreateNgDriverArtifactsSchema): Observable<FileDescriptor<Artifact | Buffer>>;

Parameters

ParameterTypeDescription
aHostReadTextFilecallback to read a text file
aReadDirReadDirectory
aSchemaCreateNgDriverArtifactsSchemaconfiguration

返回:

Observable< ;文件描述符<神器| Buffer>>

the sequence of artifacts

Home > @acoustic-content-sdk/tooling-contributions > createPackageArtifacts

createPackageArtifacts() function

根据 Angular 构建输出生成描述驱动程序的内容项

签名:

export declare function createPackageArtifacts(aHost: ReadTextFile, aSchema?: CreatePackageFromArtifactsSchema, aLogSvc?: LoggerService): Observable<FileDescriptor<any>>;

Parameters

ParameterTypeDescription
aHostReadTextFilecallback to read a text file
aSchemaCreatePackageFromArtifactsSchemaconfiguration
aLogSvcLoggerService

返回:

Observable< ;FileDescriptor>

the sequence of artifacts

Home > @acoustic-content-sdk/tooling-contributions > CreateNgDriverArtifactsSchema

CreateNgDriverArtifactsSchema interface

Signature:

export interface CreateNgDriverArtifactsSchema 

Properties

PropertyTypeDescription
configurationstringThe name of the configuration to use
modestringmode
projectstringThe name of the project.
tagstringa comma separated list of tags

Home > ; @acoustic-content-sdk/tooling-contributions > CreatePackageFromArtifactsSchema

CreatePackageFromArtifactsSchema interface

Signature:

export interface CreatePackageFromArtifactsSchema 

Properties

PropertyTypeDescription
datastringLocation of the data directory, defaults to 'data'. The package artifacts will be created in the parent folder of the data folder
files$Observable&lt;FileDescriptor&lt;any&gt;&gt;optionally the explicit list of files to include
licensestringoptinally the license, defaults to MIT
tagstringa comma separated list of tags

Home > ; @acoustic-content-sdk/tooling-contributions > VERSION

VERSION variable

Version and build number of the package

Signature:

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

首页 > @acoustic-content-sdk/tooling-contributions > 创建NgDriverArtifactsSchema > configuration

CreateNgDriverArtifactsSchema.configuration property

The name of the configuration to use

Signature:

configuration?: string;

首页 > @acoustic-content-sdk/tooling-contributions > 创建NgDriverArtifactsSchema > mode

CreateNgDriverArtifactsSchema.mode property

mode

Signature:

mode?: string;

Home > @acoustic-content-sdk/tooling-contributions > 创建NgDriverArtifactsSchema > 项目 项目

CreateNgDriverArtifactsSchema.project property

的名称。

Signature:

project?: string;

Home > @acoustic-content-sdk/tooling-contributions > 创建NgDriverArtifactsSchema > tag

CreateNgDriverArtifactsSchema.tag property

a comma separated list of tags

Signature:

tag?: string;

首页 > @acoustic-content-sdk/tooling-contributions > CreatePackageFromArtifactsSchema > data

CreatePackageFromArtifactsSchema.data property

数据目录的位置,默认为“数据”。 The package artifacts will be created in the parent folder of the data folder

Signature:

data?: string;

Home > ; @acoustic-content-sdk/tooling-contributions > CreatePackageFromArtifactsSchema > files$

CreatePackageFromArtifactsSchema.files$ property

optionally the explicit list of files to include

Signature:

files$?: Observable<FileDescriptor<any>>;

主页 > @acoustic-content-sdk/tooling-contributions > CreatePackageFromArtifactsSchema > license

CreatePackageFromArtifactsSchema.license property

optinally the license, defaults to MIT

Signature:

license?: string;

首页 > @acoustic-content-sdk/tooling-contributions > CreatePackageFromArtifactsSchema > 标签

CreatePackageFromArtifactsSchema.tag property

逗号分隔的标签列表

签名:

tag?: string;

npm

Tooling functions to implement support for feature modules.

API Documentation

Home > @acoustic-content-sdk/tooling-contributions

tooling-contributions package

Tooling functions to implement support for feature modules.

Enumerations

EnumerationDescription
ArtifactModeArtifact modes, the values need to match the option selections for the Page Contribution type 354743b2-f89a-482b-b447-2b5a2367c8bd

Functions

FunctionDescription
createNgDriverArtifacts(aHost, aReadDir, aSchema)Generates the content items that describe a driver based on an Angular build output
createPackageArtifacts(aHost, aSchema, aLogSvc)Generates the content items that describe a driver based on an Angular build output

Interfaces

InterfaceDescription
CreateNgDriverArtifactsSchema
CreatePackageFromArtifactsSchema

Variables

VariableDescription
VERSIONVersion and build number of the package

Home > @acoustic-content-sdk/tooling-contributions > ArtifactMode

ArtifactMode enum

Artifact modes, the values need to match the option selections for the Page Contribution type 354743b2-f89a-482b-b447-2b5a2367c8bd

Signature:

export declare enum ArtifactMode 

Enumeration Members

MemberValueDescription
ALWAYS&quot;always&quot;
LIVE&quot;live&quot;
PREVIEW&quot;preview&quot;

Home > @acoustic-content-sdk/tooling-contributions > createNgDriverArtifacts

createNgDriverArtifacts() function

Generates the content items that describe a driver based on an Angular build output

Signature:

export declare function createNgDriverArtifacts(aHost: ReadTextFile, aReadDir: ReadDirectory, aSchema?: CreateNgDriverArtifactsSchema): Observable<FileDescriptor<Artifact | Buffer>>;

Parameters

ParameterTypeDescription
aHostReadTextFilecallback to read a text file
aReadDirReadDirectory
aSchemaCreateNgDriverArtifactsSchemaconfiguration

Returns:

Observable<FileDescriptor<Artifact | Buffer>>

the sequence of artifacts

Home > @acoustic-content-sdk/tooling-contributions > createPackageArtifacts

createPackageArtifacts() function

Generates the content items that describe a driver based on an Angular build output

Signature:

export declare function createPackageArtifacts(aHost: ReadTextFile, aSchema?: CreatePackageFromArtifactsSchema, aLogSvc?: LoggerService): Observable<FileDescriptor<any>>;

Parameters

ParameterTypeDescription
aHostReadTextFilecallback to read a text file
aSchemaCreatePackageFromArtifactsSchemaconfiguration
aLogSvcLoggerService

Returns:

Observable<FileDescriptor<any>>

the sequence of artifacts

Home > @acoustic-content-sdk/tooling-contributions > CreateNgDriverArtifactsSchema

CreateNgDriverArtifactsSchema interface

Signature:

export interface CreateNgDriverArtifactsSchema 

Properties

PropertyTypeDescription
configurationstringThe name of the configuration to use
modestringmode
projectstringThe name of the project.
tagstringa comma separated list of tags

Home > @acoustic-content-sdk/tooling-contributions > CreatePackageFromArtifactsSchema

CreatePackageFromArtifactsSchema interface

Signature:

export interface CreatePackageFromArtifactsSchema 

Properties

PropertyTypeDescription
datastringLocation of the data directory, defaults to 'data'. The package artifacts will be created in the parent folder of the data folder
files$Observable&lt;FileDescriptor&lt;any&gt;&gt;optionally the explicit list of files to include
licensestringoptinally the license, defaults to MIT
tagstringa comma separated list of tags

Home > @acoustic-content-sdk/tooling-contributions > VERSION

VERSION variable

Version and build number of the package

Signature:

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

Home > @acoustic-content-sdk/tooling-contributions > CreateNgDriverArtifactsSchema > configuration

CreateNgDriverArtifactsSchema.configuration property

The name of the configuration to use

Signature:

configuration?: string;

Home > @acoustic-content-sdk/tooling-contributions > CreateNgDriverArtifactsSchema > mode

CreateNgDriverArtifactsSchema.mode property

mode

Signature:

mode?: string;

Home > @acoustic-content-sdk/tooling-contributions > CreateNgDriverArtifactsSchema > project

CreateNgDriverArtifactsSchema.project property

The name of the project.

Signature:

project?: string;

Home > @acoustic-content-sdk/tooling-contributions > CreateNgDriverArtifactsSchema > tag

CreateNgDriverArtifactsSchema.tag property

a comma separated list of tags

Signature:

tag?: string;

Home > @acoustic-content-sdk/tooling-contributions > CreatePackageFromArtifactsSchema > data

CreatePackageFromArtifactsSchema.data property

Location of the data directory, defaults to 'data'. The package artifacts will be created in the parent folder of the data folder

Signature:

data?: string;

Home > @acoustic-content-sdk/tooling-contributions > CreatePackageFromArtifactsSchema > files$

CreatePackageFromArtifactsSchema.files$ property

optionally the explicit list of files to include

Signature:

files$?: Observable<FileDescriptor<any>>;

Home > @acoustic-content-sdk/tooling-contributions > CreatePackageFromArtifactsSchema > license

CreatePackageFromArtifactsSchema.license property

optinally the license, defaults to MIT

Signature:

license?: string;

Home > @acoustic-content-sdk/tooling-contributions > CreatePackageFromArtifactsSchema > tag

CreatePackageFromArtifactsSchema.tag property

a comma separated list of tags

Signature:

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