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

Use pub workspace for the dart-pad monorepo #3041

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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 .github/workflows/dartpad_shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1

- name: Install dart dependencies
run: dart pub get
Expand Down
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
9 changes: 4 additions & 5 deletions pkgs/dart_services/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ description: The backend service for DartPad.
publish_to: none

environment:
sdk: ^3.4.0
sdk: ^3.5.0

# This package is managed as part of the dart-pad workspace.
resolution: workspace

dependencies:
analysis_server_lib: ^0.2.5
Expand Down Expand Up @@ -35,7 +38,3 @@ dev_dependencies:
synchronized: ^3.1.0+1
test: ^1.25.7
test_descriptor: ^2.0.1

dependency_overrides:
dartpad_shared:
path: ../dartpad_shared
6 changes: 5 additions & 1 deletion pkgs/dartpad_shared/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ description: Shared code between the DartPad frontend and backend.
publish_to: none

environment:
sdk: ^3.4.0
sdk: ^3.5.0

# This package is managed as part of the dart-pad workspace.
resolution: workspace

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

8 changes: 4 additions & 4 deletions pkgs/dartpad_ui/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ description: The front-end UI of DartPad.
publish_to: none

environment:
sdk: ^3.4.0
sdk: ^3.5.0

# This package is managed as part of the dart-pad workspace.
resolution: workspace

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

dependency_overrides:
dartpad_shared:
path: ../dartpad_shared
5 changes: 4 additions & 1 deletion pkgs/samples/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ name: samples
description: Sample code snippets for DartPad.
publish_to: none

# This package is managed as part of the engine workspace.
resolution: workspace

environment:
sdk: ^3.4.0
sdk: ^3.5.0

dependencies:
flame: ^1.18.0
Expand Down
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
Loading