Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Unified Diff: dart/samples/webcomponents/game_of_life/README.md

Issue 10918082: adding game_of_life sample (Closed) Base URL: git@github.com:samhopkins/bleeding_edge.git@master
Patch Set: ready for second round of review Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dart/samples/webcomponents/game_of_life/README.md
diff --git a/dart/samples/webcomponents/game_of_life/README.md b/dart/samples/webcomponents/game_of_life/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..585a61c75b10fcb4c01d7439849bc52c39115e9b
--- /dev/null
+++ b/dart/samples/webcomponents/game_of_life/README.md
@@ -0,0 +1,35 @@
+Conway's Game of Life
+=====================
+
+This package contains a reusable Game of Life widget built using Dart web
+components. Here's a rundown of what's here:
+
+ `componenets/` contains the web components used to build the game
+ `test/` contains unit tests
+ `index.html`, `game_of_life.dart` are a sample app consisting of exactly one
+ Game of Life widget and nothing else.
+
+Compiling and Running
+---------------------
+
+To use these components, or to compile the sample app, you must have the
+experimental version of dart2js with no-wrapper web components support. You can
+get it at `https://github.com/samhopkins/bleeding_edge`. Then to compile the
+sample, run
+
+ `dart2js game_of_life.dart -ogame_of_life.js`
+
+and open `index.html` in a browser.
+
+To use the Game of Life component in your app, import
+`components/components.dart`.
+
+Running the Tests
+-----------------
+
+We cannot presently use the usual test infrastructure in the repo, since it does
+not play well with pub right now. To run the tests, first compile them with
+
+ `dart2js tests/game_of_life_tests.dart -o tests/game_of_life_tests.js`.
+
+Then open `tests/test_page.html` in your browser.

Powered by Google App Engine
This is Rietveld 408576698