Update to Dart QS to alpha.44, move _examples dir

This commit is contained in:
Kathy Walrath 2015-10-19 10:37:32 -07:00 committed by Naomi Black
parent 0dc3d2018e
commit 8d90ee8a0c
7 changed files with 9 additions and 10 deletions

View File

@ -2,7 +2,7 @@
name: angular2-getting-started
version: 0.0.1
dependencies:
angular2: 2.0.0-alpha.42
angular2: 2.0.0-alpha.44
browser: ^0.10.0
transformers:
- angular2:

View File

@ -2,7 +2,7 @@
name: angular2-getting-started
version: 0.0.1
dependencies:
angular2: 2.0.0-alpha.42
angular2: 2.0.0-alpha.44
browser: ^0.10.0
dart_to_js_script_rewriter: ^0.1.0
transformers:

View File

@ -41,9 +41,9 @@ p.
specify the angular2 and browser packages as dependencies,
as well as the angular2 transformer.
Angular 2 is changing rapidly, so provide an exact version:
<b>2.0.0-alpha.42</b>.
<b>2.0.0-alpha.44</b>.
+makeExample('gettingstarted/dart/ex1/pubspec.yaml', null, 'pubspec.yaml')
+makeExample('quickstart/dart/ex1/pubspec.yaml', null, 'pubspec.yaml')
p.
In the same directory, create a <code>web</code> directory, and then
@ -71,7 +71,7 @@ p.
p.
Paste the following code into <code>web/main.dart</code>:
+makeExample('gettingstarted/dart/ex1/web/main.dart', null, 'web/main.dart')
+makeExample('quickstart/dart/ex1/web/main.dart', null, 'web/main.dart')
:markdown
You've just defined an Angular 2 **component**,
@ -119,7 +119,7 @@ p.
Create a file named <code>web/index.html</code> that contains
the following code:
+makeExample('gettingstarted/dart/ex1/web/index.html', null, 'web/index.html')
+makeExample('quickstart/dart/ex1/web/index.html', null, 'web/index.html')
:markdown
The `<my-app>` tag in the `<body>` is
@ -149,7 +149,7 @@ p.
Once the app is running,
you should see <b>My First Angular 2 App</b> in your browser window.
p.
:markdown
If you don't see that, make sure you've entered all the code correctly
and run `pub get`.
@ -170,7 +170,7 @@ p.
in both the `dependencies` and `transformers` sections.
- var stylePattern = { pnk: /(dart_to_js_script_rewriter.*$)|(- dart_to_js_script_rewriter.*$)/gm, otl: /(dependencies:)|(transformers:)/g };
+makeExample('gettingstarted/dart/ex2/pubspec.yaml', null, 'pubspec.yaml', stylePattern)
+makeExample('quickstart/dart/ex2/pubspec.yaml', null, 'pubspec.yaml', stylePattern)
p.
Then compile your Dart code to JavaScript,
@ -179,7 +179,6 @@ p.
code-example(language="basic").
&gt; <span class="blk">pub build</span>
Loading source assets...
//- REGENERATE THIS OUTPUT - or delete it? - when updating from 2.0.0-alpha.42
p.
The generated JavaScript appears, along with supporting files,
@ -195,7 +194,7 @@ p.
configure the Angular transformer:
- var stylePattern = { otl: /(transformers:)|(- angular2:)|(entry_points.*$)/gm };
+makeExample('gettingstarted/dart/ex2/pubspec.yaml', null, 'pubspec.yaml', stylePattern)
+makeExample('quickstart/dart/ex2/pubspec.yaml', null, 'pubspec.yaml', stylePattern)
p.
The <code>entry_points</code> item