import {RollupBuildEngine} from 'projext-plugin-rollup/src/services/building/engine.js'RollupBuildEngine
This build engine is in charge of generating the CLI commands and the configuration to bundle a target using Rollup.
Constructor Summary
| Public Constructor | ||
| public |
constructor(environmentUtils: EnvironmentUtils, targets: Targets, rollupConfiguration: RollupConfiguration, rollupPluginInfo: RollupPluginInfo) |
|
Member Summary
| Public Members | ||
| public |
A local reference for the |
|
| public |
A local reference for the |
|
| public |
A local reference for the plugin information. |
|
| public |
A local reference for the |
|
Method Summary
| Public Methods | ||
| public |
getBuildCommand(target: Target, buildType: string, forceRun: boolean, forceWatch: boolean, forceInspect: boolean, forceAnalyze: boolean): string Get the CLI build command to bundle a target. |
|
| public |
getConfiguration(target: Target, buildType: string): object Get a Rollup configuration for a target. |
|
| public |
Get a Rollup configuration by reading the environment variables sent by the CLI command
|
|
Public Constructors
public constructor(environmentUtils: EnvironmentUtils, targets: Targets, rollupConfiguration: RollupConfiguration, rollupPluginInfo: RollupPluginInfo) source
Params:
| Name | Type | Attribute | Description |
| environmentUtils | EnvironmentUtils | To load environment variables sent by the CLI command to the configuration builder method. |
|
| targets | Targets | To get a target information. |
|
| rollupConfiguration | RollupConfiguration | To generate a configuration for a target. |
|
| rollupPluginInfo | RollupPluginInfo | To get the path to the configuration file. |
Public Members
public environmentUtils: EnvironmentUtils source
A local reference for the environmentUtils service.
public rollupConfiguration: RollupConfiguration source
A local reference for the rollupConfiguration service.
Public Methods
public getBuildCommand(target: Target, buildType: string, forceRun: boolean, forceWatch: boolean, forceInspect: boolean, forceAnalyze: boolean): string source
Get the CLI build command to bundle a target.
Params:
| Name | Type | Attribute | Description |
| target | Target | The target information. |
|
| buildType | string | The intended build type: |
|
| forceRun | boolean |
|
Force the target to run even if the |
| forceWatch | boolean |
|
Force Rollup to use the watch mode even if the |
| forceInspect | boolean |
|
Enables the Node inspector even if the target setting
is set to |
| forceAnalyze | boolean |
|
Enables the bundle analyzer. |
