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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 Conway's Game of Life
2 =====================
3
4 This package contains a reusable Game of Life widget built using Dart web
5 components. Here's a rundown of what's here:
6
7 `componenets/` contains the web components used to build the game
8 `test/` contains unit tests
9 `index.html`, `game_of_life.dart` are a sample app consisting of exactly one
10 Game of Life widget and nothing else.
11
12 Compiling and Running
13 ---------------------
14
15 To use these components, or to compile the sample app, you must have the
16 experimental version of dart2js with no-wrapper web components support. You can
17 get it at `https://github.com/samhopkins/bleeding_edge`. Then to compile the
18 sample, run
19
20 `dart2js game_of_life.dart -ogame_of_life.js`
21
22 and open `index.html` in a browser.
23
24 To use the Game of Life component in your app, import
25 `components/components.dart`.
26
27 Running the Tests
28 -----------------
29
30 We cannot presently use the usual test infrastructure in the repo, since it does
31 not play well with pub right now. To run the tests, first compile them with
32
33 `dart2js tests/game_of_life_tests.dart -o tests/game_of_life_tests.js`.
34
35 Then open `tests/test_page.html` in your browser.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698