import {TargetsFileRules} from 'projext/src/services/targets/targetsFileRules/targetsFileRules.js'TargetsFileRules
This service is intended as a helper for plugins or build engines that need to find targets files by creating a set of "rules" for the basic type of files projext manages: JS, SCSS, CSS, fonts, images and favicons.
Constructor Summary
| Public Constructor | ||
| public |
constructor(events: Events, pathUtils: PathUtils, targets: Targets) |
|
Member Summary
| Public Members | ||
| public |
A local reference for the |
|
| public |
A local reference for the |
|
| public |
A local reference for the |
|
Method Summary
| Public Methods | ||
| public |
getRulesForTarget(target: string | Target): TargetFilesRules Get a set of file rules for an specific target. |
|
Public Constructors
public constructor(events: Events, pathUtils: PathUtils, targets: Targets) source
Params:
| Name | Type | Attribute | Description |
| events | Events | To send to TargetFileRule and to inform when rules are created. |
|
| pathUtils | PathUtils | To build the path to the configuration directory, in order to add it on the JS rule. |
|
| targets | Targets | To get a target information when a set of rules is generated. |
Public Members
Public Methods
public getRulesForTarget(target: string | Target): TargetFilesRules source
Get a set of file rules for an specific target.
