Skip to content

Commit

Permalink
Use pub workspace for the dart-pad monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpryan committed Aug 13, 2024
1 parent f70ef45 commit 4ec2c5f
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ build/
.buildlog
.dart_tool/
.packages
pubspec.lock

# Or the files created by dart2js.
*.dart.js
Expand Down
7 changes: 3 additions & 4 deletions pkgs/dart_services/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: The backend service for DartPad.
publish_to: none

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
analysis_server_lib: ^0.2.5
Expand Down Expand Up @@ -36,6 +36,5 @@ dev_dependencies:
test: ^1.25.7
test_descriptor: ^2.0.1

dependency_overrides:
dartpad_shared:
path: ../dartpad_shared
# This package is managed as part of the dart-pad workspace.
resolution: workspace
5 changes: 4 additions & 1 deletion pkgs/dartpad_shared/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Shared code between the DartPad frontend and backend.
publish_to: none

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
http: ^1.2.1
Expand All @@ -14,3 +14,6 @@ dev_dependencies:
build_runner: ^2.4.11
dart_flutter_team_lints: ^3.1.0
json_serializable: ^6.8.0

# This package is managed as part of the dart-pad workspace.
resolution: workspace
7 changes: 3 additions & 4 deletions pkgs/dartpad_ui/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: The front-end UI of DartPad.
publish_to: none

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
collection: any
Expand Down Expand Up @@ -41,6 +41,5 @@ flutter:
- assets/RobotoMono-Bold.ttf
- assets/RobotoMono-Regular.ttf

dependency_overrides:
dartpad_shared:
path: ../dartpad_shared
# This package is managed as part of the dart-pad workspace.
resolution: workspace
5 changes: 4 additions & 1 deletion pkgs/samples/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Sample code snippets for DartPad.
publish_to: none

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flame: ^1.18.0
Expand All @@ -20,3 +20,6 @@ dev_dependencies:

flutter:
uses-material-design: true

# This package is managed as part of the engine workspace.
resolution: workspace
8 changes: 8 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: _dartpad_workspace
environment:
sdk: ^3.5.0
workspace:
- pkgs/dart_services
- pkgs/dartpad_shared
- pkgs/dartpad_ui
- pkgs/samples

0 comments on commit 4ec2c5f

Please sign in to comment.