Updated CompilerInterface.php
This commit is contained in:
parent
778a4fa2e6
commit
5016b42759
1 changed files with 19 additions and 2 deletions
|
@ -2,9 +2,26 @@
|
|||
|
||||
namespace ncc\Interfaces;
|
||||
|
||||
use ncc\Abstracts\Options\BuildConfigurationValues;
|
||||
|
||||
interface CompilerInterface
|
||||
{
|
||||
public function prepare(array $options, string $src);
|
||||
/**
|
||||
* Prepares the package for the build process, this method is called before build()
|
||||
*
|
||||
* @param array $options Options to pass on to the compiler
|
||||
* @param string $path The path that the project file is located in (project.json)
|
||||
* @param string $build_configuration The build configuration to use to build the project
|
||||
* @return void
|
||||
*/
|
||||
public function prepare(array $options, string $path, string $build_configuration=BuildConfigurationValues::DefaultConfiguration): void;
|
||||
|
||||
public function build(array $options, string $src);
|
||||
/**
|
||||
* Builds the package, returns the output path of the build
|
||||
*
|
||||
* @param array $options Options to pass on to the compiler
|
||||
* @param string $path The path that the project file is located in (project.json)
|
||||
* @return string Returns the output path of the build
|
||||
*/
|
||||
public function build(array $options, string $path): string;
|
||||
}
|
Loading…
Add table
Reference in a new issue