Home Manual Reference Source Test
import InitTask from 'atscm/src/init/InitTask.js'
public class | source

InitTask

The action run when running "atscm init".

Test:

Static Method Summary

Static Public Methods
public static

Returns the globs of the processed files for the given config lanugage.

public static

async run(options: Object): Promise<{install: string[]}, Error>

Runs the task with the given options.

Static Public Methods

public static filesToHandle(langId: string): string[] source

Returns the globs of the processed files for the given config lanugage.

Params:

NameTypeAttributeDescription
langId string

The configuration language used.

Return:

string[]

Globs of the files to handle.

Test:

public static async run(options: Object): Promise<{install: string[]}, Error> source

Runs the task with the given options.

Params:

NameTypeAttributeDescription
options Object

The options to use.

Return:

Promise<{install: string[]}, Error>

Resolved with information on further actions to run or rejected if the task failed.

Test: