Home Manual Reference Source
public class | source

ProjectConfiguration

Extends:

ConfigurationFile → ProjectConfiguration

Here's the configuration with all the 'magic defaults' the app uses. This service generates the project configuration with all settings and features projext uses. This configuration is ALWAYS overwritten and extended in order to define the targets.

Constructor Summary

Public Constructor
public

constructor(pathUtils: PathUtils, plugins: Plugins, targetsFinder: find)

Member Summary

Public Members
public

A local reference for the plugins service.

public

A local reference for the targetsFinder service.

Method Summary

Public Methods
public

Create the project configuration with all its 'smart defaults'.

Inherited Summary

From class ConfigurationFile
public

Whether the configuration should be created every time getConfig gets called or not.

public

A list of paths that can overwrite the configuration.

public

A parent configuration to extend.

public

A local reference for the pathUtils service.

public abstract

This method will be called the first time getConfig gets called (or every time, depending on the value of the asFactory property) and it should return the configuration contents.

public

This is the public method all other services uses to obtain the configuration.

Public Constructors

public constructor(pathUtils: PathUtils, plugins: Plugins, targetsFinder: find) source

Class constructor.

Override:

ConfigurationFile#constructor

Params:

NameTypeAttributeDescription
pathUtils PathUtils

Because ConfigurationFile needs it in order to build the overwrite path.

plugins Plugins

To get the list of loaded plugins and decide the default build engine.

targetsFinder find

If the configuration is not overwritten, the service will use this to look for existing targets based on the files andor folders on the source directory.

Public Members

public plugins: Plugins source

A local reference for the plugins service.

public targetsFinder: find source

A local reference for the targetsFinder service.

Public Methods

public createConfig(): ProjectConfigurationSettings source

Create the project configuration with all its 'smart defaults'.

Override:

ConfigurationFile#createConfig