import {RollupPluginSettingsConfiguration} from 'projext-plugin-rollup/src/services/configurations/pluginsConfiguration.js'
RollupPluginSettingsConfiguration
Extends:
This service creates a configuration with all the settings for the plugins this build engine uses.
Constructor Summary
Public Constructor | ||
public |
constructor(appLogger: Logger, babelConfiguration: BabelConfiguration, babelHelper: BabelHelper, events: Events, packageInfo: Object, pathUtils: PathUtils, rollupPluginInfo: Object, targetsHTML: TargetsHTML) |
Member Summary
Public Members | ||
public |
A local reference for the |
|
public |
A local reference for the |
|
public |
babelHelper: BabelHelper A local reference for the |
|
public |
A local reference for the |
|
public |
The project |
|
public |
A local reference for the plugin information. |
|
public |
A local reference for the |
Method Summary
Public Methods | ||
public |
createConfig(params: RollupConfigurationParams, stats: Function): Object Creates the plugins settings for the required target. |
Inherited Summary
From class ConfigurationFile | ||
public |
Whether the configuration should be created every time |
|
public |
A list of paths that can overwrite the configuration. |
|
public |
A parent configuration to extend. |
|
public |
A local reference for the |
|
public abstract |
This method will be called the first time |
|
public |
This is the public method all other services uses to obtain the configuration. |
Public Constructors
public constructor(appLogger: Logger, babelConfiguration: BabelConfiguration, babelHelper: BabelHelper, events: Events, packageInfo: Object, pathUtils: PathUtils, rollupPluginInfo: Object, targetsHTML: TargetsHTML) source
Class constructor.
Override:
ConfigurationFile#constructorParams:
Name | Type | Attribute | Description |
appLogger | Logger | To send to the plugins that support a logger. |
|
babelConfiguration | BabelConfiguration | To get the target Babel configuration. |
|
babelHelper | BabelHelper | To disable the |
|
events | Events | To reduce the settings. |
|
packageInfo | Object | To get the dependencies and define them as externals for Node targets. |
|
pathUtils | PathUtils | Require by |
|
rollupPluginInfo | Object | To get the name of the "sub packages" the plugin provides and that should be marked as external. |
|
targetsHTML | TargetsHTML | To get the path to a target HTML template file. |
Public Members
public babelConfiguration: BabelConfiguration source
A local reference for the babelConfiguration
service.
Public Methods
public createConfig(params: RollupConfigurationParams, stats: Function): Object source
Creates the plugins settings for the required target.
This method uses the reducer events rollup-plugin-settings-configuration-for-node
or
rollup-plugin-settings-configuration-for-browser
, depending on the target type, and then
rollup-plugin-settings-configuration
. The event receives the configuration object, the
params
and it expects an updated configuration object on return.
Override:
ConfigurationFile#createConfigParams:
Name | Type | Attribute | Description |
params | RollupConfigurationParams | A dictionary generated by the top service building the configuration and that includes things like the target information, its entry settings, output paths, etc. |
|
stats | Function | A function to send to the plugins that support logging stats entries. |