From d12f84c818d8a6ab79c787e1b5b2a8e612c0d944 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Tue, 28 Apr 2015 16:26:38 -0700 Subject: [PATCH] Add pubspec.yaml files for each of the examples/ directories so that pub get will create a packages/ directory for each and users of packages/sky/sky_tool can run these examples from sky_sdk as the instructions say to. TBR=ianh@google.com https://github.com/domokit/mojo/issues/128 Review URL: https://codereview.chromium.org/1110283002 --- examples/README.md | 5 ++++- examples/color/pubspec.yaml | 3 +++ examples/hello_world/pubspec.yaml | 3 +++ examples/raw/pubspec.yaml | 3 +++ examples/widgets/pubspec.yaml | 3 +++ 5 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 examples/color/pubspec.yaml create mode 100644 examples/hello_world/pubspec.yaml create mode 100644 examples/raw/pubspec.yaml create mode 100644 examples/widgets/pubspec.yaml diff --git a/examples/README.md b/examples/README.md index 6305be9681..deb0f3cf10 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,7 +1,10 @@ Sky Examples ============ -This directory contains several examples of using Sky. +This directory contains several examples of using Sky. Each of these is an +individual Dart application package. If you wish to run them with `sky_tool` +then you will want to run `pub get` inside their directory before running +`./packages/sky/sky_tool start`. 1. *Hello, world.* The [hello world app](hello_world) is a basic app that shows the text "hello, world." diff --git a/examples/color/pubspec.yaml b/examples/color/pubspec.yaml new file mode 100644 index 0000000000..c3320617b1 --- /dev/null +++ b/examples/color/pubspec.yaml @@ -0,0 +1,3 @@ +name: color +dependencies: + sky: any diff --git a/examples/hello_world/pubspec.yaml b/examples/hello_world/pubspec.yaml new file mode 100644 index 0000000000..fb27d11e6b --- /dev/null +++ b/examples/hello_world/pubspec.yaml @@ -0,0 +1,3 @@ +name: hello_world +dependencies: + sky: any diff --git a/examples/raw/pubspec.yaml b/examples/raw/pubspec.yaml new file mode 100644 index 0000000000..65813d545f --- /dev/null +++ b/examples/raw/pubspec.yaml @@ -0,0 +1,3 @@ +name: raw +dependencies: + sky: any diff --git a/examples/widgets/pubspec.yaml b/examples/widgets/pubspec.yaml new file mode 100644 index 0000000000..1f45fe870a --- /dev/null +++ b/examples/widgets/pubspec.yaml @@ -0,0 +1,3 @@ +name: widgets +dependencies: + sky: any