Update output code format.
This commit is contained in:
@@ -63,7 +63,7 @@ class Component_Builder {
|
||||
$this->project_path = $args['projectPath'];
|
||||
$this->component_name = $args['blockName'];
|
||||
|
||||
$this->dist_path = __DIR__ . '/' . $this->module_path . '../../' . $this->project_path . '/exports' . '/' . $args['platform'];
|
||||
$this->dist_path = __DIR__ . '/' . $this->module_path . '/../../' . $this->project_path . '/exports' . '/' . $args['platform'];
|
||||
$this->register_default_handlebar_helpers();
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ class Component_Builder {
|
||||
$this->buildTemplatePhpFile( $root_path );
|
||||
}
|
||||
|
||||
private function buildTemplatePhpFile( $root_path, $platform = 'wordpress' ): void {
|
||||
private function buildTemplatePhpFile( $root_path ): void {
|
||||
$file_name = $this->get_handlebars_template( "$root_path/src/$this->component_name.template.hbs" );
|
||||
|
||||
$output_folder = $this->dist_path . '/templates';
|
||||
|
||||
Reference in New Issue
Block a user