diff --git a/bricks/mirai_widget/README.md b/bricks/mirai_parser/README.md similarity index 100% rename from bricks/mirai_widget/README.md rename to bricks/mirai_parser/README.md diff --git a/bricks/mirai_widget/__brick__/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}/mirai_{{#snakeCase}}{{name}}{{/snakeCase}}_parser.dart b/bricks/mirai_parser/__brick__/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}/mirai_{{#snakeCase}}{{name}}{{/snakeCase}}_parser.dart similarity index 91% rename from bricks/mirai_widget/__brick__/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}/mirai_{{#snakeCase}}{{name}}{{/snakeCase}}_parser.dart rename to bricks/mirai_parser/__brick__/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}/mirai_{{#snakeCase}}{{name}}{{/snakeCase}}_parser.dart index b21086bf..2aaa6cb8 100644 --- a/bricks/mirai_widget/__brick__/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}/mirai_{{#snakeCase}}{{name}}{{/snakeCase}}_parser.dart +++ b/bricks/mirai_parser/__brick__/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}/mirai_{{#snakeCase}}{{name}}{{/snakeCase}}_parser.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:mirai/src/widgets/framework.dart'; +import 'package:mirai/mirai.dart'; class Mirai{{#pascalCase}}{{name}}{{/pascalCase}}Parser extends MiraiParser { @override diff --git a/bricks/mirai_widget/__brick__/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}.dart b/bricks/mirai_parser/__brick__/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}.dart similarity index 100% rename from bricks/mirai_widget/__brick__/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}.dart rename to bricks/mirai_parser/__brick__/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}.dart diff --git a/bricks/mirai_parser/brick.yaml b/bricks/mirai_parser/brick.yaml new file mode 100644 index 00000000..27b42fe3 --- /dev/null +++ b/bricks/mirai_parser/brick.yaml @@ -0,0 +1,19 @@ +name: mirai_parser +description: A new Mirai Parser + +# The following defines the version and build number for your brick. +# A version number is three numbers separated by dots, like 1.2.34 +# followed by an optional build number (separated by a +). +version: 0.1.0+1 + +# The following defines the environment for the current brick. +# It includes the version of mason that the brick requires. +environment: + mason: ">=0.1.0-dev.40 <0.1.0" + +vars: + name: + type: string + description: Mirai Parser name + default: Dash + prompt: What is the Mirai Parser name? diff --git a/bricks/mirai_widget/brick.yaml b/bricks/mirai_widget/brick.yaml deleted file mode 100644 index 06b93e70..00000000 --- a/bricks/mirai_widget/brick.yaml +++ /dev/null @@ -1,28 +0,0 @@ -name: mirai_widget -description: A new Mirai widget - -# The following defines the version and build number for your brick. -# A version number is three numbers separated by dots, like 1.2.34 -# followed by an optional build number (separated by a +). -version: 0.1.0+1 - -# The following defines the environment for the current brick. -# It includes the version of mason that the brick requires. -environment: - mason: ">=0.1.0-dev.40 <0.1.0" - -# Variables specify dynamic values that your brick depends on. -# Zero or more variables can be specified for a given brick. -# Each variable has: -# * a type (string, number, boolean, enum, or array) -# * an optional short description -# * an optional default value -# * an optional list of default values (array only) -# * an optional prompt phrase used when asking for the variable -# * a list of values (enums only) -vars: - name: - type: string - description: Widget name - default: Dash - prompt: What is the widget name? diff --git a/mason.yaml b/mason.yaml new file mode 100644 index 00000000..d32e9b06 --- /dev/null +++ b/mason.yaml @@ -0,0 +1,3 @@ +bricks: + mirai_parser: + path: bricks/mirai_parser \ No newline at end of file