Update to Dart QS to alpha.44, move _examples dir
This commit is contained in:
parent
0dc3d2018e
commit
8d90ee8a0c
|
@ -2,7 +2,7 @@
|
||||||
name: angular2-getting-started
|
name: angular2-getting-started
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-alpha.42
|
angular2: 2.0.0-alpha.44
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
|
@ -2,7 +2,7 @@
|
||||||
name: angular2-getting-started
|
name: angular2-getting-started
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-alpha.42
|
angular2: 2.0.0-alpha.44
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
dart_to_js_script_rewriter: ^0.1.0
|
dart_to_js_script_rewriter: ^0.1.0
|
||||||
transformers:
|
transformers:
|
|
@ -41,9 +41,9 @@ p.
|
||||||
specify the angular2 and browser packages as dependencies,
|
specify the angular2 and browser packages as dependencies,
|
||||||
as well as the angular2 transformer.
|
as well as the angular2 transformer.
|
||||||
Angular 2 is changing rapidly, so provide an exact version:
|
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.
|
p.
|
||||||
In the same directory, create a <code>web</code> directory, and then
|
In the same directory, create a <code>web</code> directory, and then
|
||||||
|
@ -71,7 +71,7 @@ p.
|
||||||
p.
|
p.
|
||||||
Paste the following code into <code>web/main.dart</code>:
|
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
|
:markdown
|
||||||
You've just defined an Angular 2 **component**,
|
You've just defined an Angular 2 **component**,
|
||||||
|
@ -119,7 +119,7 @@ p.
|
||||||
Create a file named <code>web/index.html</code> that contains
|
Create a file named <code>web/index.html</code> that contains
|
||||||
the following code:
|
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
|
:markdown
|
||||||
The `<my-app>` tag in the `<body>` is
|
The `<my-app>` tag in the `<body>` is
|
||||||
|
@ -149,7 +149,7 @@ p.
|
||||||
Once the app is running,
|
Once the app is running,
|
||||||
you should see <b>My First Angular 2 App</b> in your browser window.
|
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
|
If you don't see that, make sure you've entered all the code correctly
|
||||||
and run `pub get`.
|
and run `pub get`.
|
||||||
|
|
||||||
|
@ -170,7 +170,7 @@ p.
|
||||||
in both the `dependencies` and `transformers` sections.
|
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 };
|
- 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.
|
p.
|
||||||
Then compile your Dart code to JavaScript,
|
Then compile your Dart code to JavaScript,
|
||||||
|
@ -179,7 +179,6 @@ p.
|
||||||
code-example(language="basic").
|
code-example(language="basic").
|
||||||
> <span class="blk">pub build</span>
|
> <span class="blk">pub build</span>
|
||||||
Loading source assets...
|
Loading source assets...
|
||||||
//- REGENERATE THIS OUTPUT - or delete it? - when updating from 2.0.0-alpha.42
|
|
||||||
|
|
||||||
p.
|
p.
|
||||||
The generated JavaScript appears, along with supporting files,
|
The generated JavaScript appears, along with supporting files,
|
||||||
|
@ -195,7 +194,7 @@ p.
|
||||||
configure the Angular transformer:
|
configure the Angular transformer:
|
||||||
|
|
||||||
- var stylePattern = { otl: /(transformers:)|(- angular2:)|(entry_points.*$)/gm };
|
- 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.
|
p.
|
||||||
The <code>entry_points</code> item
|
The <code>entry_points</code> item
|
||||||
|
|
Loading…
Reference in New Issue