Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(mason): v0.1.0 #1471

Merged
merged 3 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bricks/favorite_color/brick.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A new brick created with the Mason CLI.
version: 0.1.0+1

environment:
mason: ">=0.1.0-dev <0.1.0"
mason: ^0.1.0

vars:
color:
Expand Down
2 changes: 1 addition & 1 deletion bricks/favorite_languages/brick.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A new brick created with the Mason CLI.
version: 0.1.0+1

environment:
mason: ">=0.1.0-dev <0.1.0"
mason: ^0.1.0

vars:
languages:
Expand Down
2 changes: 1 addition & 1 deletion bricks/flavors/brick.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A new brick created with the Mason CLI.
version: 0.1.0+1

environment:
mason: ">=0.1.0-dev <0.1.0"
mason: ^0.1.0

vars:
flavors:
Expand Down
2 changes: 1 addition & 1 deletion bricks/hello/brick.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repository: https://github.com/felangel/mason/tree/master/bricks/hello
version: 0.1.0+1

environment:
mason: ">=0.1.0-dev <0.1.0"
mason: ^0.1.0

vars:
name:
Expand Down
2 changes: 1 addition & 1 deletion bricks/hooks/hooks/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: hooks_hooks

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ^3.5.4

dependencies:
mason:
Expand Down
2 changes: 1 addition & 1 deletion bricks/random_color/hooks/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: random_color_hooks

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ^3.5.4

dependencies:
mason:
Expand Down
4 changes: 4 additions & 0 deletions packages/mason/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.1.0

- chore: bump to stable v0.1.0 🎉

# 0.1.0-dev.60

- chore: add `platforms` to `pubspec.yaml` ([#1420](https://github.com/felangel/mason/issues/1420))
Expand Down
2 changes: 1 addition & 1 deletion packages/mason/lib/src/version.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/mason/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: mason
description: >
A Dart template generator which helps teams generate files quickly and consistently.
version: 0.1.0-dev.60
version: 0.1.0
homepage: https://github.com/felangel/mason
repository: https://github.com/felangel/mason
issue_tracker: https://github.com/felangel/mason/issues
Expand Down
2 changes: 1 addition & 1 deletion packages/mason/test/bricks/loop/brick.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A new brick created with the Mason CLI.
version: 0.1.0+1

environment:
mason: ">=0.1.0-dev <0.1.0"
mason: ^0.1.0

vars:
values:
Expand Down
2 changes: 1 addition & 1 deletion packages/mason/test/bricks/nested_conditional/brick.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A new brick created with the Mason CLI.
version: 0.1.0+1

environment:
mason: ">=0.1.0-dev <0.1.0"
mason: ^0.1.0

vars:
name:
Expand Down
2 changes: 1 addition & 1 deletion packages/mason/test/src/bundler_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ void main() {
'description: An example brick.\n'
'version: 0.1.0+1\n'
'environment:\n'
' mason: ">=0.1.0-dev <0.1.0"\n'
' mason: ^$packageVersion\n'
'repository: "https://github.com/felangel/mason/tree/master/bricks/hello"\n'
'vars:\n'
' name:\n'
Expand Down
2 changes: 1 addition & 1 deletion packages/mason_cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ 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 <0.1.0"
mason: ^0.1.0

# Variables specify dynamic values that your brick depends on.
# Zero or more variables can be specified for a given brick.
Expand Down
2 changes: 1 addition & 1 deletion packages/mason_cli/README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ version: 0.1.0+1
# 以下定义了当前 brick 的环境。
# 它包括 brick 所需的 mason 版本。
environment:
mason: ">=0.1.0-dev <0.1.0"
mason: ^0.1.0
# 变量指定了 Brick 依赖的动态值。
# 对于给定的 Brick,可以指定零个或多个变量。
Expand Down
6 changes: 3 additions & 3 deletions packages/mason_cli/lib/src/commands/new.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ 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: ">=$packageVersion <0.1.0"
mason: ^$packageVersion

# Variables specify dynamic values that your brick depends on.
# Zero or more variables can be specified for a given brick.
Expand Down Expand Up @@ -199,10 +199,10 @@ TODO: Add your license here.
name: ${name}_hooks

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ^3.5.4

dependencies:
mason: ">=$packageVersion <0.1.0"
mason: ^$packageVersion
''';

static const _hooksGitignoreContent = '''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A new brick created with the Mason CLI.
version: 0.1.0+1

environment:
mason: ">=0.1.0-dev <0.1.0"
mason: ^0.1.0

vars:
colors:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A new brick created with the Mason CLI.
version: 0.1.0+1

environment:
mason: ">=0.1.0-dev <0.1.0"
mason: ^0.1.0

vars:
color:
Expand Down
2 changes: 1 addition & 1 deletion packages/mason_cli/test/commands/get_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ bricks:
final brickYaml = File(path.join('example', 'brick.yaml'));
brickYaml.writeAsStringSync(
brickYaml.readAsStringSync().replaceFirst(
'mason: ">=${mason.packageVersion} <0.1.0"',
'mason: ^${mason.packageVersion}',
'mason: ">=99.99.99 <100.0.0"',
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ 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.60 <0.1.0"
mason: ^0.1.0

# Variables specify dynamic values that your brick depends on.
# Zero or more variables can be specified for a given brick.
Expand Down
2 changes: 1 addition & 1 deletion packages/mason_cli/test/fixtures/new/hooks/brick.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ 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.60 <0.1.0"
mason: ^0.1.0

# Variables specify dynamic values that your brick depends on.
# Zero or more variables can be specified for a given brick.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: hooks_hooks

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ^3.5.4

dependencies:
mason: ">=0.1.0-dev.60 <0.1.0"
mason: ^0.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ 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.60 <0.1.0"
mason: ^0.1.0

# Variables specify dynamic values that your brick depends on.
# Zero or more variables can be specified for a given brick.
Expand Down
Loading