Skip to content

Commit 4ef16e7

Browse files
committed
docs(quickstart): post-RC5 Dart resync
- Resync Dart QS prose with TS, post RC5. - Delete cached QS jade file. - Eliminate the stub file `styles.1.css` in favor of a `docregion` in the main `styles.css`. This commit requires a `gulp add-example-boilerplate`. Contributes to angular#2077.
1 parent ccdc8c0 commit 4ef16e7

File tree

6 files changed

+107
-698
lines changed

6 files changed

+107
-698
lines changed

public/docs/_examples/quickstart/dart/web/styles_1.css

-14
This file was deleted.

public/docs/_examples/quickstart/ts/styles.1.css

-14
This file was deleted.

public/docs/_examples/styles.css

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* #docregion , quickstart */
12
/* Master Styles */
23
h1 {
34
color: #369;
@@ -12,6 +13,7 @@ h2, h3 {
1213
body {
1314
margin: 2em;
1415
}
16+
/* #enddocregion quickstart */
1517
body, input[text], button {
1618
color: #888;
1719
font-family: Cambria, Georgia;

public/docs/dart/latest/quickstart.jade

+18-20
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
extends ../../ts/_cache/quickstart.jade
1+
extends ../../ts/latest/quickstart.jade
22

33
block includes
44
include _util-fns
55
- var _Install = 'Get'
66
- var _prereq = 'the Dart SDK'
7-
- var _angular_browser_uri = 'package:angular2/platform/browser.dart'
8-
- var _angular_core_uri = 'package:angular2/core.dart'
7+
- var _angular_browser_uri = 'angular2/platform/browser.dart'
8+
- var _angular_core_uri = 'angular2/core.dart'
9+
- var _stepInit = 3
10+
- var _quickstartSrcURL='https://github.com/angular-examples/quickstart'
11+
- var _AppModuleVsRootComp = 'AppComponent'
12+
- var _moduleVsComp = 'component'
13+
- var _platformBrowserDynamic = 'bootstrap'
914

1015
block setup-tooling
1116
:marked
@@ -20,9 +25,6 @@ block setup-tooling
2025
[DT]: https://www.dartlang.org/tools/
2126
[pub]: https://www.dartlang.org/tools/pub/
2227

23-
block download-source
24-
// exclude this section from Dart
25-
2628
block package-and-config-files
2729
:marked
2830
In the project folder just created, create a file named
@@ -59,9 +61,6 @@ block create-main
5961
li a #[b folder named #[code web]]
6062
li a <b>file named #[code #[+adjExPath('app/main.ts')]]</b> with the following content:
6163

62-
block index-html-commentary-for-ts
63-
//- N/A
64-
6564
block run-app
6665
p.
6766
We have a few options for running our app.
@@ -87,22 +86,23 @@ block build-app
8786
in the [proper folders](#wrap-up),
8887
and run `pub get`.
8988

90-
.l-verbose-section
91-
h3#section-angular-run-app Building the app (generating JavaScript)
92-
89+
.l-verbose-section#section-angular-run-app
9390
:marked
91+
### Building the app (generating JavaScript)
92+
9493
Before deploying the app, we need to generate JavaScript files.
9594
The `pub build` command makes that easy.
9695

9796
code-example(language="sh").
9897
&gt; <span class="blk">pub build</span>
9998
Loading source assets...
10099

101-
p.
100+
:marked
102101
The generated JavaScript appears, along with supporting files,
103-
under a directory named <code>build</code>.
102+
under a directory named `build`.
104103

105-
h4#angular_transformer Using the Angular transformer
104+
#angular_transformer
105+
h4 Using the Angular transformer
106106

107107
p.
108108
When generating JavaScript for an Angular app,
@@ -124,7 +124,7 @@ block build-app
124124
<a href="https://github.com/angular/angular/wiki/Angular-2-Dart-Transformer">Angular
125125
transformer wiki page</a>.
126126

127-
#performance.l-sub-section
127+
.l-sub-section#performance
128128
h3 Performance, the transformer, and Angular 2 libraries
129129
p.
130130
When an app imports <code>bootstrap.dart</code>,
@@ -136,7 +136,8 @@ block build-app
136136
(<code>entry_points</code> in <code>pubspec.yaml</code>)
137137
so that they don't use mirrors.
138138

139-
h4#dart_to_js_script_rewriter Using dart_to_js_script_rewriter
139+
#dart_to_js_script_rewriter
140+
h4 Using dart_to_js_script_rewriter
140141

141142
:marked
142143
To improve the app's performance, convert the
@@ -203,6 +204,3 @@ block project-files
203204
index.html,
204205
pubspec.yaml,
205206
styles.css`)
206-
207-
block what-next-ts-overhead
208-
//- N/A

0 commit comments

Comments
 (0)