Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit aaf39de

Browse files
committed
fix mistakes uncovered by CI
1 parent d730569 commit aaf39de

File tree

8 files changed

+191
-170
lines changed

8 files changed

+191
-170
lines changed

public/docs/_examples/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ protractor-helpers.js
1515
**/ts/**/*.js
1616
**/js-es6*/**/*.js
1717
**/ts-snippets/**/*.js
18+
!**/systemjs.config.extras.js
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* Add barrels and stuff
3+
* Adjust as necessary for your application needs.
4+
*/
5+
// (function (global) {
6+
// System.config({
7+
// packages: {
8+
// // add packages here
9+
// }
10+
// });
11+
// })(this);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// #docregion
2+
/** App specific SystemJS configuration */
3+
System.config({
4+
packages: {
5+
// barrels
6+
'app/model': {main:'index.js', defaultExtension:'js'},
7+
'app/model/testing': {main:'index.js', defaultExtension:'js'}
8+
}
9+
});

public/docs/ts/latest/guide/deployment.jade

+8-8
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ a#node-modules
9898
(1) Make a copy of `index.html` for deployment and replace all `node_module` scripts
9999
with versions that load from the web. It might look like this.
100100

101-
+makeExample('index.html', 'node-module-scripts', '')(format=".")
101+
+makeExample('deployment/ts/src/index.html', 'node-module-scripts', '')(format=".")
102102
:marked
103103
(2) Replace the `systemjs.config.js` script with a script that
104104
loads `systemjs.config.server.js`.
105-
+makeExample('index.html', 'systemjs-config', '')(format=".")
105+
+makeExample('deployment/ts/src/index.html', 'systemjs-config', '')(format=".")
106106
:marked
107107
(3) Add `systemjs.config.server.js` (shown in the code sample below) to the root folder.
108108
This alternative version configures _SystemJS_ to load _UMD_ versions of Angular
@@ -113,7 +113,7 @@ a#node-modules
113113

114114
Notice the `paths` key:
115115

116-
+makeExample('systemjs.config.server.js', 'paths', '')(format=".")
116+
+makeExample('deployment/ts/src/systemjs.config.server.js', 'paths', '')(format=".")
117117

118118
:marked
119119
In the standard SystemJS config, the `npm` path points to the `node_modules/`.
@@ -144,11 +144,11 @@ a#node-modules
144144
null,
145145
`index.html,
146146
systemjs.config.server.js,
147-
src/main.ts,
148-
src/app/app.module.ts,
149-
src/app/app.component.ts,
150-
src/app/crisis-list.component.ts,
151-
src/app/hero-list.component.ts
147+
main.ts,
148+
app/app.module.ts,
149+
app/app.component.ts,
150+
app/crisis-list.component.ts,
151+
app/hero-list.component.ts
152152
`)
153153

154154
:marked

public/docs/ts/latest/guide/ngmodule.jade

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ a#bootstrap
159159
The syntax for bootstrapping the pre-compiled `AppModuleNgFactory` is similar to
160160
the dynamic version that bootstraps the `AppModule` class.
161161

162-
+makeExample('ngmodule/ts/src/app/main-static.ts', '', 'src/main.ts (static)')(format=".")
162+
+makeExample('ngmodule/ts/src/main-static.ts', '', 'src/main.ts (static)')(format=".")
163163
:marked
164164
Because the entire application was pre-compiled,
165165
we don't ship the _Angular Compiler_ to the browser and we don't compile in the browser.

0 commit comments

Comments
 (0)