-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into release/dart-3-2-0
- Loading branch information
Showing
64 changed files
with
2,831 additions
and
10,988 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
**/pubspec.lock linguist-generated=true | ||
pkgs/dart_services/lib/src/shared/** linguist-generated=true | ||
pkgs/sketch_pad/lib/samples.g.dart linguist-generated=true | ||
pkgs/sketch_pad/web/codemirror/** linguist-generated=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Contributing to DartPad | ||
|
||
Want to contribute? Great! First, read this page (including the small print at the end). | ||
|
||
## Before you contribute | ||
|
@@ -40,39 +41,10 @@ Contributions made by corporations are covered by a different agreement than the | |
|
||
## How to run DartPad locally | ||
|
||
* To run the DartPad against the regular serving backend: | ||
|
||
Install the [`protoc` compiler](https://grpc.io/docs/protoc-installation/). | ||
To run the server, see https://github.com/dart-lang/dart-pad/blob/main/pkgs/dart_services/README.md. | ||
|
||
Run these commands: | ||
To run the front-end, from the `pkg/dart-pad` directory, run: | ||
|
||
```bash | ||
# Get all Dart dependencies | ||
dart pub get | ||
# Install the Dart protobuf compiler & grinder tool | ||
dart pub global activate protoc_plugin | ||
dart pub global activate grinder | ||
# Serve | ||
grind serve | ||
``` | ||
This serves the DartPad frontend locally on port 8000. | ||
|
||
* To run DartPad against a local version of the dart-services backend: | ||
```bash | ||
cd .. | ||
git clone [email protected]:dart-lang/dart-services.git | ||
cd dart-services | ||
dart pub get | ||
# Change the SDK version dart-services serves to the one you currently have installed | ||
grind update-docker-version | ||
# Begin serving the backend locally on port 8080. | ||
FLUTTER_CHANNEL="stable" grind serve & | ||
|
||
cd ../dart-pad | ||
# Begin serving the front-end locally on port 8000, with the given backend on the default port 8080 this is defined in tools/grind.dart | ||
grind serve-local-backend | ||
dart tool/grind.dart serve | ||
``` | ||
|
||
You can adjust the DARTPAD_BACKEND variable to match different versions of the dart-pad backend | ||
serving on AppEngine for test purposes as well, e.g.: | ||
`DARTPAD_BACKEND=https://20180822t110058-dot-dart-services.appspot.com/` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Configure test execution; documentation available at: | ||
# https://github.com/dart-lang/test/blob/master/pkgs/test/doc/configuration.md. | ||
|
||
# Some of the project_creator_test.dart tests don't like to run in parallel with | ||
# other tests. | ||
concurrency: 1 |
Oops, something went wrong.