|
|
|
@ -59,6 +59,10 @@ class Component_Builder { |
|
|
|
private string $dist_path = ''; |
|
|
|
|
|
|
|
function __construct( $args = [] ) { |
|
|
|
if ( empty( $args['backPath'] ) || empty( $args['projectPath'] ) || empty( $args['blockName'] ) || empty( $args['platform'] ) ) { |
|
|
|
die( 'Error: Missing arguments. Make sure all parameter passed.' ); |
|
|
|
} |
|
|
|
|
|
|
|
$this->module_path = $args['backPath']; |
|
|
|
$this->project_path = $args['projectPath']; |
|
|
|
$this->component_name = $args['blockName']; |
|
|
|
|